testdata_alerts.json 15 KB

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