testdata_alerts.json 14 KB

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