alert.json 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  1. {
  2. "annotations": {
  3. "list": [
  4. {
  5. "builtIn": 1,
  6. "datasource": "Prometheus croara",
  7. "enable": false,
  8. "expr": "ALERTS",
  9. "hide": false,
  10. "iconColor": "rgba(0, 211, 255, 1)",
  11. "name": "Annotations & Alerts",
  12. "step": "60s",
  13. "target": {
  14. "limit": 100,
  15. "matchAny": false,
  16. "tags": [],
  17. "type": "dashboard"
  18. },
  19. "type": "dashboard"
  20. },
  21. {
  22. "datasource": null,
  23. "enable": false,
  24. "expr": "node_boot_time_seconds{host=~\"$name\"} * 1000",
  25. "iconColor": "red",
  26. "name": "mark reboots",
  27. "titleFormat": "",
  28. "useValueForTime": false
  29. }
  30. ]
  31. },
  32. "editable": true,
  33. "gnetId": null,
  34. "graphTooltip": 0,
  35. "id": 41,
  36. "iteration": 1651791125117,
  37. "links": [],
  38. "panels": [
  39. {
  40. "alert": {
  41. "alertRuleTags": {},
  42. "conditions": [
  43. {
  44. "evaluator": {
  45. "params": [
  46. 1
  47. ],
  48. "type": "lt"
  49. },
  50. "operator": {
  51. "type": "and"
  52. },
  53. "query": {
  54. "params": [
  55. "A",
  56. "5m",
  57. "now"
  58. ]
  59. },
  60. "reducer": {
  61. "params": [],
  62. "type": "avg"
  63. },
  64. "type": "query"
  65. }
  66. ],
  67. "executionErrorState": "alerting",
  68. "for": "5m",
  69. "frequency": "1m",
  70. "handler": 1,
  71. "name": "Down - Croara",
  72. "noDataState": "no_data",
  73. "notifications": []
  74. },
  75. "datasource": null,
  76. "fieldConfig": {
  77. "defaults": {
  78. "color": {
  79. "mode": "palette-classic"
  80. },
  81. "custom": {
  82. "axisLabel": "",
  83. "axisPlacement": "auto",
  84. "barAlignment": 0,
  85. "drawStyle": "line",
  86. "fillOpacity": 0,
  87. "gradientMode": "none",
  88. "hideFrom": {
  89. "legend": false,
  90. "tooltip": false,
  91. "viz": false
  92. },
  93. "lineInterpolation": "linear",
  94. "lineWidth": 1,
  95. "pointSize": 5,
  96. "scaleDistribution": {
  97. "type": "linear"
  98. },
  99. "showPoints": "auto",
  100. "spanNulls": false,
  101. "stacking": {
  102. "group": "A",
  103. "mode": "none"
  104. },
  105. "thresholdsStyle": {
  106. "mode": "off"
  107. }
  108. },
  109. "mappings": [],
  110. "thresholds": {
  111. "mode": "absolute",
  112. "steps": [
  113. {
  114. "color": "red",
  115. "value": null
  116. },
  117. {
  118. "color": "green",
  119. "value": 1
  120. }
  121. ]
  122. }
  123. },
  124. "overrides": []
  125. },
  126. "gridPos": {
  127. "h": 8,
  128. "w": 12,
  129. "x": 0,
  130. "y": 0
  131. },
  132. "id": 680,
  133. "options": {
  134. "legend": {
  135. "calcs": [],
  136. "displayMode": "table",
  137. "placement": "bottom"
  138. },
  139. "tooltip": {
  140. "mode": "single"
  141. }
  142. },
  143. "pluginVersion": "8.1.8",
  144. "targets": [
  145. {
  146. "exemplar": true,
  147. "expr": "up{group=\"mesh_stations\"}",
  148. "format": "time_series",
  149. "instant": false,
  150. "interval": "",
  151. "legendFormat": "{{host}} - {{instance}}",
  152. "refId": "A"
  153. }
  154. ],
  155. "thresholds": [
  156. {
  157. "colorMode": "critical",
  158. "op": "lt",
  159. "value": 1,
  160. "visible": true
  161. }
  162. ],
  163. "title": "Down - Croara",
  164. "type": "timeseries"
  165. },
  166. {
  167. "alert": {
  168. "alertRuleTags": {},
  169. "conditions": [
  170. {
  171. "evaluator": {
  172. "params": [
  173. 1
  174. ],
  175. "type": "lt"
  176. },
  177. "operator": {
  178. "type": "and"
  179. },
  180. "query": {
  181. "params": [
  182. "A",
  183. "5m",
  184. "now"
  185. ]
  186. },
  187. "reducer": {
  188. "params": [],
  189. "type": "last"
  190. },
  191. "type": "query"
  192. }
  193. ],
  194. "executionErrorState": "alerting",
  195. "for": "5m",
  196. "frequency": "1m",
  197. "handler": 1,
  198. "message": "",
  199. "name": "Down - Valsamoggia",
  200. "noDataState": "no_data",
  201. "notifications": []
  202. },
  203. "datasource": "Prometheus valsamoggia",
  204. "fieldConfig": {
  205. "defaults": {
  206. "color": {
  207. "mode": "palette-classic"
  208. },
  209. "custom": {
  210. "axisLabel": "",
  211. "axisPlacement": "auto",
  212. "barAlignment": 0,
  213. "drawStyle": "line",
  214. "fillOpacity": 0,
  215. "gradientMode": "none",
  216. "hideFrom": {
  217. "legend": false,
  218. "tooltip": false,
  219. "viz": false
  220. },
  221. "lineInterpolation": "linear",
  222. "lineWidth": 1,
  223. "pointSize": 5,
  224. "scaleDistribution": {
  225. "type": "linear"
  226. },
  227. "showPoints": "auto",
  228. "spanNulls": false,
  229. "stacking": {
  230. "group": "A",
  231. "mode": "none"
  232. },
  233. "thresholdsStyle": {
  234. "mode": "off"
  235. }
  236. },
  237. "mappings": [],
  238. "thresholds": {
  239. "mode": "absolute",
  240. "steps": [
  241. {
  242. "color": "green",
  243. "value": null
  244. },
  245. {
  246. "color": "red",
  247. "value": 80
  248. }
  249. ]
  250. }
  251. },
  252. "overrides": []
  253. },
  254. "gridPos": {
  255. "h": 8,
  256. "w": 12,
  257. "x": 12,
  258. "y": 0
  259. },
  260. "id": 682,
  261. "options": {
  262. "legend": {
  263. "calcs": [],
  264. "displayMode": "table",
  265. "placement": "bottom"
  266. },
  267. "tooltip": {
  268. "mode": "single"
  269. }
  270. },
  271. "targets": [
  272. {
  273. "exemplar": true,
  274. "expr": "up{group=\"mesh_stations\"}",
  275. "interval": "",
  276. "legendFormat": "{{host}} - {{instance}}",
  277. "refId": "A"
  278. }
  279. ],
  280. "thresholds": [
  281. {
  282. "colorMode": "critical",
  283. "op": "lt",
  284. "value": 1,
  285. "visible": true
  286. }
  287. ],
  288. "title": "Down - Valsamoggia",
  289. "type": "timeseries"
  290. },
  291. {
  292. "alert": {
  293. "alertRuleTags": {},
  294. "conditions": [
  295. {
  296. "evaluator": {
  297. "params": [
  298. 10
  299. ],
  300. "type": "gt"
  301. },
  302. "operator": {
  303. "type": "and"
  304. },
  305. "query": {
  306. "params": [
  307. "A",
  308. "5m",
  309. "now"
  310. ]
  311. },
  312. "reducer": {
  313. "params": [],
  314. "type": "avg"
  315. },
  316. "type": "query"
  317. },
  318. {
  319. "evaluator": {
  320. "params": [
  321. 10
  322. ],
  323. "type": "gt"
  324. },
  325. "operator": {
  326. "type": "or"
  327. },
  328. "query": {
  329. "params": [
  330. "B",
  331. "5m",
  332. "now"
  333. ]
  334. },
  335. "reducer": {
  336. "params": [],
  337. "type": "avg"
  338. },
  339. "type": "query"
  340. }
  341. ],
  342. "executionErrorState": "alerting",
  343. "for": "5m",
  344. "frequency": "1m",
  345. "handler": 1,
  346. "name": "Drops - Croara",
  347. "noDataState": "no_data",
  348. "notifications": []
  349. },
  350. "datasource": null,
  351. "fieldConfig": {
  352. "defaults": {
  353. "color": {
  354. "mode": "palette-classic"
  355. },
  356. "custom": {
  357. "axisLabel": "",
  358. "axisPlacement": "auto",
  359. "barAlignment": 0,
  360. "drawStyle": "line",
  361. "fillOpacity": 0,
  362. "gradientMode": "none",
  363. "hideFrom": {
  364. "legend": false,
  365. "tooltip": false,
  366. "viz": false
  367. },
  368. "lineInterpolation": "linear",
  369. "lineWidth": 1,
  370. "pointSize": 5,
  371. "scaleDistribution": {
  372. "type": "linear"
  373. },
  374. "showPoints": "auto",
  375. "spanNulls": false,
  376. "stacking": {
  377. "group": "A",
  378. "mode": "none"
  379. },
  380. "thresholdsStyle": {
  381. "mode": "off"
  382. }
  383. },
  384. "mappings": [],
  385. "thresholds": {
  386. "mode": "absolute",
  387. "steps": [
  388. {
  389. "color": "green",
  390. "value": null
  391. },
  392. {
  393. "color": "red",
  394. "value": -10
  395. }
  396. ]
  397. }
  398. },
  399. "overrides": []
  400. },
  401. "gridPos": {
  402. "h": 8,
  403. "w": 12,
  404. "x": 0,
  405. "y": 8
  406. },
  407. "id": 684,
  408. "options": {
  409. "legend": {
  410. "calcs": [
  411. "min",
  412. "max",
  413. "mean",
  414. "lastNotNull"
  415. ],
  416. "displayMode": "table",
  417. "placement": "bottom"
  418. },
  419. "tooltip": {
  420. "mode": "single"
  421. }
  422. },
  423. "targets": [
  424. {
  425. "exemplar": true,
  426. "expr": "irate(node_network_receive_drop_total[5m])",
  427. "hide": false,
  428. "instant": false,
  429. "interval": "",
  430. "intervalFactor": 2,
  431. "legendFormat": "{{host}} # {{device}} Receive Drops",
  432. "refId": "A"
  433. },
  434. {
  435. "exemplar": true,
  436. "expr": "irate(node_network_transmit_drop_total[5m])",
  437. "format": "time_series",
  438. "hide": false,
  439. "instant": false,
  440. "interval": "",
  441. "intervalFactor": 2,
  442. "legendFormat": "{{host}} # {{device}} Trasmit Drops",
  443. "refId": "B"
  444. }
  445. ],
  446. "thresholds": [
  447. {
  448. "colorMode": "critical",
  449. "op": "gt",
  450. "value": 10,
  451. "visible": true
  452. }
  453. ],
  454. "title": "Drops - Croara",
  455. "type": "timeseries"
  456. },
  457. {
  458. "alert": {
  459. "alertRuleTags": {},
  460. "conditions": [
  461. {
  462. "evaluator": {
  463. "params": [
  464. 10
  465. ],
  466. "type": "gt"
  467. },
  468. "operator": {
  469. "type": "and"
  470. },
  471. "query": {
  472. "params": [
  473. "A",
  474. "5m",
  475. "now"
  476. ]
  477. },
  478. "reducer": {
  479. "params": [],
  480. "type": "avg"
  481. },
  482. "type": "query"
  483. },
  484. {
  485. "evaluator": {
  486. "params": [
  487. 10
  488. ],
  489. "type": "gt"
  490. },
  491. "operator": {
  492. "type": "or"
  493. },
  494. "query": {
  495. "params": [
  496. "B",
  497. "5m",
  498. "now"
  499. ]
  500. },
  501. "reducer": {
  502. "params": [],
  503. "type": "avg"
  504. },
  505. "type": "query"
  506. }
  507. ],
  508. "executionErrorState": "alerting",
  509. "for": "5m",
  510. "frequency": "1m",
  511. "handler": 1,
  512. "name": "Drops - Valsamoggia",
  513. "noDataState": "no_data",
  514. "notifications": []
  515. },
  516. "datasource": "Prometheus valsamoggia",
  517. "fieldConfig": {
  518. "defaults": {
  519. "color": {
  520. "mode": "palette-classic"
  521. },
  522. "custom": {
  523. "axisLabel": "",
  524. "axisPlacement": "auto",
  525. "barAlignment": 0,
  526. "drawStyle": "line",
  527. "fillOpacity": 0,
  528. "gradientMode": "none",
  529. "hideFrom": {
  530. "legend": false,
  531. "tooltip": false,
  532. "viz": false
  533. },
  534. "lineInterpolation": "linear",
  535. "lineWidth": 1,
  536. "pointSize": 5,
  537. "scaleDistribution": {
  538. "type": "linear"
  539. },
  540. "showPoints": "auto",
  541. "spanNulls": false,
  542. "stacking": {
  543. "group": "A",
  544. "mode": "none"
  545. },
  546. "thresholdsStyle": {
  547. "mode": "off"
  548. }
  549. },
  550. "mappings": [],
  551. "thresholds": {
  552. "mode": "absolute",
  553. "steps": [
  554. {
  555. "color": "green",
  556. "value": null
  557. },
  558. {
  559. "color": "red",
  560. "value": -10
  561. }
  562. ]
  563. }
  564. },
  565. "overrides": []
  566. },
  567. "gridPos": {
  568. "h": 8,
  569. "w": 12,
  570. "x": 12,
  571. "y": 8
  572. },
  573. "id": 686,
  574. "options": {
  575. "legend": {
  576. "calcs": [
  577. "min",
  578. "max",
  579. "mean",
  580. "lastNotNull"
  581. ],
  582. "displayMode": "table",
  583. "placement": "bottom"
  584. },
  585. "tooltip": {
  586. "mode": "single"
  587. }
  588. },
  589. "targets": [
  590. {
  591. "exemplar": true,
  592. "expr": "irate(node_network_receive_drop_total{device=\"eth0\"}[5m])",
  593. "hide": false,
  594. "instant": false,
  595. "interval": "",
  596. "intervalFactor": 2,
  597. "legendFormat": "{{host}} # {{device}} Receive Drops",
  598. "refId": "A"
  599. },
  600. {
  601. "exemplar": true,
  602. "expr": "irate(node_network_transmit_drop_total[5m])",
  603. "format": "time_series",
  604. "hide": false,
  605. "instant": false,
  606. "interval": "",
  607. "intervalFactor": 2,
  608. "legendFormat": "{{host}} # {{device}} Trasmit Drops",
  609. "refId": "B"
  610. }
  611. ],
  612. "thresholds": [
  613. {
  614. "colorMode": "critical",
  615. "op": "gt",
  616. "value": 10,
  617. "visible": true
  618. }
  619. ],
  620. "title": "Drops - Valsamoggia",
  621. "type": "timeseries"
  622. }
  623. ],
  624. "refresh": false,
  625. "schemaVersion": 30,
  626. "style": "dark",
  627. "tags": [],
  628. "templating": {
  629. "list": [
  630. {
  631. "description": null,
  632. "error": null,
  633. "hide": 2,
  634. "label": "Job",
  635. "name": "job",
  636. "query": "prometheus",
  637. "skipUrlSync": false,
  638. "type": "constant"
  639. },
  640. {
  641. "allValue": null,
  642. "current": {
  643. "selected": true,
  644. "text": [
  645. "All"
  646. ],
  647. "value": [
  648. "$__all"
  649. ]
  650. },
  651. "datasource": "${data_source}",
  652. "definition": "label_values(node_uname_info{job=~\"$job\"}, host)",
  653. "description": null,
  654. "error": null,
  655. "hide": 2,
  656. "includeAll": true,
  657. "label": "Host:",
  658. "multi": true,
  659. "name": "name",
  660. "options": [],
  661. "query": {
  662. "query": "label_values(node_uname_info{job=~\"$job\"}, host)",
  663. "refId": "StandardVariableQuery"
  664. },
  665. "refresh": 1,
  666. "regex": "",
  667. "skipUrlSync": false,
  668. "sort": 1,
  669. "type": "query"
  670. },
  671. {
  672. "allValue": null,
  673. "current": {
  674. "selected": true,
  675. "text": [
  676. "All"
  677. ],
  678. "value": [
  679. "$__all"
  680. ]
  681. },
  682. "datasource": "${data_source}",
  683. "definition": "label_values(node_uname_info{nodename=~\"$name\"}, instance)",
  684. "description": null,
  685. "error": null,
  686. "hide": 2,
  687. "includeAll": true,
  688. "label": "WIFI Host:",
  689. "multi": true,
  690. "name": "node",
  691. "options": [],
  692. "query": {
  693. "query": "label_values(node_uname_info{nodename=~\"$name\"}, instance)",
  694. "refId": "StandardVariableQuery"
  695. },
  696. "refresh": 1,
  697. "regex": "/([^:]+):.*/",
  698. "skipUrlSync": false,
  699. "sort": 1,
  700. "type": "query"
  701. },
  702. {
  703. "current": {
  704. "selected": false,
  705. "text": "Prometheus valsamoggia",
  706. "value": "Prometheus valsamoggia"
  707. },
  708. "description": "",
  709. "error": null,
  710. "hide": 0,
  711. "includeAll": false,
  712. "label": "Data source",
  713. "multi": false,
  714. "name": "data_source",
  715. "options": [],
  716. "query": "prometheus",
  717. "queryValue": "",
  718. "refresh": 1,
  719. "regex": "",
  720. "skipUrlSync": false,
  721. "type": "datasource"
  722. }
  723. ]
  724. },
  725. "time": {
  726. "from": "now-24h",
  727. "to": "now"
  728. },
  729. "timepicker": {},
  730. "timezone": "",
  731. "title": "Alert",
  732. "uid": "m0Xg9FLnz_alert",
  733. "version": 9
  734. }