Commit Graph

148 Commits

Author SHA1 Message Date
Alexander Zobnin
2e3e235fa7 Implement delta and rate 2021-05-27 17:23:01 +03:00
Alexander Zobnin
6e7d8bc862 Implement removeAboveValue/removeBelowValue 2021-05-27 16:55:00 +03:00
Alexander Zobnin
ef7681f689 Implement transformNull 2021-05-27 16:47:18 +03:00
Alexander Zobnin
2a5b12e43a Fix series name issues 2021-05-27 14:27:10 +03:00
Alexander Zobnin
43e9527a0f Implement timeShift 2021-05-27 14:16:10 +03:00
Alexander Zobnin
9a63a1f70f Return multiple frames (frame per series) 2021-05-27 13:28:14 +03:00
Alexander Zobnin
24e9129fbe Implement sortSeries 2021-05-27 12:57:09 +03:00
Alexander Zobnin
fe0192258e Implement top/bottom 2021-05-27 10:51:33 +03:00
Alexander Zobnin
dceb4bd924 Implement percentile 2021-05-27 10:20:01 +03:00
Alexander Zobnin
62d569cd53 Implement percentileAgg 2021-05-27 10:13:48 +03:00
Alexander Zobnin
ac220a76e8 Support $__range_series variable 2021-05-26 17:48:36 +03:00
Alexander Zobnin
b07a226574 Implement sumSeries 2021-05-26 17:35:01 +03:00
Alexander Zobnin
5d3433aef5 Implement aggregateBy 2021-05-26 13:04:57 +03:00
Alexander Zobnin
ff16e2fe8d Skip frontend functions 2021-05-25 18:12:36 +03:00
Alexander Zobnin
51e487deab Better errors for parsing func params 2021-05-25 16:29:47 +03:00
Alexander Zobnin
d3888329cb Scale/offset 2021-05-25 16:24:32 +03:00
Alexander Zobnin
addd86d7cd More agg functions 2021-05-25 16:04:05 +03:00
Alexander Zobnin
e996252aff Fix avg aggregation 2021-05-25 15:49:58 +03:00
Alexander Zobnin
ebd9b46096 Implement groupBy 2021-05-25 15:47:18 +03:00
Alexander Zobnin
3f7cabcd53 initial pipeline for functions processing 2021-05-24 17:46:49 +03:00
Alexander Zobnin
7748508a5c Use time series format internally 2021-05-24 17:11:36 +03:00
Alexander Zobnin
e7a386cf8a Refactor history/trend queries 2021-05-24 15:31:56 +03:00
Alexander Zobnin
94b5c88366 Fix item filtering 2021-05-24 11:20:14 +03:00
Alexander Zobnin
37573e0152 Refactor filters 2021-05-24 10:46:28 +03:00
Alexander Zobnin
b42d665e9e Refactor: remove unused types 2021-05-19 18:15:29 +03:00
Alexander Zobnin
7d8005838c Refactor HTTP client 2021-05-19 18:08:12 +03:00
Alexander Zobnin
65e32c3b10 Refactor tests 2021-05-19 15:52:09 +03:00
Alexander Zobnin
badecc3aae Refactor: zabbix client 2021-05-19 13:17:46 +03:00
Alexander Zobnin
762ea252b2 Separate Zabbix API and HTTP client 2021-05-19 09:49:12 +03:00
Alexander Zobnin
68c7e20d27 Merge branch 'master' into backend-functions 2021-05-19 09:08:05 +03:00
Alexander Zobnin
3410593f9e Fix compatibility with Zabbix 5.4 (skip applications filter) (#1214)
* Fix queries in Zabbix 5.4 (applications not supported)

* Fix alerting queries in Zabbix 5.4
2021-05-18 17:22:49 +03:00
Alexander Zobnin
8cdc2a3ae9 rename convertHistory 2021-03-09 18:23:34 +03:00
Alexander Zobnin
072c959d23 Invoke metric queries on the backend 2021-03-09 18:23:34 +03:00
Alexander Zobnin
8e587fecdf Update function def model 2021-03-09 18:23:34 +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
82819b20aa Able to configure API request timeout, #1046 2020-11-10 16:39:06 +03:00
Alexander Zobnin
d2e9c2bfd0 Support basic auth for backend requests, #1048 2020-10-06 17:22:34 +03:00
Alexander Zobnin
8f70a0c4be refine non-ok status message 2020-08-28 19:20:28 +03:00
Alexander Zobnin
9f2530d756 Use http.NewRequest() for creating requests, issue #1004 2020-08-28 19:11:29 +03:00
Alexander Zobnin
8e781da7bd Support TLS settings, fix #1029 2020-08-28 16:52:55 +03:00
Alexander Zobnin
013fe5c37f Refactor: use InstanceManager for managing ds instances 2020-08-28 14:40:39 +03:00
Alexander Zobnin
2dc514db3a Refactor: move http client to the separate package 2020-08-28 11:48:06 +03:00
Alexander Zobnin
d6b8992433 Refine log messages 2020-08-25 13:36:36 +03:00
Alexander Zobnin
620c60b1f5 Add debug message in case of expired auth token 2020-06-04 18:31:09 +03:00
Alexander Zobnin
516b4f2045 fix expired token renewal 2020-06-04 17:53:10 +03:00
Alexander Zobnin
dbb4e9dfef refactor: errors 2020-06-04 12:29:37 +03:00
Alexander Zobnin
899ecb9ec2 Resource handler description 2020-06-04 12:23:18 +03:00
Alexander Zobnin
95c8e9cfa6 move cache to datasource_cache 2020-06-04 12:10:34 +03:00
Alexander Zobnin
89dfb1e228 tidy modules 2020-06-04 11:51:05 +03:00
Alexander Zobnin
9713e7d780 remove unused 2020-06-04 11:50:54 +03:00