alerting-dashboard.json 20 KB

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