Commit Graph

52 Commits

Author SHA1 Message Date
Alexander Zobnin
327aee7ef4 add consolidateBy() function 2017-07-22 20:47:24 +03:00
Alexander Zobnin
0369fb83a5 mysql-connector: aggregate values by time interval on server side 2017-07-21 22:22:16 +03:00
Alexander Zobnin
32e8806158 mysql-connector: don't query ns column
Grafana handle time series on backend, so this column isn't used
2017-07-21 21:46:35 +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
ea67c3bc2f average and sum: fix for null values 2017-07-03 12:36:39 +03:00
Alexander Zobnin
badc5e4cb9 groupBy: fill empty intervals by null, closes #388 2017-07-03 12:03:17 +03:00
Alexander Zobnin
007ddbf72f Improve scale() performance 2017-06-26 12:23:04 +03:00
Alexander Zobnin
b087ecd37e Add bechmark for rate and delta. 2017-06-26 11:42:01 +03:00
Alexander Zobnin
d6b36772b6 Add rate() function resistant to counter reset 2017-06-26 11:26:13 +03:00
Alexander Zobnin
fa12b04650 fix downsampling function arguments order 2017-06-26 10:06:35 +03:00
Alexander Zobnin
2f6da44311 Implement groupBy with for() and measure performance
about 8 times faster
2017-06-25 22:51:27 +03:00
Alexander Zobnin
da6373bda7 Initial benchmarks with Benchmark.js 2017-06-25 21:43:28 +03:00
Alexander Zobnin
8562dae998 timeseries.js refactor 2017-06-25 19:18:06 +03:00
Alexander Zobnin
b0da0ffb3e move timeseries processing into 'timeseries' module 2017-06-25 18:51:55 +03:00
Alexander Zobnin
2d64a73030 Apply downsampling only to numeric data, fixes #325 2017-06-18 19:46:50 +03:00
Alexander Zobnin
f28689ee6a Build dist 2017-06-18 16:44:51 +03:00
Alexander Zobnin
4a20651a04 Fix unit tests after refactor 2017-06-15 22:38:56 +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
5de016dd80 refactor: move macros expanding to utils 2017-06-08 14:17:49 +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
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
48d21837b4 Fix timeshift() function with multiple targets, closes #338 2017-05-16 12:02:49 +03:00
Alexander Zobnin
ea59983721 Fix tests for new trends options 2017-05-16 12:01:07 +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
df1c3e7ef4 implement replaceAlias() function, #287 2017-04-17 13:28:00 +03:00
Alexander Zobnin
d5c4ad783c Merge branch 'ms-resolution' 2017-03-28 19:50:01 +03:00
Alexander Zobnin
59fa345927 Fix tests after merging alerting 2017-03-28 19:44:31 +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
c43bd8bf33 Fix setting alerting state when panel is in fullscreen mode. 2017-03-08 16:05:40 +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
24b63f89aa Add all value regex to host dropdown. 2017-02-11 21:50:05 +03:00
Alexander Zobnin
77108fa05a Add template variables to dropdown metric list, closes #310 2017-02-11 21:31:08 +03:00
Alexander Zobnin
48018744bd Expand user macros in items, closes #212 2017-02-11 20:50:38 +03:00
Alexander Zobnin
94c24e9be4 Fix templatig issue, when no values returned, closes #354 2017-02-11 16:26:23 +03:00