Commit Graph

1751 Commits

Author SHA1 Message Date
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
b704bf23c1 Update popper, fix #900 2020-04-29 20:51:50 +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
8a5f785cc3 Docs: variables available for using in alias functions, #619 2020-04-13 15:25:07 +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
e6f7e66667 Merge branch 'master' into docs 2020-04-13 10:29:03 +03:00
YuBinglei
890fa8ed50 Docs: fix link to SQL data source config page (#902)
* [Doc] change link in index.md

The original linked file in section `Direct DB Connection` is missing,
> Read how to configure SQL data source in Grafana.

change it to [direct_db_datasource](https://github.com/alexanderzobnin/grafana-zabbix/blob/docs/docs/sources/configuration/direct_db_datasource.md)

* rm md suffix
2020-04-13 10:27:20 +03:00
Alexander Zobnin
9c9c665a8f Merge branch 'master' of github.com:alexanderzobnin/grafana-zabbix 2020-04-13 09:49:16 +03:00
Alexander Zobnin
d0bde50bb8 Docs: update copyright 2020-04-13 09:47:42 +03:00
Alexander Zobnin
3793940b61 Merge branch 'master' into docs 2020-04-13 09:46:57 +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
58949be25e Change log: fix typo 2020-03-20 16:30:12 +03:00
Alexander Zobnin
4daee57681 Bump version to 3.11.0 2020-03-20 16:27:11 +03:00
Alexander Zobnin
71d7aa4d57 Update change log 2020-03-20 16:25:05 +03:00
Alexander Zobnin
9fd386a6ee Problems: fix panel rendering in 6.7, fixes #907 2020-03-20 09:29:06 +03:00
Alexander Zobnin
e52698ea16 update backend debug script 2020-01-29 15:35:10 +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
5c9d9cd92e fix tests
See https://github.com/jsdom/jsdom/issues/1782
https://github.com/grafana/grafana/issues/20921
2020-01-16 13:58:12 +03:00
Alexander Zobnin
b28b13ba7a exclude @grafana/runtime from build 2020-01-16 12:50:26 +03:00
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