Commit Graph

125 Commits

Author SHA1 Message Date
Alexander Zobnin
0369fb83a5 mysql-connector: aggregate values by time interval on server side 2017-07-21 22:22:16 +03:00
Alexander Zobnin
16256f2778 mysql-connector: implement getHistory for DB connector 2017-07-21 21:43:19 +03:00
Alexander Zobnin
6d89f36bb2 mysql-connector: initial ZabbixDBConnector class 2017-07-21 18:48:51 +03:00
Alexander Zobnin
6fa4baed0c mysql-connector: add config options for selecting data source
and load SQL data source during plugin init
2017-07-21 17:32:46 +03:00
Alexander Zobnin
eaaa86d31c annotations: replace variables in trigger name, fixes #428 2017-07-21 16:00:01 +03:00
Alexander Zobnin
e58cf62c36 Fix alert states for templated queries, closes #424 2017-07-10 12:18:53 +03:00
Alexander Zobnin
2d64a73030 Apply downsampling only to numeric data, fixes #325 2017-06-18 19:46:50 +03:00
Alexander Zobnin
7d97dfbef9 Sort trend data, fixes #202 2017-06-15 22:31:00 +03:00
Alexander Zobnin
f04e19db69 Allow to use names with dot in template queries, fixes #254 2017-06-08 16:28:29 +03:00
Alexander Zobnin
201c969e13 refactor: use timeRange instead of from, to 2017-06-08 15:01:36 +03:00
Alexander Zobnin
889f33f45f refactor: collapse options in getTriggers() 2017-06-08 14:44:41 +03:00
Alexander Zobnin
fe455113d5 refactor: use constants instead magic values 2017-06-08 13:53:02 +03:00
Alexander Zobnin
3eb5dc49e6 refactor: extract isUseTrends() function 2017-06-08 13:20:43 +03:00
Alexander Zobnin
48d21837b4 Fix timeshift() function with multiple targets, closes #338 2017-05-16 12:02:49 +03:00
Alexander Zobnin
c5a20d4d56 add host name to multiple text metrics 2017-04-20 10:05:55 +03:00
Alexander Zobnin
e241a5f990 Able to use both time and range for trends config, #364 2017-04-18 15:14:32 +03:00
Alexander Zobnin
682be45901 Support ms resolution.
Patch from Jay Dawes <ajaxous@gmail.com>
2017-03-26 19:20:18 +03:00
Alexander Zobnin
abf979de4b Add Min severity option to datasource config. 2017-03-08 16:27:15 +03:00
Alexander Zobnin
56782494fd Move alerting functions into zabbixAlertingSrv. 2017-03-08 15:49:39 +03:00
Alexander Zobnin
f2896fe1e4 Add thresholds to panels from zabbix triggers. 2017-03-06 12:20:18 +03:00
Alexander Zobnin
2f385faa1b Fix panel alert state changing to OK. 2017-03-06 09:19:56 +03:00
Alexander Zobnin
ca63fbe5a3 Add option for alerting to data source config. 2017-03-05 14:14:05 +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
5192e8648d Replace native map() and forEach() methods by lodash. 2017-03-05 10:09:47 +03:00
Alexander Zobnin
94c24e9be4 Fix templatig issue, when no values returned, closes #354 2017-02-11 16:26:23 +03:00
Alexander Zobnin
873b57e71a Fix error for new empty panel, fixes #337 2017-02-01 19:12:09 +03:00
Alexander Zobnin
54c03e6ece Added timeShift() function, closes #307. 2016-11-17 21:20:37 +03:00
Alexander Zobnin
fd772fab15 Refactor: dataProcessor.js 2016-11-14 17:52:59 +03:00
Alexander Zobnin
4dc4e3b8ea Refactor: fix tests. 2016-11-13 19:02:37 +03:00
Alexander Zobnin
6e0f59cd69 Refactor: datasource.js 2016-11-13 18:54:28 +03:00
Alexander Zobnin
d11f1b7616 Refactor: move zabbix requests to single place (zabbix.js module). 2016-11-13 17:47:38 +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
88ddcd0c42 Refactor: move zabbix api response handle to separate module. 2016-11-12 21:26:34 +03:00
Alexander Zobnin
2e57b9b166 Refactor: queryProcessor.service. 2016-11-12 20:49:32 +03:00
Alexander Zobnin
062d975319 Refactor: improved working with promises in testDatasource() method. 2016-11-11 19:38:23 +03:00
Alexander Zobnin
afe2cfc7cf Fixed zabbixTemplateFormat() error. 2016-11-09 21:23:03 +03:00
Alexander Zobnin
f8419f04a9 Tests: added tests for template variables replacing. 2016-11-09 16:52:12 +03:00
Alexander Zobnin
2330a3ae08 Annotations: show host name as colored tag. 2016-11-07 23:30:58 +03:00
Alexander Zobnin
77e16b70a5 Refactor: removed trick with self and this. 2016-11-07 21:19:29 +03:00
Alexander Zobnin
ca97d392e9 Fixed annotation popup bug after lodash upgrade. 2016-11-07 21:14:40 +03:00
Alexander Zobnin
62509caeb9 Fixed annotations bug with time filtering, fixes #244. 2016-11-07 21:03:42 +03:00
Alexander Zobnin
65308375f4 Fixed linter warnings. 2016-09-27 20:28:18 +03:00
Alexander Zobnin
07ad717df4 Fix backward compatibility with lodash 2.4, fixes #279. 2016-09-27 20:15:05 +03:00
Alexander Zobnin
aa882d752e Add top N and bottom N filter functions, closes #241. 2016-09-24 12:53:18 +03:00
Alexander Zobnin
70503a0647 Fixed lodash migration issues after upgrade to 4.x.
Moved: _.contains -> _.includes
		   _.object -> _.zipObject
		   _.first - replaced by native slice()
2016-09-17 22:33:19 +03:00
Alexander Zobnin
74503655bd Fixed missed lodash indexBy() after upgrade to 4.x. 2016-09-15 22:14:26 +03:00
Alexander Zobnin
2882a48f25 Support template variables in functions, fixes #205. 2016-08-13 20:28:24 +03:00
Alexander Zobnin
f3f308d7e2 Datasource refactor. 2016-08-13 18:41:19 +03:00
Alexander Zobnin
ca5bd47544 Removed unused logging. 2016-08-13 15:52:10 +03:00