Commit Graph

50 Commits

Author SHA1 Message Date
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
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
Alexander Zobnin
1d13520358 fix tests 2019-10-09 15:42:34 +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
Alexander Zobnin
e4bbecb18b fix multiple agg functions handling, closes #530 2019-03-07 10:35:36 +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
f2d690f92b influxdb: fix trends query, closes #675 2019-03-04 17:39:10 +03:00
Alexander Zobnin
ae32dfb9a7 use trends only if interval strictly greater than specified 2019-02-14 10:55:34 +03:00
Alexander Zobnin
089700d227 influx: support retention policy for long-term stored data 2019-02-14 10:55:34 +03:00
Alexander Zobnin
054e5518c5 tests for influxdb connector 2019-02-14 10:55:34 +03:00
Alexander Zobnin
42839648c4 db connector: fix tests 2019-02-14 10:54:32 +03:00
Alexander Zobnin
6eb52619b9 db connector: refactor 2019-02-14 10:51:13 +03:00
drakosha
e36336864a Offset function added (#638)
* Shift function added

* Remane shift function to offset
2018-11-28 17:30:51 +03:00
Alexander Zobnin
2b44a40c55 tests: extract mocks into separate module 2018-11-15 10:13:49 +03:00
Alexander Zobnin
8096c0a65e use direct db connection datasource name for provisioning, #614 2018-08-28 22:34:41 +03:00
Alexander Zobnin
07c7e4fc9e add migrations for datasource config 2018-08-28 20:37:10 +03:00
Alexander Zobnin
ed5cc05c13 Merge branch 'master' of https://github.com/g-goessel/grafana-zabbix into g-goessel-master 2018-08-28 20:34:37 +03:00
Alexander Zobnin
6151af256b fix datasource tests 2018-08-28 18:15:53 +03:00
Alexander Zobnin
8a51d1d854 minor refactor 2018-08-28 16:37:51 +03:00
g-goessel
9cfb7e210a Implements proposal #597 2018-07-23 12:18:30 +02:00
Alexander Zobnin
ca6a7d02c4 refactor of PR #526 2018-02-20 22:21:24 +03:00
akotynski
a9d0b4195e remove options to hide columns 2018-02-16 09:08:06 +01:00
akotynski
cc87f731aa Add options for table 2018-02-14 11:52:40 +01:00
Alexander Zobnin
48a003a930 fix regex-based text filter 2018-01-27 13:26:14 +03:00
Alexander Zobnin
7a517be6e1 tests for text data table format 2018-01-27 13:17:31 +03:00
Alexander Zobnin
63a2594cf3 fix aggregateBy func, fix #498 2017-12-20 12:51:07 +03:00
Alexander Zobnin
e80a814880 migrate tests to Jest 2017-10-30 20:26:53 +03:00
akotynski
0ab31e59f8 Merge remote-tracking branch 'upstream/master' into threshold_regex
# Conflicts:
#	dist/datasource-zabbix/datasource.js
#	dist/datasource-zabbix/datasource.js.map
#	dist/datasource-zabbix/specs/test-main.js
#	dist/test/datasource-zabbix/datasource.js
#	dist/test/datasource-zabbix/specs/test-main.js
2017-10-23 14:26:46 +02:00
akotynski
eb1ef06ae7 upgrade jsdom to newest version so contextify is no longer required, add travis 2017-10-23 14:05:49 +02:00
akotynski
a15d704b86 return thresholds for expressions with less/greater than or equal 2017-10-23 13:42:47 +02:00
Alexander Zobnin
3e57b5479c fix tests 2017-10-22 19:09:21 +03:00
Alexander Zobnin
122a97e482 fix sumSeries() function, closes #286 2017-07-26 16:21:40 +03:00
Alexander Zobnin
39f4db5182 fix target backward compatibility 2017-07-26 12:11:12 +03:00
Alexander Zobnin
996bc9e1d1 templating: fix queries contained regex with braces, fixes #432 2017-07-25 12:06:37 +03:00
Alexander Zobnin
ba6a04a120 mysql-connector: fix tests 2017-07-23 11:38:30 +03:00
Alexander Zobnin
4a20651a04 Fix unit tests after refactor 2017-06-15 22:38:56 +03:00
Alexander Zobnin
b0344dc817 Fix potential bug in key array params expanding 2017-05-17 22:25:01 +03:00
Alexander Zobnin
253ed4fb72 Fix item name expanding when key contains commas in quoted params 2017-05-17 21:51:07 +03:00
Alexander Zobnin
ea59983721 Fix tests for new trends options 2017-05-16 12:01:07 +03:00
Alexander Zobnin
59fa345927 Fix tests after merging alerting 2017-03-28 19:44:31 +03:00
Alexander Zobnin
f805213b02 Initial alerting feature. This implementation doesn't use Grafana alerting,
instead it get triggers for particular metrics and sets panel's alert state.
2017-03-05 13:59:23 +03:00
Alexander Zobnin
4dc4e3b8ea Refactor: fix tests. 2016-11-13 19:02:37 +03:00
Alexander Zobnin
ce8d9f4be8 Refactor: replace angular $q by native Promise. 2016-11-13 15:56:35 +03:00
Alexander Zobnin
032927cf8f Refactor: queryProcessor renamend to queryBuilder. 2016-11-13 13:16:07 +03:00
Alexander Zobnin
cb5461a472 Tests: added tests for template variable query, issue #303. 2016-11-09 20:34:05 +03:00
Alexander Zobnin
f8419f04a9 Tests: added tests for template variables replacing. 2016-11-09 16:52:12 +03:00
Alexander Zobnin
a8079316d7 Update datemath mock to lodash 4. 2016-11-09 15:00:36 +03:00
Alexander Zobnin
e64ae98378 Add trend using tests. Use sinon for checking functions calls. 2016-08-14 14:53:40 +03:00
Alexander Zobnin
d247fc8a99 Initial unit tests (using Mocha and Chai asserts). 2016-08-14 11:58:53 +03:00