alerting-dashboard.json 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800
  1. {
  2. "__inputs": [
  3. {
  4. "name": "DS_GRAPHITE",
  5. "label": "graphite",
  6. "description": "",
  7. "type": "datasource",
  8. "pluginId": "graphite",
  9. "pluginName": "Graphite"
  10. }
  11. ],
  12. "__requires": [
  13. {
  14. "type": "panel",
  15. "id": "graph",
  16. "name": "Graph",
  17. "version": ""
  18. },
  19. {
  20. "type": "grafana",
  21. "id": "grafana",
  22. "name": "Grafana",
  23. "version": "3.1.0"
  24. },
  25. {
  26. "type": "datasource",
  27. "id": "graphite",
  28. "name": "Graphite",
  29. "version": "1.0.0"
  30. }
  31. ],
  32. "id": null,
  33. "title": "Alerting example",
  34. "tags": [],
  35. "style": "dark",
  36. "timezone": "browser",
  37. "editable": true,
  38. "hideControls": false,
  39. "sharedCrosshair": false,
  40. "rows": [
  41. {
  42. "collapse": false,
  43. "editable": true,
  44. "height": "250px",
  45. "panels": [
  46. {
  47. "alert": {
  48. "conditions": [
  49. {
  50. "evaluator": {
  51. "params": [
  52. 355
  53. ],
  54. "type": "gt"
  55. },
  56. "query": {
  57. "params": [
  58. "A",
  59. "5m",
  60. "now"
  61. ]
  62. },
  63. "reducer": {
  64. "params": [],
  65. "type": "avg"
  66. },
  67. "type": "query"
  68. }
  69. ],
  70. "enabled": true,
  71. "frequency": "60s",
  72. "handler": 1,
  73. "name": "Critical alert panel",
  74. "notifications": [],
  75. "severity": "critical"
  76. },
  77. "alerting": {},
  78. "aliasColors": {},
  79. "bars": false,
  80. "datasource": "${DS_GRAPHITE}",
  81. "editable": true,
  82. "error": false,
  83. "fill": 1,
  84. "grid": {},
  85. "id": 1,
  86. "isNew": true,
  87. "legend": {
  88. "avg": false,
  89. "current": false,
  90. "max": false,
  91. "min": false,
  92. "show": true,
  93. "total": false,
  94. "values": false
  95. },
  96. "lines": true,
  97. "linewidth": 2,
  98. "links": [],
  99. "nullPointMode": "connected",
  100. "percentage": false,
  101. "pointradius": 5,
  102. "points": false,
  103. "renderer": "flot",
  104. "seriesOverrides": [],
  105. "span": 4,
  106. "stack": false,
  107. "steppedLine": false,
  108. "targets": [
  109. {
  110. "refId": "A",
  111. "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)"
  112. },
  113. {
  114. "refId": "B",
  115. "target": "aliasByNode(scale(statsd.$apa.counters.session_start.*.count, 10), 4)"
  116. }
  117. ],
  118. "thresholds": [
  119. {
  120. "colorMode": "critical",
  121. "fill": true,
  122. "line": true,
  123. "op": "gt",
  124. "value": 355
  125. }
  126. ],
  127. "timeFrom": null,
  128. "timeShift": null,
  129. "title": "Critical panel",
  130. "tooltip": {
  131. "msResolution": false,
  132. "shared": true,
  133. "sort": 0,
  134. "value_type": "cumulative"
  135. },
  136. "type": "graph",
  137. "xaxis": {
  138. "show": true
  139. },
  140. "yaxes": [
  141. {
  142. "format": "short",
  143. "label": null,
  144. "logBase": 1,
  145. "max": null,
  146. "min": null,
  147. "show": true
  148. },
  149. {
  150. "format": "short",
  151. "label": null,
  152. "logBase": 1,
  153. "max": null,
  154. "min": null,
  155. "show": true
  156. }
  157. ]
  158. },
  159. {
  160. "alert": {
  161. "conditions": [
  162. {
  163. "evaluator": {
  164. "params": [
  165. 20
  166. ],
  167. "type": "gt"
  168. },
  169. "query": {
  170. "params": [
  171. "A",
  172. "5m",
  173. "now"
  174. ]
  175. },
  176. "reducer": {
  177. "params": [],
  178. "type": "avg"
  179. },
  180. "type": "query"
  181. }
  182. ],
  183. "enabled": true,
  184. "frequency": "60s",
  185. "handler": 1,
  186. "name": "Warning panel alert",
  187. "notifications": [],
  188. "severity": "warning"
  189. },
  190. "alerting": {},
  191. "aliasColors": {},
  192. "bars": false,
  193. "datasource": "${DS_GRAPHITE}",
  194. "editable": true,
  195. "error": false,
  196. "fill": 1,
  197. "id": 2,
  198. "isNew": true,
  199. "legend": {
  200. "avg": false,
  201. "current": false,
  202. "max": false,
  203. "min": false,
  204. "show": true,
  205. "total": false,
  206. "values": false
  207. },
  208. "lines": true,
  209. "linewidth": 2,
  210. "links": [],
  211. "nullPointMode": "connected",
  212. "percentage": false,
  213. "pointradius": 5,
  214. "points": false,
  215. "renderer": "flot",
  216. "seriesOverrides": [],
  217. "span": 4,
  218. "stack": false,
  219. "steppedLine": false,
  220. "targets": [
  221. {
  222. "refId": "A",
  223. "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)"
  224. }
  225. ],
  226. "thresholds": [
  227. {
  228. "colorMode": "warning",
  229. "fill": true,
  230. "fillColor": "rgba(235, 138, 14, 0.12)",
  231. "line": true,
  232. "lineColor": "rgba(247, 149, 32, 0.60)",
  233. "op": "gt",
  234. "value": 20
  235. }
  236. ],
  237. "timeFrom": null,
  238. "timeShift": null,
  239. "title": "Warning panel",
  240. "tooltip": {
  241. "msResolution": false,
  242. "shared": true,
  243. "sort": 0,
  244. "value_type": "cumulative"
  245. },
  246. "type": "graph",
  247. "xaxis": {
  248. "show": true
  249. },
  250. "yaxes": [
  251. {
  252. "format": "short",
  253. "label": null,
  254. "logBase": 1,
  255. "max": null,
  256. "min": null,
  257. "show": true
  258. },
  259. {
  260. "format": "short",
  261. "label": null,
  262. "logBase": 1,
  263. "max": null,
  264. "min": null,
  265. "show": true
  266. }
  267. ]
  268. },
  269. {
  270. "alert": {
  271. "conditions": [
  272. {
  273. "evaluator": {
  274. "params": [
  275. 1
  276. ],
  277. "type": "lt"
  278. },
  279. "query": {
  280. "params": [
  281. "A",
  282. "5m",
  283. "now"
  284. ]
  285. },
  286. "reducer": {
  287. "params": [],
  288. "type": "count"
  289. },
  290. "type": "query"
  291. }
  292. ],
  293. "enabled": true,
  294. "frequency": "60s",
  295. "handler": 1,
  296. "name": "No datapoints",
  297. "notifications": [],
  298. "severity": "critical"
  299. },
  300. "alerting": {},
  301. "aliasColors": {},
  302. "bars": false,
  303. "datasource": "${DS_GRAPHITE}",
  304. "editable": true,
  305. "error": false,
  306. "fill": 1,
  307. "id": 20,
  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. "span": 4,
  328. "stack": false,
  329. "steppedLine": false,
  330. "targets": [
  331. {
  332. "refId": "A",
  333. "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)"
  334. }
  335. ],
  336. "thresholds": [
  337. {
  338. "value": 1,
  339. "op": "lt",
  340. "fill": true,
  341. "line": true,
  342. "colorMode": "critical"
  343. }
  344. ],
  345. "timeFrom": null,
  346. "timeShift": null,
  347. "title": "Count datapoints",
  348. "tooltip": {
  349. "msResolution": false,
  350. "shared": true,
  351. "sort": 0,
  352. "value_type": "cumulative"
  353. },
  354. "type": "graph",
  355. "xaxis": {
  356. "show": true
  357. },
  358. "yaxes": [
  359. {
  360. "format": "short",
  361. "label": null,
  362. "logBase": 1,
  363. "max": null,
  364. "min": null,
  365. "show": true
  366. },
  367. {
  368. "format": "short",
  369. "label": null,
  370. "logBase": 1,
  371. "max": null,
  372. "min": null,
  373. "show": true
  374. }
  375. ]
  376. }
  377. ],
  378. "title": "Row"
  379. },
  380. {
  381. "collapse": false,
  382. "editable": true,
  383. "height": "250px",
  384. "panels": [
  385. {
  386. "alert": {
  387. "conditions": [
  388. {
  389. "evaluator": {
  390. "params": [
  391. 20
  392. ],
  393. "type": "lt"
  394. },
  395. "query": {
  396. "params": [
  397. "A",
  398. "5m",
  399. "now"
  400. ]
  401. },
  402. "reducer": {
  403. "params": [],
  404. "type": "avg"
  405. },
  406. "type": "query"
  407. }
  408. ],
  409. "enabled": true,
  410. "frequency": "60s",
  411. "handler": 1,
  412. "name": "Alert below value",
  413. "notifications": [],
  414. "severity": "critical"
  415. },
  416. "alerting": {},
  417. "aliasColors": {},
  418. "bars": false,
  419. "datasource": "${DS_GRAPHITE}",
  420. "editable": true,
  421. "error": false,
  422. "fill": 1,
  423. "id": 17,
  424. "isNew": true,
  425. "legend": {
  426. "avg": false,
  427. "current": false,
  428. "max": false,
  429. "min": false,
  430. "show": true,
  431. "total": false,
  432. "values": false
  433. },
  434. "lines": true,
  435. "linewidth": 2,
  436. "links": [],
  437. "nullPointMode": "connected",
  438. "percentage": false,
  439. "pointradius": 5,
  440. "points": false,
  441. "renderer": "flot",
  442. "seriesOverrides": [],
  443. "span": 3,
  444. "stack": false,
  445. "steppedLine": false,
  446. "targets": [
  447. {
  448. "refId": "A",
  449. "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)"
  450. }
  451. ],
  452. "thresholds": [
  453. {
  454. "colorMode": "critical",
  455. "fill": true,
  456. "fillColor": "rgba(234, 112, 112, 0.12)",
  457. "line": true,
  458. "lineColor": "rgba(237, 46, 24, 0.60)",
  459. "op": "lt",
  460. "value": 20
  461. }
  462. ],
  463. "timeFrom": null,
  464. "timeShift": null,
  465. "title": "Alert below value",
  466. "tooltip": {
  467. "msResolution": false,
  468. "shared": true,
  469. "sort": 0,
  470. "value_type": "cumulative"
  471. },
  472. "type": "graph",
  473. "xaxis": {
  474. "show": true
  475. },
  476. "yaxes": [
  477. {
  478. "format": "short",
  479. "label": null,
  480. "logBase": 1,
  481. "max": null,
  482. "min": null,
  483. "show": true
  484. },
  485. {
  486. "format": "short",
  487. "label": null,
  488. "logBase": 1,
  489. "max": null,
  490. "min": null,
  491. "show": true
  492. }
  493. ]
  494. },
  495. {
  496. "alert": {
  497. "conditions": [
  498. {
  499. "evaluator": {
  500. "params": [
  501. 10,
  502. 80
  503. ],
  504. "type": "outside_range"
  505. },
  506. "query": {
  507. "params": [
  508. "A",
  509. "5m",
  510. "now"
  511. ]
  512. },
  513. "reducer": {
  514. "params": [],
  515. "type": "avg"
  516. },
  517. "type": "query"
  518. }
  519. ],
  520. "enabled": true,
  521. "frequency": "10s",
  522. "handler": 1,
  523. "name": "Alert is outside range",
  524. "notifications": [],
  525. "severity": "critical"
  526. },
  527. "alerting": {},
  528. "aliasColors": {},
  529. "bars": false,
  530. "datasource": "${DS_GRAPHITE}",
  531. "editable": true,
  532. "error": false,
  533. "fill": 1,
  534. "id": 18,
  535. "isNew": true,
  536. "legend": {
  537. "avg": false,
  538. "current": false,
  539. "max": false,
  540. "min": false,
  541. "show": true,
  542. "total": false,
  543. "values": false
  544. },
  545. "lines": true,
  546. "linewidth": 2,
  547. "links": [],
  548. "nullPointMode": "connected",
  549. "percentage": false,
  550. "pointradius": 5,
  551. "points": false,
  552. "renderer": "flot",
  553. "seriesOverrides": [],
  554. "span": 3,
  555. "stack": false,
  556. "steppedLine": false,
  557. "targets": [
  558. {
  559. "refId": "A",
  560. "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)"
  561. }
  562. ],
  563. "thresholds": [
  564. {
  565. "colorMode": "critical",
  566. "fill": true,
  567. "fillColor": "rgba(234, 112, 112, 0.12)",
  568. "line": true,
  569. "lineColor": "rgba(237, 46, 24, 0.60)",
  570. "op": "lt",
  571. "value": 10
  572. },
  573. {
  574. "colorMode": "critical",
  575. "fill": true,
  576. "fillColor": "rgba(234, 112, 112, 0.12)",
  577. "line": true,
  578. "lineColor": "rgba(237, 46, 24, 0.60)",
  579. "op": "gt",
  580. "value": 80
  581. }
  582. ],
  583. "timeFrom": null,
  584. "timeShift": null,
  585. "title": "Alert is outside range",
  586. "tooltip": {
  587. "msResolution": false,
  588. "shared": true,
  589. "sort": 0,
  590. "value_type": "cumulative"
  591. },
  592. "type": "graph",
  593. "xaxis": {
  594. "show": true
  595. },
  596. "yaxes": [
  597. {
  598. "format": "short",
  599. "label": null,
  600. "logBase": 1,
  601. "max": null,
  602. "min": null,
  603. "show": true
  604. },
  605. {
  606. "format": "short",
  607. "label": null,
  608. "logBase": 1,
  609. "max": null,
  610. "min": null,
  611. "show": true
  612. }
  613. ]
  614. },
  615. {
  616. "alert": {
  617. "conditions": [
  618. {
  619. "evaluator": {
  620. "params": [
  621. 60,
  622. 80
  623. ],
  624. "type": "within_range"
  625. },
  626. "query": {
  627. "params": [
  628. "A",
  629. "5m",
  630. "now"
  631. ]
  632. },
  633. "reducer": {
  634. "params": [],
  635. "type": "avg"
  636. },
  637. "type": "query"
  638. }
  639. ],
  640. "enabled": true,
  641. "frequency": "10s",
  642. "handler": 1,
  643. "name": "Alert is within range",
  644. "notifications": [],
  645. "severity": "critical"
  646. },
  647. "alerting": {},
  648. "aliasColors": {},
  649. "bars": false,
  650. "datasource": "${DS_GRAPHITE}",
  651. "editable": true,
  652. "error": false,
  653. "fill": 1,
  654. "id": 19,
  655. "isNew": true,
  656. "legend": {
  657. "avg": false,
  658. "current": false,
  659. "max": false,
  660. "min": false,
  661. "show": true,
  662. "total": false,
  663. "values": false
  664. },
  665. "lines": true,
  666. "linewidth": 2,
  667. "links": [],
  668. "nullPointMode": "connected",
  669. "percentage": false,
  670. "pointradius": 5,
  671. "points": false,
  672. "renderer": "flot",
  673. "seriesOverrides": [],
  674. "span": 3,
  675. "stack": false,
  676. "steppedLine": false,
  677. "targets": [
  678. {
  679. "refId": "A",
  680. "target": "aliasByNode(statsd.fakesite.counters.session_start.*.count, 4)"
  681. }
  682. ],
  683. "thresholds": [
  684. {
  685. "colorMode": "critical",
  686. "fill": true,
  687. "fillColor": "rgba(234, 112, 112, 0.12)",
  688. "line": true,
  689. "lineColor": "rgba(237, 46, 24, 0.60)",
  690. "op": "gt",
  691. "value": 60
  692. },
  693. {
  694. "colorMode": "critical",
  695. "fill": true,
  696. "fillColor": "rgba(234, 112, 112, 0.12)",
  697. "line": true,
  698. "lineColor": "rgba(237, 46, 24, 0.60)",
  699. "op": "lt",
  700. "value": 80
  701. }
  702. ],
  703. "timeFrom": null,
  704. "timeShift": null,
  705. "title": "Alert is within range",
  706. "tooltip": {
  707. "msResolution": false,
  708. "shared": true,
  709. "sort": 0,
  710. "value_type": "cumulative"
  711. },
  712. "type": "graph",
  713. "xaxis": {
  714. "show": true
  715. },
  716. "yaxes": [
  717. {
  718. "format": "short",
  719. "label": null,
  720. "logBase": 1,
  721. "max": null,
  722. "min": null,
  723. "show": true
  724. },
  725. {
  726. "format": "short",
  727. "label": null,
  728. "logBase": 1,
  729. "max": null,
  730. "min": null,
  731. "show": true
  732. }
  733. ]
  734. }
  735. ],
  736. "title": "New row"
  737. }
  738. ],
  739. "time": {
  740. "from": "now-6h",
  741. "to": "now"
  742. },
  743. "timepicker": {
  744. "refresh_intervals": [
  745. "5s",
  746. "10s",
  747. "30s",
  748. "1m",
  749. "5m",
  750. "15m",
  751. "30m",
  752. "1h",
  753. "2h",
  754. "1d"
  755. ],
  756. "time_options": [
  757. "5m",
  758. "15m",
  759. "1h",
  760. "6h",
  761. "12h",
  762. "24h",
  763. "2d",
  764. "7d",
  765. "30d"
  766. ]
  767. },
  768. "templating": {
  769. "list": [
  770. {
  771. "current": {
  772. "text": "fakesite",
  773. "value": "fakesite"
  774. },
  775. "datasource": null,
  776. "hide": 0,
  777. "includeAll": false,
  778. "multi": false,
  779. "name": "apa",
  780. "options": [
  781. {
  782. "selected": true,
  783. "text": "fakesite",
  784. "value": "fakesite"
  785. }
  786. ],
  787. "query": "fakesite",
  788. "refresh": 0,
  789. "type": "custom"
  790. }
  791. ]
  792. },
  793. "annotations": {
  794. "list": []
  795. },
  796. "schemaVersion": 13,
  797. "version": 15,
  798. "links": [],
  799. "gnetId": null
  800. }