influxdb-alert.json 6.9 KB

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