Commit Graph

94 Commits

Author SHA1 Message Date
Alexander Zobnin
3f10be6a9d Show query in the inspector, fix #1097 2020-12-23 12:19:21 +03:00
Alexander Zobnin
83618178f0 Use Data frames response format (#1099)
* Use data frames for numeric data

* Use data frames for text data

* Use data frames for IT services

* fix multiple series

* Convert to the wide format if possible

* Fix table format for text data

* Add refId to the data frames

* Align time series from Zabbix API

* Fill gaps with nulls

* Fix moving average functions

* Option for disabling data alignment

* remove unused logging

* Add labels to data frames

* Detect units

* Set min and max for if percent unit used

* Use value mapping from Zabbix

* Rename unitConverter -> convertZabbixUnit

* More units

* Add missing points in front of each series

* Fix handling table data

* fix db connector data frames handling

* fix it services data frames handling

* Detect all known grafana units

* Chore: remove unused logging

* Fix problems format

* Debug logging: show original units

* Add global option for disabling data alignment

* Add tooltip for the disableDataAlignment feature

* Add note about query options

* Functions for aligning timeseries on the backend
2020-12-22 15:33:14 +03:00
Alexander Zobnin
129705d39b Suppress problem dependencies, fix #1024 2020-08-28 10:17:06 +03:00
Alexander Zobnin
21c8bc21b3 Chore: fix functions names 2020-08-06 15:26:16 +03:00
Alexander Zobnin
47bbf55e54 Fix reconnecting on request error 2020-08-06 15:15:38 +03:00
Alexander Zobnin
e06298cc02 Problems: fix problems history 2020-07-21 12:54:54 +03:00
Alexander Zobnin
b7c61a0a50 Problems: temporary disable macro expanding 2020-07-21 09:58:46 +03:00
Alexander Zobnin
6a1145c9fc Problems: fix sorting 2020-07-21 09:47:06 +03:00
Alexander Zobnin
4293e519c3 Problems: don't add host filter if it includes all hosts 2020-07-21 09:31:00 +03:00
Alexander Zobnin
a4931e36b0 Problems: move tag filter to API query 2020-07-20 17:29:33 +03:00
Alexander Zobnin
937f582326 Problems: disable skipDependent flag in trigger.get query, fixes #955 2020-07-17 14:37:10 +03:00
Alexander Zobnin
1cdd8a97e4 Merge branch 'exec-script' into backend 2020-06-02 12:29:08 +03:00
Alexander Zobnin
48767fe479 Update datasource config editor 2020-06-01 18:05:50 +03:00
Alexander Zobnin
9f344cb867 Refactor API calls 2020-05-29 12:33:37 +03:00
Alexander Zobnin
f0daa9fcb9 Migrate to new backend sdk, use /zabbix-api endpoint for API queries 2020-05-28 17:04:49 +03:00
Alexander Zobnin
c2aa84f349 Merge branch 'master' into backend 2020-05-28 12:02:36 +03:00
Alexander Zobnin
6841fa0386 Execute scripts from problem details 2020-05-28 10:44:16 +03:00
Alexander Zobnin
fd775aa9d7 getScripts method 2020-05-28 10:44:16 +03:00
Alexander Zobnin
91b4dd6fd9 fix alias variables with direct DB connection, closes #965 2020-05-27 15:26:22 +03:00
Alexander Zobnin
d2a1a7797b always return array from problems requests 2020-05-27 09:55:57 +03:00
Alexander Zobnin
938b3cdc05 fix annotations, closes #964 2020-05-26 09:27:24 +03:00
Alexander Zobnin
fb56cf05ac fix tags in in problems history mode 2020-05-25 16:47:06 +03:00
Alexander Zobnin
4d2ff2d1f1 fix acknowledges in problems history mode 2020-05-25 16:43:52 +03:00
Alexander Zobnin
6891f7c626 Problems: deduplicate problems queries 2020-05-22 11:39:03 +03:00
Alexander Zobnin
c91d5b1d99 Problems: fix acknowledged filter 2020-05-22 11:29:50 +03:00
Alexander Zobnin
708182c6f4 Chore: remove unused logging 2020-05-20 18:39:36 +03:00
Alexander Zobnin
84d93ecd5b Variables: able to query item values, closes #417 2020-05-20 16:52:40 +03:00
Alexander Zobnin
d18e6cc675 Fix API initialization, closes #861 2020-05-20 14:54:21 +03:00
Alexander Zobnin
4c462e72dc SLA: add interval option, closes #885 2020-05-20 13:36:00 +03:00
Alexander Zobnin
552b709740 fix SLA queries 2020-05-20 12:45:30 +03:00
Alexander Zobnin
959cea2061 Problems: improve ack dialog (add ack options), closes #942 2020-05-18 19:41:33 +03:00
Alexander Zobnin
04de23eeea Problems: fix sorting order 2020-05-18 14:26:47 +03:00
Alexander Zobnin
0df9023750 Problems: support problems history 2020-05-18 12:18:59 +03:00
Alexander Zobnin
d7a96f06ee Zabbix API: add types 2020-05-18 11:37:22 +03:00
Alexander Zobnin
056f82731e Problems: use problems.get method for fetching triggers, closes #495 2020-05-15 18:17:54 +03:00
Alexander Zobnin
1b11f3d46d Chore: ZabbixConnector types 2020-05-15 15:24:30 +03:00
Alexander Zobnin
11214d0d17 Chore: convert Zabbix connector to TS 2020-05-15 14:38:29 +03:00
Alexander Zobnin
c4f8b5bf2b fix tests 2020-05-15 14:15:53 +03:00
Tommi Palomäki
1ae4b86ca9 Fix to consolidate avg accuracy (#753)
* The interval must fit exactly n times to the time range and query made so that the resulting avg will be exact

* Add interval fix also to trend query
2020-05-15 14:08:12 +03:00
Alexander Zobnin
5fac5909a7 Fix merge conflicts 2020-05-15 13:58:35 +03:00
Alexander Zobnin
6eba6f870c Chore: convert CachingProxy to TS 2020-05-15 13:53:35 +03:00
Alexander Zobnin
4a3bb91aaf Chore: convert ZabbixAPIConnector to TS 2020-05-15 13:49:44 +03:00
Alexander Zobnin
b09af3c93a fix tests 2020-05-14 19:02:36 +03:00
Alexander Zobnin
5422e24af2 ZabbixAPICore: convert to TS 2020-05-14 18:52:20 +03:00
Alexander Zobnin
93b1468000 Auto-detect zabbix version, closes #727 2020-05-14 18:26:29 +03:00
Alexander Zobnin
2588fd5c50 Problems: more work on options migration 2020-05-13 18:13:25 +03:00
Alexander Zobnin
6729de0e48 Add series-specific variables for using in alias functions, #619 2020-04-13 15:13:54 +03:00
Alexander Zobnin
3dfe29816b DB Connection: return detailed connection error for InfluxDB 2020-04-10 19:56:08 +03:00
Alexander Zobnin
2761b4d966 Migrate dataSourceSrv to getDataSourceSrv 2020-03-23 16:05:31 +03:00
Alexander Zobnin
dad0fd965d Migrate backendSrv to getBackendSrv, fix direct DB connection 2020-03-20 17:03:49 +03:00