Commit Graph

605 Commits

Author SHA1 Message Date
Alexander Zobnin
7653bacce9 fix linter errors 2020-01-14 17:56:44 +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
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
6097e81a2c fix plugin.json changes 2019-12-12 11:31:28 +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
05243a9701 Progress 2019-10-18 16:17:48 -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
Alexander Zobnin
6e80b49120 backend: handle response on the fronted 2019-09-26 21:35:00 +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
Alexander Zobnin
0855fe5189 Bump plugin version to 3.10.4 2019-08-08 12:49:50 +03:00
Alexander Zobnin
55ffe5eded Problems: fix heart icons, fix #754 2019-08-08 12:34:21 +03:00
Alexander Zobnin
e02b660dfd Problems panel: use skipDataQuery flag instead of deprecated dataFormats, fix #778 2019-08-08 12:00:05 +03:00
Alexander Zobnin
ff5a7f0136 fix tests (add kbn mock) 2019-07-31 14:36:30 +03:00
Alexander Zobnin
8f139d0322 SLA over time: make intervals based on panel intervalMs, #728 2019-07-30 18:56:42 +03:00
JeferCatarina
2fac45c11b SLA over time (#764)
* Added "Functions" to IT Services editor panel

* Added support to IT Services graph over time
2019-07-30 18:54:56 +03:00
Alexander Zobnin
15d76dc941 bump plugin version to 3.10.3 2019-07-26 14:46:39 +03:00
Alexander Zobnin
ca082c98a1 fix panel alert state icon in Grafana 6, closes #715 2019-07-08 16:31:48 +03:00
Alexander Zobnin
7727d86804 fix tests (add mocks for some grafana modules) 2019-07-08 15:45:50 +03:00
Alexander Zobnin
348a5165f2 function editor: fix moving alias func to the end 2019-07-08 15:38:30 +03:00
Alexander Zobnin
fbefe66d75 refactor: move react components to separate dir 2019-07-08 15:35:13 +03:00
Alexander Zobnin
4346e13365 fix function editor in Grafana 6, #765 2019-07-08 15:25:41 +03:00
Alexander Zobnin
6b5b5f818b fix direct DB connection datasource config, closes #731 2019-07-05 16:23:36 +03:00
Alexander Zobnin
3a7da58302 fix triggers count with latest Zabbix 4.x, closes #726 2019-04-24 10:12:38 +03:00
Alexander Zobnin
e1e5ea193a fix triggers count in latest zabbix 4.x, closes #726 2019-04-24 10:04:24 +03:00
Alexander Zobnin
7d6c0c2398 bump plugin version to 3.10.2 2019-04-23 20:09:49 +03:00
Alexander Zobnin
c5453041ac triggers mode: filter results by group, fix #709 2019-04-23 19:53:38 +03:00
Alexander Zobnin
f76cff2b89 Problems: fix multiline description at List view, closes #704 2019-04-22 15:51:07 +03:00
Alexander Zobnin
30ce9d8430 Problems: fix nodata styles, closes #717 2019-04-22 15:32:38 +03:00
Alexander Zobnin
f908376802 Problems panel: hide acknowledge button for read-only users, fix #722 2019-04-22 13:10:23 +03:00
Alexander Zobnin
bc889ffe30 Fix problems fetching performance and memory issues (#724)
* request only alert message when invoking alert.get

* fetch problem alerts on demand

* problems panel: refactor
2019-04-22 12:29:05 +03:00
Alexander Zobnin
938ca83e47 add migration for percentile agg 2019-04-19 13:14:41 +03:00
Alexander Zobnin
05a746b42c Merge branch 'fix-codespell-issues' of git://github.com/mjtrangoni/grafana-zabbix into mjtrangoni-fix-codespell-issues 2019-04-19 13:00:25 +03:00
Alexander Zobnin
869634ef62 Fix ds provisioning with direct DB connection enabled (#723)
* fix ds provisioning with direct DB connection #711

* fix linter error
2019-04-19 12:56:51 +03:00
Mario Trangoni
0e81752ab8 lint: Fix disallowSpacesInsideArrayBrackets issues
See,

disallowSpacesInsideArrayBrackets: Illegal space after opening bracket at src/datasource-zabbix/specs/utils.spec.js :
   156 |        },
   157 |        {
   158 |          array: [ [[1, 2], [3, 4]], [[1, 2], [3, 4]] ],
--------------------------^
   159 |          depth: 3
   160 |        },

disallowSpacesInsideArrayBrackets: Illegal space before closing bracket at src/datasource-zabbix/specs/utils.spec.js :
   156 |        },
   157 |        {
   158 |          array: [ [[1, 2], [3, 4]], [[1, 2], [3, 4]] ],
-------------------------------------------------------------^
   159 |          depth: 3
   160 |        },

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
2019-04-10 20:00:17 +02:00
Mario Trangoni
2f9be7a184 src/*: Fix codespell issues
See,
$ codespell -S './src/img/*.png,./.git*' -L que

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
2019-04-10 19:35:34 +02:00
Alexander Zobnin
e4bbecb18b fix multiple agg functions handling, closes #530 2019-03-07 10:35:36 +03:00
Alexander Zobnin
e63e19c757 bump version to 3.10.1 2019-03-05 14:23:12 +03:00
Alexander Zobnin
e52e296c11 fix datasource provisioning with direct DB connection enabled, closes #688 2019-03-05 14:13:05 +03:00
Alexander Zobnin
7e73219b7b problems: fix duplicated page size entries, closes #696 2019-03-05 12:27:13 +03:00
Alexander Zobnin
f2d690f92b influxdb: fix trends query, closes #675 2019-03-04 17:39:10 +03:00
Alexander Zobnin
e4947b6e19 problems: fix acknowledged event color, closes #676, #681 2019-03-04 16:45:37 +03:00
Alexander Zobnin
c415e82ce3 problems: fix "acknowledged" filter, closes #678, #691 2019-03-04 16:00:11 +03:00
Alexander Zobnin
6449b8b255 fix annotations with full day/week/month intervals, closes #680 2019-03-01 14:00:15 +03:00
Alexander Zobnin
55158de311 fix median() function bug, closes #690 2019-03-01 13:42:37 +03:00
Alexander Zobnin
5884c8f3f9 fix offset() function, #683 2019-03-01 13:26:09 +03:00