influxdb-alert.json 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. {
  2. "id": 4,
  3. "title": "Influxdb",
  4. "tags": [
  5. "apa"
  6. ],
  7. "style": "dark",
  8. "timezone": "browser",
  9. "editable": true,
  10. "hideControls": false,
  11. "sharedCrosshair": false,
  12. "rows": [
  13. {
  14. "collapse": false,
  15. "editable": true,
  16. "height": "450px",
  17. "panels": [
  18. {
  19. "alert": {
  20. "conditions": [
  21. {
  22. "evaluator": {
  23. "params": [
  24. 10
  25. ],
  26. "type": "gt"
  27. },
  28. "query": {
  29. "params": [
  30. "B",
  31. "5m",
  32. "now"
  33. ]
  34. },
  35. "reducer": {
  36. "params": [],
  37. "type": "avg"
  38. },
  39. "type": "query"
  40. }
  41. ],
  42. "frequency": "3s",
  43. "handler": 1,
  44. "name": "Influxdb",
  45. "noDataState": "no_data",
  46. "notifications": [
  47. {
  48. "id": 1
  49. },
  50. {
  51. "uid": "notifier2"
  52. }
  53. ]
  54. },
  55. "alerting": {},
  56. "aliasColors": {
  57. "logins.count.count": "#890F02"
  58. },
  59. "bars": false,
  60. "datasource": "InfluxDB",
  61. "editable": true,
  62. "error": false,
  63. "fill": 1,
  64. "grid": {},
  65. "id": 1,
  66. "interval": ">10s",
  67. "isNew": true,
  68. "legend": {
  69. "avg": false,
  70. "current": false,
  71. "max": false,
  72. "min": false,
  73. "show": true,
  74. "total": false,
  75. "values": false
  76. },
  77. "lines": true,
  78. "linewidth": 2,
  79. "links": [],
  80. "nullPointMode": "connected",
  81. "percentage": false,
  82. "pointradius": 5,
  83. "points": false,
  84. "renderer": "flot",
  85. "seriesOverrides": [],
  86. "span": 10,
  87. "stack": false,
  88. "steppedLine": false,
  89. "targets": [
  90. {
  91. "groupBy": [
  92. {
  93. "params": [
  94. "$interval"
  95. ],
  96. "type": "time"
  97. },
  98. {
  99. "params": [
  100. "datacenter"
  101. ],
  102. "type": "tag"
  103. },
  104. {
  105. "params": [
  106. "none"
  107. ],
  108. "type": "fill"
  109. }
  110. ],
  111. "hide": false,
  112. "measurement": "logins.count",
  113. "policy": "default",
  114. "query": "SELECT 8 * count(\"value\") FROM \"logins.count\" WHERE $timeFilter GROUP BY time($interval), \"datacenter\" fill(none)",
  115. "rawQuery": true,
  116. "refId": "B",
  117. "resultFormat": "time_series",
  118. "select": [
  119. [
  120. {
  121. "params": [
  122. "value"
  123. ],
  124. "type": "field"
  125. },
  126. {
  127. "params": [],
  128. "type": "count"
  129. }
  130. ]
  131. ],
  132. "tags": []
  133. },
  134. {
  135. "groupBy": [
  136. {
  137. "params": [
  138. "$interval"
  139. ],
  140. "type": "time"
  141. },
  142. {
  143. "params": [
  144. "null"
  145. ],
  146. "type": "fill"
  147. }
  148. ],
  149. "hide": true,
  150. "measurement": "cpu",
  151. "policy": "default",
  152. "refId": "A",
  153. "resultFormat": "time_series",
  154. "select": [
  155. [
  156. {
  157. "params": [
  158. "value"
  159. ],
  160. "type": "field"
  161. },
  162. {
  163. "params": [],
  164. "type": "mean"
  165. }
  166. ],
  167. [
  168. {
  169. "params": [
  170. "value"
  171. ],
  172. "type": "field"
  173. },
  174. {
  175. "params": [],
  176. "type": "sum"
  177. }
  178. ]
  179. ],
  180. "tags": []
  181. }
  182. ],
  183. "thresholds": [
  184. {
  185. "colorMode": "critical",
  186. "fill": true,
  187. "line": true,
  188. "op": "gt",
  189. "value": 10
  190. }
  191. ],
  192. "timeFrom": null,
  193. "timeShift": null,
  194. "title": "Panel Title",
  195. "tooltip": {
  196. "msResolution": false,
  197. "ordering": "alphabetical",
  198. "shared": true,
  199. "sort": 0,
  200. "value_type": "cumulative"
  201. },
  202. "type": "graph",
  203. "xaxis": {
  204. "mode": "time",
  205. "name": null,
  206. "show": true,
  207. "values": []
  208. },
  209. "yaxes": [
  210. {
  211. "format": "short",
  212. "logBase": 1,
  213. "max": null,
  214. "min": null,
  215. "show": true
  216. },
  217. {
  218. "format": "short",
  219. "logBase": 1,
  220. "max": null,
  221. "min": null,
  222. "show": true
  223. }
  224. ]
  225. },
  226. {
  227. "editable": true,
  228. "error": false,
  229. "id": 2,
  230. "isNew": true,
  231. "limit": 10,
  232. "links": [],
  233. "show": "current",
  234. "span": 2,
  235. "stateFilter": [
  236. "alerting"
  237. ],
  238. "title": "Alert status",
  239. "type": "alertlist"
  240. }
  241. ],
  242. "title": "Row"
  243. }
  244. ],
  245. "time": {
  246. "from": "now-5m",
  247. "to": "now"
  248. },
  249. "timepicker": {
  250. "now": true,
  251. "refresh_intervals": [
  252. "5s",
  253. "10s",
  254. "30s",
  255. "1m",
  256. "5m",
  257. "15m",
  258. "30m",
  259. "1h",
  260. "2h",
  261. "1d"
  262. ],
  263. "time_options": [
  264. "5m",
  265. "15m",
  266. "1h",
  267. "6h",
  268. "12h",
  269. "24h",
  270. "2d",
  271. "7d",
  272. "30d"
  273. ]
  274. },
  275. "templating": {
  276. "list": []
  277. },
  278. "annotations": {
  279. "list": []
  280. },
  281. "schemaVersion": 13,
  282. "version": 120,
  283. "links": [],
  284. "gnetId": null
  285. }