testdata_alerts.json 15 KB

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