testdata_alerts.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  1. {
  2. "annotations": {
  3. "list": [
  4. {
  5. "builtIn": 1,
  6. "datasource": "-- Grafana --",
  7. "enable": true,
  8. "hide": true,
  9. "iconColor": "rgba(0, 211, 255, 1)",
  10. "name": "Annotations & Alerts",
  11. "type": "dashboard"
  12. }
  13. ]
  14. },
  15. "editable": true,
  16. "gnetId": null,
  17. "graphTooltip": 0,
  18. "links": [],
  19. "panels": [
  20. {
  21. "alert": {
  22. "conditions": [
  23. {
  24. "evaluator": {
  25. "params": [
  26. 60
  27. ],
  28. "type": "gt"
  29. },
  30. "query": {
  31. "params": [
  32. "A",
  33. "5m",
  34. "now"
  35. ]
  36. },
  37. "reducer": {
  38. "params": [],
  39. "type": "avg"
  40. },
  41. "type": "query"
  42. }
  43. ],
  44. "enabled": true,
  45. "frequency": "60s",
  46. "handler": 1,
  47. "name": "TestData - Always OK",
  48. "noDataState": "no_data",
  49. "notifications": []
  50. },
  51. "aliasColors": {},
  52. "bars": false,
  53. "dashLength": 10,
  54. "dashes": false,
  55. "datasource": "gdev-testdata",
  56. "editable": true,
  57. "error": false,
  58. "fill": 1,
  59. "gridPos": {
  60. "h": 7,
  61. "w": 12,
  62. "x": 0,
  63. "y": 0
  64. },
  65. "id": 3,
  66. "isNew": true,
  67. "legend": {
  68. "avg": false,
  69. "current": false,
  70. "max": false,
  71. "min": false,
  72. "show": true,
  73. "total": false,
  74. "values": false
  75. },
  76. "lines": true,
  77. "linewidth": 2,
  78. "links": [],
  79. "nullPointMode": "connected",
  80. "percentage": false,
  81. "pointradius": 5,
  82. "points": false,
  83. "renderer": "flot",
  84. "seriesOverrides": [],
  85. "spaceLength": 10,
  86. "stack": false,
  87. "steppedLine": false,
  88. "targets": [
  89. {
  90. "refId": "A",
  91. "scenario": "random_walk",
  92. "scenarioId": "csv_metric_values",
  93. "stringInput": "1,20,90,30,5,0",
  94. "target": ""
  95. }
  96. ],
  97. "thresholds": [
  98. {
  99. "colorMode": "critical",
  100. "fill": true,
  101. "line": true,
  102. "op": "gt",
  103. "value": 60
  104. }
  105. ],
  106. "timeFrom": null,
  107. "timeShift": null,
  108. "title": "Always OK",
  109. "tooltip": {
  110. "msResolution": false,
  111. "shared": true,
  112. "sort": 0,
  113. "value_type": "cumulative"
  114. },
  115. "type": "graph",
  116. "xaxis": {
  117. "buckets": null,
  118. "mode": "time",
  119. "name": null,
  120. "show": true,
  121. "values": []
  122. },
  123. "yaxes": [
  124. {
  125. "format": "short",
  126. "label": "",
  127. "logBase": 1,
  128. "max": "125",
  129. "min": "0",
  130. "show": true
  131. },
  132. {
  133. "format": "short",
  134. "label": null,
  135. "logBase": 1,
  136. "max": null,
  137. "min": null,
  138. "show": true
  139. }
  140. ],
  141. "yaxis": {
  142. "align": false,
  143. "alignLevel": null
  144. }
  145. },
  146. {
  147. "alert": {
  148. "conditions": [
  149. {
  150. "evaluator": {
  151. "params": [
  152. 177
  153. ],
  154. "type": "gt"
  155. },
  156. "query": {
  157. "params": [
  158. "A",
  159. "5m",
  160. "now"
  161. ]
  162. },
  163. "reducer": {
  164. "params": [],
  165. "type": "avg"
  166. },
  167. "type": "query"
  168. }
  169. ],
  170. "enabled": true,
  171. "executionErrorState": "alerting",
  172. "for": "0m",
  173. "frequency": "60s",
  174. "handler": 1,
  175. "name": "TestData - Always Alerting",
  176. "noDataState": "no_data",
  177. "notifications": []
  178. },
  179. "aliasColors": {},
  180. "bars": false,
  181. "dashLength": 10,
  182. "dashes": false,
  183. "datasource": "gdev-testdata",
  184. "editable": true,
  185. "error": false,
  186. "fill": 1,
  187. "gridPos": {
  188. "h": 7,
  189. "w": 12,
  190. "x": 12,
  191. "y": 0
  192. },
  193. "id": 4,
  194. "isNew": true,
  195. "legend": {
  196. "avg": false,
  197. "current": false,
  198. "max": false,
  199. "min": false,
  200. "show": true,
  201. "total": false,
  202. "values": false
  203. },
  204. "lines": true,
  205. "linewidth": 2,
  206. "links": [],
  207. "nullPointMode": "connected",
  208. "percentage": false,
  209. "pointradius": 5,
  210. "points": false,
  211. "renderer": "flot",
  212. "seriesOverrides": [],
  213. "spaceLength": 10,
  214. "stack": false,
  215. "steppedLine": false,
  216. "targets": [
  217. {
  218. "refId": "A",
  219. "scenario": "random_walk",
  220. "scenarioId": "csv_metric_values",
  221. "stringInput": "200,445,100,150,200,220,190",
  222. "target": ""
  223. }
  224. ],
  225. "thresholds": [
  226. {
  227. "colorMode": "critical",
  228. "fill": true,
  229. "line": true,
  230. "op": "gt",
  231. "value": 177
  232. }
  233. ],
  234. "timeFrom": null,
  235. "timeShift": null,
  236. "title": "Always Alerting",
  237. "tooltip": {
  238. "msResolution": false,
  239. "shared": true,
  240. "sort": 0,
  241. "value_type": "cumulative"
  242. },
  243. "type": "graph",
  244. "xaxis": {
  245. "buckets": null,
  246. "mode": "time",
  247. "name": null,
  248. "show": true,
  249. "values": []
  250. },
  251. "yaxes": [
  252. {
  253. "format": "short",
  254. "label": "",
  255. "logBase": 1,
  256. "max": null,
  257. "min": "0",
  258. "show": true
  259. },
  260. {
  261. "format": "short",
  262. "label": "",
  263. "logBase": 1,
  264. "max": null,
  265. "min": null,
  266. "show": true
  267. }
  268. ],
  269. "yaxis": {
  270. "align": false,
  271. "alignLevel": null
  272. }
  273. },
  274. {
  275. "alert": {
  276. "conditions": [
  277. {
  278. "evaluator": {
  279. "params": [
  280. 1
  281. ],
  282. "type": "gt"
  283. },
  284. "operator": {
  285. "type": "and"
  286. },
  287. "query": {
  288. "params": [
  289. "A",
  290. "15m",
  291. "now"
  292. ]
  293. },
  294. "reducer": {
  295. "params": [],
  296. "type": "avg"
  297. },
  298. "type": "query"
  299. }
  300. ],
  301. "executionErrorState": "alerting",
  302. "for": "5m",
  303. "frequency": "1m",
  304. "handler": 1,
  305. "name": "TestData - No data",
  306. "noDataState": "no_data",
  307. "notifications": []
  308. },
  309. "aliasColors": {},
  310. "bars": false,
  311. "dashLength": 10,
  312. "dashes": false,
  313. "datasource": "gdev-testdata",
  314. "editable": true,
  315. "error": false,
  316. "fill": 1,
  317. "gridPos": {
  318. "h": 7,
  319. "w": 12,
  320. "x": 0,
  321. "y": 7
  322. },
  323. "id": 5,
  324. "isNew": true,
  325. "legend": {
  326. "avg": false,
  327. "current": false,
  328. "max": false,
  329. "min": false,
  330. "show": true,
  331. "total": false,
  332. "values": false
  333. },
  334. "lines": true,
  335. "linewidth": 2,
  336. "links": [],
  337. "nullPointMode": "connected",
  338. "percentage": false,
  339. "pointradius": 5,
  340. "points": false,
  341. "renderer": "flot",
  342. "seriesOverrides": [],
  343. "spaceLength": 10,
  344. "stack": false,
  345. "steppedLine": false,
  346. "targets": [
  347. {
  348. "refId": "A",
  349. "scenario": "random_walk",
  350. "scenarioId": "no_data_points",
  351. "stringInput": "",
  352. "target": ""
  353. }
  354. ],
  355. "thresholds": [
  356. {
  357. "colorMode": "critical",
  358. "fill": true,
  359. "line": true,
  360. "op": "gt",
  361. "value": 1
  362. }
  363. ],
  364. "timeFrom": null,
  365. "timeShift": null,
  366. "title": "No data",
  367. "tooltip": {
  368. "msResolution": false,
  369. "shared": true,
  370. "sort": 0,
  371. "value_type": "cumulative"
  372. },
  373. "type": "graph",
  374. "xaxis": {
  375. "buckets": null,
  376. "mode": "time",
  377. "name": null,
  378. "show": true,
  379. "values": []
  380. },
  381. "yaxes": [
  382. {
  383. "format": "short",
  384. "label": "",
  385. "logBase": 1,
  386. "max": null,
  387. "min": "0",
  388. "show": true
  389. },
  390. {
  391. "format": "short",
  392. "label": "",
  393. "logBase": 1,
  394. "max": null,
  395. "min": null,
  396. "show": true
  397. }
  398. ],
  399. "yaxis": {
  400. "align": false,
  401. "alignLevel": null
  402. }
  403. },
  404. {
  405. "alert": {
  406. "conditions": [
  407. {
  408. "evaluator": {
  409. "params": [
  410. 177
  411. ],
  412. "type": "gt"
  413. },
  414. "operator": {
  415. "type": "and"
  416. },
  417. "query": {
  418. "params": [
  419. "A",
  420. "15m",
  421. "now"
  422. ]
  423. },
  424. "reducer": {
  425. "params": [],
  426. "type": "avg"
  427. },
  428. "type": "query"
  429. }
  430. ],
  431. "executionErrorState": "alerting",
  432. "for": "1m",
  433. "frequency": "1m",
  434. "handler": 1,
  435. "name": "TestData - Always Alerting with For",
  436. "noDataState": "no_data",
  437. "notifications": []
  438. },
  439. "aliasColors": {},
  440. "bars": false,
  441. "dashLength": 10,
  442. "dashes": false,
  443. "datasource": "gdev-testdata",
  444. "editable": true,
  445. "error": false,
  446. "fill": 1,
  447. "gridPos": {
  448. "h": 7,
  449. "w": 12,
  450. "x": 12,
  451. "y": 7
  452. },
  453. "id": 6,
  454. "isNew": true,
  455. "legend": {
  456. "avg": false,
  457. "current": false,
  458. "max": false,
  459. "min": false,
  460. "show": true,
  461. "total": false,
  462. "values": false
  463. },
  464. "lines": true,
  465. "linewidth": 2,
  466. "links": [],
  467. "nullPointMode": "connected",
  468. "percentage": false,
  469. "pointradius": 5,
  470. "points": false,
  471. "renderer": "flot",
  472. "seriesOverrides": [],
  473. "spaceLength": 10,
  474. "stack": false,
  475. "steppedLine": false,
  476. "targets": [
  477. {
  478. "refId": "A",
  479. "scenario": "random_walk",
  480. "scenarioId": "csv_metric_values",
  481. "stringInput": "200,445,100,150,200,220,190",
  482. "target": ""
  483. }
  484. ],
  485. "thresholds": [
  486. {
  487. "colorMode": "critical",
  488. "fill": true,
  489. "line": true,
  490. "op": "gt",
  491. "value": 177
  492. }
  493. ],
  494. "timeFrom": null,
  495. "timeShift": null,
  496. "title": "Always Alerting with For",
  497. "tooltip": {
  498. "msResolution": false,
  499. "shared": true,
  500. "sort": 0,
  501. "value_type": "cumulative"
  502. },
  503. "type": "graph",
  504. "xaxis": {
  505. "buckets": null,
  506. "mode": "time",
  507. "name": null,
  508. "show": true,
  509. "values": []
  510. },
  511. "yaxes": [
  512. {
  513. "format": "short",
  514. "label": "",
  515. "logBase": 1,
  516. "max": null,
  517. "min": "0",
  518. "show": true
  519. },
  520. {
  521. "format": "short",
  522. "label": "",
  523. "logBase": 1,
  524. "max": null,
  525. "min": null,
  526. "show": true
  527. }
  528. ],
  529. "yaxis": {
  530. "align": false,
  531. "alignLevel": null
  532. }
  533. }
  534. ],
  535. "revision": 2,
  536. "schemaVersion": 16,
  537. "style": "dark",
  538. "tags": [
  539. "grafana-test"
  540. ],
  541. "templating": {
  542. "list": []
  543. },
  544. "time": {
  545. "from": "now-6h",
  546. "to": "now"
  547. },
  548. "timepicker": {
  549. "refresh_intervals": [
  550. "5s",
  551. "10s",
  552. "30s",
  553. "1m",
  554. "5m",
  555. "15m",
  556. "30m",
  557. "1h",
  558. "2h",
  559. "1d"
  560. ],
  561. "time_options": [
  562. "5m",
  563. "15m",
  564. "1h",
  565. "6h",
  566. "12h",
  567. "24h",
  568. "2d",
  569. "7d",
  570. "30d"
  571. ]
  572. },
  573. "timezone": "browser",
  574. "title": "Alerting with TestData",
  575. "uid": "7MeksYbmk",
  576. "version": 1
  577. }