Commit Graph

797 Commits

Author SHA1 Message Date
Alexander Zobnin
f8f675f78e Move proxy option to the datasource query editor 2020-05-07 17:55:46 +03:00
Alexander Zobnin
80aa2e94ad Move problem query options to the datasource 2020-05-07 17:51:24 +03:00
Alexander Zobnin
7f1d4eb313 Problems: use datasource query 2020-05-07 15:01:40 +03:00
Alexander Zobnin
29d902326a Move problems query to the data source 2020-05-07 13:38:55 +03:00
Alexander Zobnin
64f64ff71f remove lodash backward compatibility fixes 2020-05-07 11:57:22 +03:00
Alexander Zobnin
ffb1862094 convert timeseries.js to TS 2020-05-07 11:56:41 +03:00
Alexander Zobnin
e7cd31c75c convert metricFunctions to TS 2020-05-07 11:49:51 +03:00
Alexander Zobnin
44660476ca datasource: convert to TS 2020-05-07 11:33:15 +03:00
Alexander Zobnin
624574e5d3 Problems: fix alert list rendering if no last event present 2020-04-29 20:51:12 +03:00
Alexander Zobnin
916c570664 Fix severity for resolved problems, closes #909 2020-04-13 15:55: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
9430993b26 Chore: convert responseHandler to TS 2020-04-13 14:24:21 +03:00
Alexander Zobnin
8ac5f42e73 Use event name for annotations if available, fixes #891 2020-04-13 14:12:16 +03:00
Alexander Zobnin
08b1b635b7 Fix explore mode in Grafana 6.x, closes #888
Migrate target.mode to target.queryType because Explore uses target.mode and overwrites it.
2020-04-13 12:16:44 +03:00
Alexander Zobnin
9c9c665a8f Merge branch 'master' of github.com:alexanderzobnin/grafana-zabbix 2020-04-13 09:49:16 +03:00
Alexander Zobnin
3dfe29816b DB Connection: return detailed connection error for InfluxDB 2020-04-10 19:56:08 +03:00
Mario Dominguez
59a8fb1065 Problems: Pass scopedVars into replaceTemplateVars() function. (#913)
Co-authored-by: Mario Dominguez <mario.dominguez@datadope.io>
2020-04-10 11:29:52 +03:00
Alexander Zobnin
4adfb12d59 Update release date 2020-03-23 16:15:58 +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
Alexander Zobnin
4daee57681 Bump version to 3.11.0 2020-03-20 16:27:11 +03:00
Alexander Zobnin
9fd386a6ee Problems: fix panel rendering in 6.7, fixes #907 2020-03-20 09:29:06 +03:00
memfiz
94c5059fb1 fix event severity change (#872)
* fixed panel trigger severity if it is changed in event

* fixed panel trigger severity if it is changed in event

* fixed lastEvent check

* removed a comment

* fixed lastEvent check not empty
2020-01-24 16:39:15 +03:00
Alexander Zobnin
f7adf0e379 Merge branch 'master' into backend 2020-01-16 12:34:25 +03:00
Alec Sears
92e77617cf [Backend] Merge 'master' changes into the backend (#875)
* 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

* update packages (build with node 12)

* update circleci node image to 12

* fix test configuration (babel)

* Fix 817 (#851)

* problems: update panel schema

* update packages (build with node 12)

* problems: use datasource from target

* problems: fix query editor after schema update

* problems: fix list layout

* update circleci node image to 12

* fix tests

* build(deps-dev): bump lodash from 4.17.10 to 4.17.13 (#852)

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.10 to 4.17.13.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.10...4.17.13)

Signed-off-by: dependabot[bot] <support@github.com>

* fix packages security alerts

* problems: fix tags adding and removal

* fix adding func from typeahead, closes #468

* update change log

* bump plugin version to 3.10.5

* problems: fix tag removal (list layout)

* Fix percentile() function, closes #862 (#863)

Like the other aggregation functions, the datapoints need to be sorted in
time before calling groupBy_perf().

* Update copyright, happy New Year!

* fix not acknowledged problem color with a message (#858)

* fix not acknowledged problem color with a message

* fix not acknowledged problem color with a message, closes #857

* Variable query editor (#856)

* refactor: convert module to typescript

* refactor: covert utils to typescript

* variable query editor WIP

* variable editor: fix type error after grafana/ui update

* variable editor: use FormLabel from grafana/ui

* variable editor: refactor

* variable editor: input validation and highlights

* variable editor: fix tests

* variable query: fix backward compatibility with empty queries

* fix linter errors

* variable editor: fix variable replacement in queries

* Fixes for backend

Co-authored-by: Mario Trangoni <mario@mariotrangoni.de>
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mark Reibert <mreibert@netskope.com>
Co-authored-by: memfiz <arnis.civciss@gmail.com>
2020-01-15 14:48:43 +03:00
Alexander Zobnin
376183e8e4 Transform percentile function, closes #868 2020-01-15 11:02:17 +03:00
Alexander Zobnin
7653bacce9 fix linter errors 2020-01-14 17:56:44 +03:00
Alexander Zobnin
82cfda6524 Variable query editor (#856)
* refactor: convert module to typescript

* refactor: covert utils to typescript

* variable query editor WIP

* variable editor: fix type error after grafana/ui update

* variable editor: use FormLabel from grafana/ui

* variable editor: refactor

* variable editor: input validation and highlights

* variable editor: fix tests

* variable query: fix backward compatibility with empty queries

* fix linter errors

* variable editor: fix variable replacement in queries
2020-01-13 11:31:40 +03:00
memfiz
4f24b2bf23 fix not acknowledged problem color with a message (#858)
* fix not acknowledged problem color with a message

* fix not acknowledged problem color with a message, closes #857
2020-01-13 10:58:01 +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
Mark Reibert
dd28b28174 Fix percentile() function, closes #862 (#863)
Like the other aggregation functions, the datapoints need to be sorted in
time before calling groupBy_perf().
2020-01-11 20:28:32 +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
d54d6d29dc problems: fix tag removal (list layout) 2019-12-30 10:36:36 +03:00
Alexander Zobnin
90b8bfa99c bump plugin version to 3.10.5 2019-12-26 17:59:24 +03:00
Alexander Zobnin
90a9115958 fix adding func from typeahead, closes #468 2019-12-26 17:30:13 +03:00
Alexander Zobnin
1e6ca2d518 problems: fix tags adding and removal 2019-12-26 17:06:15 +03:00
Alexander Zobnin
ff4ad1997f Fix 817 (#851)
* problems: update panel schema

* update packages (build with node 12)

* problems: use datasource from target

* problems: fix query editor after schema update

* problems: fix list layout

* update circleci node image to 12

* fix tests
2019-12-25 14:24:15 +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
Alexander Zobnin
5afeda64cc Range-related variables #814 2019-10-28 16:24:56 +03:00
Alexander Zobnin
42d93b4d73 Don't set alert styles for react panels, fix #823 2019-10-28 11:44:47 +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
1d13520358 fix tests 2019-10-09 15:42:34 +03:00
Alexander Zobnin
1827aa942a Add $__range_series variable for calculating function over the whole series, #531 2019-10-09 15:26:35 +03:00
Alexander Zobnin
a652eafc46 fix function editor in Grafana 6.4, closes #810 2019-10-09 14:09:56 +03:00