Commit Graph

1379 Commits

Author SHA1 Message Date
Alexander Zobnin
7653bacce9 fix linter errors 2020-01-14 17:56:44 +03:00
Alexander Zobnin
7a1743ad41 refactor: simplify API queries 2020-01-14 17:42:12 +03:00
Alexander Zobnin
546ae1893c show delve logs 2020-01-14 13:28:52 +03:00
Alexander Zobnin
448031dec7 fix debug script 2020-01-14 13:25:22 +03:00
Alexander Zobnin
94cdf10989 debug backend plugin 2020-01-14 13:16:40 +03:00
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
vignesh-reddy
c300debe35 Backend: Merge master into the backend branch (#845)
* CI: fix shellcheck issues (#789)

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>

* annotations: fix options in grafana 6.x, fix #813

* fix function editor in Grafana 6.4, closes #810

* add typings for grafana packages

* Add $__range_series variable for calculating function over the whole series, #531

* fix tests

* Don't set alert styles for react panels, fix #823

* docs: add range variables

* docs: percentile reference

* fix codespell

Co-authored-by: Mario Trangoni <mario@mariotrangoni.de>
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
2019-12-30 10:45:47 +03:00
Alexander Zobnin
b4b0c5b8f4 Merge branch 'dneth-multidatasource-pr' into backend 2019-12-13 14:28:44 +03:00
Alexander Zobnin
ec36b7241b update sass-loader (build with node 12) 2019-12-13 14:12:43 +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
vignesh-reddy
0bb2f7c7d8 Backend: handle response on the frontend (#839) 2019-12-12 11:48:03 +03:00
Alexander Zobnin
0233ae7046 Merge branch 'dneth-makefile-improvements' into backend 2019-12-12 11:38:32 +03:00
Alexander Zobnin
a37d1be3e0 use yarn instead of npm run for consistency 2019-12-12 11:36:19 +03:00
Alexander Zobnin
6097e81a2c fix plugin.json changes 2019-12-12 11:31:28 +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
1562faa782 Merge branch 'dneth-securejson' into backend 2019-12-12 11:21:46 +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
2ef9a01a67 JSHint 2019-10-18 16:21:49 -05: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
ee7af6ebf9 Upgrade Babel 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
23f8ad03a3 Fail on golint 2019-10-10 16:30:08 -05:00
Alec Sears
4c54e786c7 Update go.sum 2019-10-10 16:07:12 -05:00
Alec Sears
6da96b3907 Re-run CircleCI 2019-10-10 16:04:06 -05:00
Alec Sears
b919eff34f Also try to cache the go mod download cache 2019-10-10 16:02:02 -05:00
Alec Sears
cbcd24d5cc Go cache proper 2019-10-10 16:00:00 -05:00
Alec Sears
f7e19f0be3 Codespell fix 2019-10-10 15:57:51 -05:00
Alec Sears
a2d685af20 Coverage fixes 2019-10-10 15:56:15 -05:00
Alec Sears
b2d48e7d38 Update Makefile 2019-10-10 15:46:03 -05:00
Alec Sears
49ecea2b90 Set up coverage 2019-10-10 15:35:44 -05:00
Alec Sears
a50c9a3e77 Update CircleCI to use Makefile and cache Go dependencies 2019-10-10 15:15:55 -05:00
Alec Sears
233a6b1cf4 Fix codespell error 2019-10-10 15:15:55 -05:00
Alec Sears
e3e6c1512b Initial Changes 2019-10-10 15:15:55 -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
0938d06487 Build files for backend 2019-09-24 19:29:18 +03:00
Alexander Zobnin
3fccec1bb8 Initial boilerplate backend plugin 2019-09-24 19:28:51 +03:00
Alexander Zobnin
f1de88d122 Initial go module 2019-09-24 19:27:52 +03:00
Alexander Zobnin
224caa034d Change log: push back unreleased 2019-08-08 12:59:24 +03:00