Commit Graph

1568 Commits

Author SHA1 Message Date
Alexander Zobnin
f7adf0e379 Merge branch 'master' into backend 2020-01-16 12:34:25 +03:00
Alexander Zobnin
3581a818fc codespell: exclude yarn.lock 2020-01-15 14:53:59 +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
5b211d80a9 docs for percentile and percentileAgg, #868 2020-01-15 11:06:01 +03:00
Alexander Zobnin
376183e8e4 Transform percentile function, closes #868 2020-01-15 11:02:17 +03:00
Alexander Zobnin
fcfb237004 fix annotation queries 2020-01-14 19:00:10 +03:00
Alexander Zobnin
a7a72f5697 fix Filter param (can accept array or single value) 2020-01-14 18:39:21 +03:00
Alexander Zobnin
72cca28dab fix codespell 2020-01-14 18:00:37 +03:00
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
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
Alexander Zobnin
fe0c5cf1fd Update copyright, happy New Year! 2020-01-11 20:31:00 +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
Alexander Zobnin
b813bae5dc Merge branch 'master' into docs 2019-12-30 10:49:49 +03:00
Andrew Imeson
9ad84856a8 Spelling and grammar fixes, updated Grafana docs URL (#837) 2019-12-30 10:48:19 +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
51ef6f70d3 update change log 2019-12-26 17:56:08 +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
4fcef290a7 fix packages security alerts 2019-12-26 16:51:02 +03:00
dependabot[bot]
68aa093cf3 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>
2019-12-26 16:33:36 +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
c1db914376 fix test configuration (babel) 2019-12-25 12:12:36 +03:00
Alexander Zobnin
cf9780c6ea update circleci node image to 12 2019-12-25 11:40:07 +03:00
Alexander Zobnin
d09830f797 update packages (build with node 12) 2019-12-25 11:25:48 +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
Alexander Zobnin
5afeda64cc Range-related variables #814 2019-10-28 16:24:56 +03:00
Alexander Zobnin
bcbbc97152 fix codespell 2019-10-28 16:20:37 +03:00
Alexander Zobnin
bc1453e384 docs: percentile reference 2019-10-28 12:14:11 +03:00
Alexander Zobnin
51d423e586 docs: add range variables 2019-10-28 12:06:08 +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