Commit Graph

171 Commits

Author SHA1 Message Date
vignesh-reddy
3f5719794a Backend: implement alerting query (#847)
* Unit tests for backend

* minor change

* Implemented querNumericItems in backend

* Added query type

* Set alerting to true

* Return TimeSeries from History

* Updated alerting feature

* Fix params marshal error

* Fix params more

* Update zabbixAPIConnector.js

* Numbers, I guess

* Params Output Type

* Output marshaling

* Unmarshal and decoder error catch

* HistoryPoint and Unmarshal fixes

* Unmarshal to History

* Revert "Update zabbixAPIConnector.js"

This reverts commit e0ffdff859b6f920893a47a709493f8076e38ef4.

* Fix unmarshaling for real

* Time range integer

* Use more zabbix.Items

* Update response_models.go

* Update zabbix_api.go

* Update models.go

* Update zabbix_api.go

* Tests

* Adding more unit tests and cleaning up additional logging

* Make history request param a pointer

* Actually store datasource in cache

* Debug logs and timings

* Handle panics gracefully

* Updated Regex filter parsing

* Removed must compile

* Clean up regex filter
2020-01-13 10:38:24 +03:00
Alexander Zobnin
aa93e752c8 Merge branch 'multidatasource-pr' of github.com:dneth/grafana-zabbix into dneth-multidatasource-pr 2019-12-13 13:52:09 +03:00
Alexander Zobnin
5990d64bce Merge branch 'makefile-improvements' of github.com:dneth/grafana-zabbix into dneth-makefile-improvements 2019-12-12 11:30:01 +03:00
Alexander Zobnin
31d797e36b fix plugin crash due to result is nil 2019-12-12 11:18:01 +03:00
Alexander Zobnin
f1f911a3fa Merge branch 'securejson' of github.com:dneth/grafana-zabbix into dneth-securejson 2019-12-12 10:57:19 +03:00
vignesh-reddy
24fd0ff9ec Backend: renew auth token if expired (#808)
* Backend: Added logic to renew auth token if expired

* Added nil check for err

* Added case if the err is nil

* Removed the case where data source tries to login at every request
2019-12-12 10:41:53 +03:00
Alec Sears
e153473421 Finish 2019-10-18 16:21:46 -05:00
Alec Sears
ca145c9acb Test BuildResponse 2019-10-18 16:17:50 -05:00
Alec Sears
27cf031b6c Accept any type for datasource response 2019-10-18 16:17:50 -05:00
Alec Sears
05243a9701 Progress 2019-10-18 16:17:48 -05:00
Alec Sears
7c3f26a7f4 Initial Commit 2019-10-18 16:16:06 -05:00
Alec Sears
a2d685af20 Coverage fixes 2019-10-10 15:56:15 -05:00
Alec Sears
6beda3a394 Update zabbix_api.go 2019-10-08 13:53:26 -05:00
Alec Sears
8b03b2ae49 Merge branch 'backend' into securejson 2019-10-08 13:48:45 -05:00
Alec Sears
65cf757fab Update zabbix_api.go 2019-10-08 13:46:38 -05:00
vignesh-reddy
e8c5c0c3b9 caching the Zabbix API Queries (#807) 2019-10-04 19:24:56 +03:00
Alexander Zobnin
6e80b49120 backend: handle response on the fronted 2019-09-26 21:35:00 +03:00
Alexander Zobnin
f5122e1faf backend: authentication POC 2019-09-26 21:14:11 +03:00
Alexander Zobnin
bfca76650d backend: proxy Zabbix API requests WIP 2019-09-26 09:32:22 +03:00
Alexander Zobnin
6b8c11f4f4 backend: proxy Zabbix API requests through the backend 2019-09-25 21:26:53 +03:00
Alexander Zobnin
3fccec1bb8 Initial boilerplate backend plugin 2019-09-24 19:28:51 +03:00