status-group.json.in 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  1. {
  2. "annotations" : {
  3. "list" : [
  4. ]
  5. },
  6. "editable" : true,
  7. "gnetId" : null,
  8. "graphTooltip" : 0,
  9. "hideControls" : false,
  10. "id" : null,
  11. "links" : [
  12. {
  13. "icon" : "dashboard",
  14. "keepTime" : true,
  15. "tags" : [
  16. ],
  17. "title" : "Mesh",
  18. "type" : "link",
  19. "url" : "%%DASHBOARD_PATH%%%%DASHBOARD_PREFIX%%status-mesh.json?var-mesh_name=[[mesh_name]]"
  20. }
  21. ],
  22. "rows" : [
  23. {
  24. "collapse" : false,
  25. "height" : 278,
  26. "panels" : [
  27. {
  28. "aliasColors" : {
  29. },
  30. "bars" : false,
  31. "dashLength" : 10,
  32. "dashes" : false,
  33. "datasource" : null,
  34. "fill" : 0,
  35. "id" : 3,
  36. "legend" : {
  37. "alignAsTable" : true,
  38. "avg" : true,
  39. "current" : true,
  40. "hideEmpty" : true,
  41. "max" : false,
  42. "min" : false,
  43. "rightSide" : true,
  44. "show" : true,
  45. "total" : false,
  46. "values" : true
  47. },
  48. "lines" : true,
  49. "linewidth" : 1,
  50. "links" : [
  51. ],
  52. "nullPointMode" : "null",
  53. "percentage" : false,
  54. "pointradius" : 5,
  55. "points" : false,
  56. "renderer" : "flot",
  57. "seriesOverrides" : [
  58. ],
  59. "spaceLength" : 10,
  60. "span" : 12,
  61. "stack" : false,
  62. "steppedLine" : false,
  63. "targets" : [
  64. {
  65. "expr" : "%%PROM_STATS_PREFIX%%%%PROM_SEPERATOR%%clients{hostname=~\"([[regex]])\"}",
  66. "format" : "time_series",
  67. "hide" : false,
  68. "interval" : "",
  69. "intervalFactor" : 2,
  70. "legendFormat" : "{{hostname}}",
  71. "refId" : "A",
  72. "step" : 120
  73. },
  74. {
  75. "expr" : "sum(%%PROM_STATS_PREFIX%%%%PROM_SEPERATOR%%clients{hostname=~\"([[regex]])\"})",
  76. "format" : "time_series",
  77. "hide" : false,
  78. "interval" : "",
  79. "intervalFactor" : 2,
  80. "legendFormat" : "Summe",
  81. "refId" : "B",
  82. "step" : 120
  83. }
  84. ],
  85. "thresholds" : [
  86. ],
  87. "timeFrom" : null,
  88. "timeShift" : null,
  89. "title" : "[[group]] (clients)",
  90. "tooltip" : {
  91. "shared" : true,
  92. "sort" : 1,
  93. "value_type" : "individual"
  94. },
  95. "type" : "graph",
  96. "xaxis" : {
  97. "buckets" : null,
  98. "mode" : "time",
  99. "name" : null,
  100. "show" : true,
  101. "values" : [
  102. ]
  103. },
  104. "yaxes" : [
  105. {
  106. "decimals" : 0,
  107. "format" : "short",
  108. "label" : "",
  109. "logBase" : 1,
  110. "max" : null,
  111. "min" : null,
  112. "show" : true
  113. },
  114. {
  115. "format" : "short",
  116. "label" : null,
  117. "logBase" : 1,
  118. "max" : null,
  119. "min" : null,
  120. "show" : true
  121. }
  122. ]
  123. }
  124. ],
  125. "repeat" : null,
  126. "repeatIteration" : null,
  127. "repeatRowId" : null,
  128. "showTitle" : false,
  129. "title" : "[[group]] (clients)",
  130. "titleSize" : "h6"
  131. },
  132. {
  133. "collapse" : false,
  134. "height" : "100",
  135. "panels" : [
  136. {
  137. "content" : "<p>Links zu Router [[hostname]], Node ID [[node_id]]: <a href=\"%%DASHBOARD_PATH%%%%DASHBOARD_PREFIX%%status.json?var-hostname=[[hostname]]&var-node_id=[[node_id]]\">Status Dashboard<\/a>, <a href=\"%%MAP_NODE_URL%%[[node_id]]\">Map<\/a>.<\/p>\n",
  138. "height" : "80px",
  139. "id" : 4,
  140. "links" : [
  141. ],
  142. "mode" : "html",
  143. "repeat" : null,
  144. "span" : 12,
  145. "title" : "Links zu [[hostname]], Node ID [[node_id]]",
  146. "type" : "text"
  147. }
  148. ],
  149. "repeat" : null,
  150. "repeatIteration" : null,
  151. "repeatRowId" : null,
  152. "showTitle" : false,
  153. "title" : "Links zu [[hostname]], Node ID [[node_id]]",
  154. "titleSize" : "h6"
  155. },
  156. {
  157. "collapse": true,
  158. "height": 250,
  159. "panels": [
  160. {
  161. "aliasColors": {
  162. "Router": "#1f78c1",
  163. "Routeranzahl": "#1f78c1"
  164. },
  165. "bars": false,
  166. "dashLength": 10,
  167. "dashes": false,
  168. "datasource": null,
  169. "decimals": 0,
  170. "fill": 0,
  171. "id": 5,
  172. "legend": {
  173. "alignAsTable": true,
  174. "avg": true,
  175. "current": true,
  176. "hideEmpty": true,
  177. "hideZero": false,
  178. "max": false,
  179. "min": false,
  180. "rightSide": true,
  181. "show": true,
  182. "total": false,
  183. "values": true
  184. },
  185. "lines": true,
  186. "linewidth": 2,
  187. "links": [],
  188. "nullPointMode": "null",
  189. "percentage": false,
  190. "pointradius": 5,
  191. "points": false,
  192. "renderer": "flot",
  193. "seriesOverrides": [],
  194. "spaceLength": 10,
  195. "span": 12,
  196. "stack": false,
  197. "steppedLine": false,
  198. "targets": [
  199. {
  200. "expr": "count(%%PROM_STATS_PREFIX%%%%PROM_SEPERATOR%%clients{hostname=~\"([[regex]])\"})",
  201. "format": "time_series",
  202. "hide": false,
  203. "instant": false,
  204. "intervalFactor": 2,
  205. "legendFormat": "Router",
  206. "refId": "A"
  207. },
  208. {
  209. "expr": "sum(%%PROM_STATS_PREFIX%%%%PROM_SEPERATOR%%clients{hostname=~\"([[regex]])\"})",
  210. "format": "time_series",
  211. "intervalFactor": 2,
  212. "legendFormat": "NutzerInnen",
  213. "refId": "B"
  214. }
  215. ],
  216. "thresholds": [],
  217. "timeFrom": null,
  218. "timeShift": null,
  219. "title": "Gruppe '[[group]]': Anzahl NutzerInnen und Router",
  220. "tooltip": {
  221. "shared": true,
  222. "sort": 0,
  223. "value_type": "individual"
  224. },
  225. "type": "graph",
  226. "xaxis": {
  227. "buckets": null,
  228. "mode": "time",
  229. "name": null,
  230. "show": true,
  231. "values": []
  232. },
  233. "yaxes": [
  234. {
  235. "decimals": 0,
  236. "format": "short",
  237. "label": "NutzerInnen",
  238. "logBase": 1,
  239. "max": null,
  240. "min": "0",
  241. "show": true
  242. },
  243. {
  244. "format": "short",
  245. "label": "Router",
  246. "logBase": 1,
  247. "max": null,
  248. "min": null,
  249. "show": true
  250. }
  251. ]
  252. }
  253. ],
  254. "repeat": null,
  255. "repeatIteration": null,
  256. "repeatRowId": null,
  257. "showTitle": false,
  258. "title": "Gruppe '[[group]]': Anzahl der NutzerInnen und Router",
  259. "titleSize": "h6"
  260. },
  261. {
  262. "collapse" : true,
  263. "height" : "500",
  264. "panels" : [
  265. {
  266. "columns" : [
  267. ],
  268. "datasource" : null,
  269. "fontSize" : "100%",
  270. "id" : 7,
  271. "links" : [
  272. ],
  273. "pageSize" : null,
  274. "scroll" : true,
  275. "showHeader" : true,
  276. "sort" : {
  277. "col" : 5,
  278. "desc" : false
  279. },
  280. "span" : 12,
  281. "styles" : [
  282. {
  283. "alias" : "Time",
  284. "dateFormat" : "YYYY-MM-DD HH:mm:ss",
  285. "pattern" : "Time",
  286. "type" : "hidden"
  287. },
  288. {
  289. "alias" : "",
  290. "colorMode" : null,
  291. "colors" : [
  292. "rgba(245, 54, 54, 0.9)",
  293. "rgba(237, 129, 40, 0.89)",
  294. "rgba(50, 172, 45, 0.97)"
  295. ],
  296. "decimals" : 2,
  297. "pattern" : "\/__name__|Value\/",
  298. "thresholds" : [
  299. ],
  300. "type" : "hidden",
  301. "unit" : "short"
  302. },
  303. {
  304. "unit" : "short",
  305. "type" : "string",
  306. "alias" : "Autoupd.",
  307. "decimals" : 2,
  308. "colors" : [
  309. "rgba(245, 54, 54, 0.9)",
  310. "rgba(237, 129, 40, 0.89)",
  311. "rgba(50, 172, 45, 0.97)"
  312. ],
  313. "colorMode" : null,
  314. "pattern" : "autoupdater",
  315. "dateFormat" : "YYYY-MM-DD HH:mm:ss",
  316. "thresholds" : [
  317. ]
  318. },
  319. {
  320. "unit" : "short",
  321. "type" : "string",
  322. "alias" : "Branch",
  323. "decimals" : 2,
  324. "colors" : [
  325. "rgba(245, 54, 54, 0.9)",
  326. "rgba(237, 129, 40, 0.89)",
  327. "rgba(50, 172, 45, 0.97)"
  328. ],
  329. "colorMode" : null,
  330. "pattern" : "branch",
  331. "dateFormat" : "YYYY-MM-DD HH:mm:ss",
  332. "thresholds" : [
  333. ]
  334. },
  335. {
  336. "unit" : "short",
  337. "type" : "string",
  338. "alias" : "Firmware",
  339. "decimals" : 2,
  340. "colors" : [
  341. "rgba(245, 54, 54, 0.9)",
  342. "rgba(237, 129, 40, 0.89)",
  343. "rgba(50, 172, 45, 0.97)"
  344. ],
  345. "colorMode" : null,
  346. "pattern" : "firmware",
  347. "dateFormat" : "YYYY-MM-DD HH:mm:ss",
  348. "thresholds" : [
  349. ]
  350. },
  351. {
  352. "unit" : "short",
  353. "type" : "string",
  354. "alias" : "Hardware",
  355. "decimals" : 2,
  356. "colors" : [
  357. "rgba(245, 54, 54, 0.9)",
  358. "rgba(237, 129, 40, 0.89)",
  359. "rgba(50, 172, 45, 0.97)"
  360. ],
  361. "colorMode" : null,
  362. "pattern" : "model",
  363. "dateFormat" : "YYYY-MM-DD HH:mm:ss",
  364. "thresholds" : [
  365. ]
  366. },
  367. {
  368. "alias" : "Routername",
  369. "colorMode" : null,
  370. "colors" : [
  371. "rgba(245, 54, 54, 0.9)",
  372. "rgba(237, 129, 40, 0.89)",
  373. "rgba(50, 172, 45, 0.97)"
  374. ],
  375. "dateFormat" : "YYYY-MM-DD HH:mm:ss",
  376. "decimals" : 2,
  377. "link" : true,
  378. "linkTargetBlank" : true,
  379. "linkTooltip" : "zur Statusseite f\u00FCr $__cell",
  380. "linkUrl" : "%%DASHBOARD_PATH%%%%DASHBOARD_PREFIX%%status.json?var-hostname=$__cell",
  381. "pattern" : "hostname",
  382. "thresholds" : [
  383. ],
  384. "type" : "string",
  385. "unit" : "short"
  386. },
  387. {
  388. "unit" : "short",
  389. "type" : "string",
  390. "alias" : "Node ID",
  391. "decimals" : 2,
  392. "colors" : [
  393. "rgba(245, 54, 54, 0.9)",
  394. "rgba(237, 129, 40, 0.89)",
  395. "rgba(50, 172, 45, 0.97)"
  396. ],
  397. "colorMode" : null,
  398. "pattern" : "node_id",
  399. "dateFormat" : "YYYY-MM-DD HH:mm:ss",
  400. "thresholds" : [
  401. ]
  402. },
  403. {
  404. "unit" : "short",
  405. "type" : "string",
  406. "alias" : "Meshinterfaces",
  407. "decimals" : 2,
  408. "colors" : [
  409. "rgba(245, 54, 54, 0.9)",
  410. "rgba(237, 129, 40, 0.89)",
  411. "rgba(50, 172, 45, 0.97)"
  412. ],
  413. "colorMode" : null,
  414. "pattern" : "interfaces",
  415. "dateFormat" : "YYYY-MM-DD HH:mm:ss",
  416. "thresholds" : [
  417. ]
  418. },
  419. {
  420. "unit" : "short",
  421. "type" : "string",
  422. "alias" : "Gateway",
  423. "decimals" : 2,
  424. "colors" : [
  425. "rgba(245, 54, 54, 0.9)",
  426. "rgba(237, 129, 40, 0.89)",
  427. "rgba(50, 172, 45, 0.97)"
  428. ],
  429. "colorMode" : null,
  430. "pattern" : "gateway",
  431. "dateFormat" : "YYYY-MM-DD HH:mm:ss",
  432. "thresholds" : [
  433. ]
  434. },
  435. {
  436. "alias" : "",
  437. "colorMode" : null,
  438. "colors" : [
  439. "rgba(245, 54, 54, 0.9)",
  440. "rgba(237, 129, 40, 0.89)",
  441. "rgba(50, 172, 45, 0.97)"
  442. ],
  443. "dateFormat" : "YYYY-MM-DD HH:mm:ss",
  444. "decimals" : 2,
  445. "pattern" : "\/.*\/",
  446. "thresholds" : [
  447. ],
  448. "type" : "string",
  449. "unit" : "short"
  450. }
  451. ],
  452. "targets" : [
  453. {
  454. "expr" : "max(%%PROM_INFO_PREFIX%%{hostname=~\"[[regex]]\"}) by (autoupdater,branch,firmware,gateway,hostname,interfaces,model,node_id)",
  455. "format" : "table",
  456. "instant" : true,
  457. "intervalFactor" : 2,
  458. "refId" : "A"
  459. }
  460. ],
  461. "title" : "Liste der Router in Gruppe '[[group]]'",
  462. "transform" : "table",
  463. "type" : "table"
  464. }
  465. ],
  466. "repeat" : null,
  467. "repeatIteration" : null,
  468. "repeatRowId" : null,
  469. "showTitle" : false,
  470. "title" : "Liste der Router in Gruppe '[[group]]'",
  471. "titleSize" : "h6"
  472. }
  473. ],
  474. "schemaVersion" : 14,
  475. "style" : "dark",
  476. "tags" : [
  477. ],
  478. "templating" : {
  479. "list" : [
  480. {
  481. "allValue" : null,
  482. "current" : {
  483. "text" : " - noch keine Auswahl -",
  484. "value" : null
  485. },
  486. "datasource" : null,
  487. "hide" : 0,
  488. "includeAll" : false,
  489. "label" : "Routergruppe",
  490. "multi" : false,
  491. "name" : "group",
  492. "options" : [
  493. ],
  494. "query" : "label_values(%%PROM_GROUPS_PREFIX%%,group)",
  495. "refresh" : 2,
  496. "regex" : "",
  497. "sort" : 1,
  498. "tagValuesQuery" : "",
  499. "tags" : [
  500. ],
  501. "tagsQuery" : "",
  502. "type" : "query",
  503. "useTags" : false
  504. },
  505. {
  506. "allValue" : null,
  507. "current" : {
  508. "text" : null,
  509. "value" : null
  510. },
  511. "datasource" : null,
  512. "hide" : 2,
  513. "includeAll" : false,
  514. "label" : null,
  515. "multi" : false,
  516. "name" : "regex",
  517. "options" : [
  518. ],
  519. "query" : "query_result(max(%%PROM_GROUPS_PREFIX%%{group=\"[[group]]\"}) by (regex))",
  520. "refresh" : 2,
  521. "regex" : "\/.*regex=\"(.*)\".*\/",
  522. "sort" : 1,
  523. "tagValuesQuery" : "",
  524. "tags" : [
  525. ],
  526. "tagsQuery" : "",
  527. "type" : "query",
  528. "useTags" : false
  529. },
  530. {
  531. "allValue" : null,
  532. "current" : {
  533. "text" : " - noch keine Auswahl -",
  534. "value" : null
  535. },
  536. "datasource" : null,
  537. "hide" : 0,
  538. "includeAll" : false,
  539. "label" : null,
  540. "multi" : false,
  541. "name" : "hostname",
  542. "options" : [
  543. ],
  544. "query" : "label_values(%%PROM_INFO_PREFIX%%{hostname=~\"[[regex]]\"},hostname)",
  545. "refresh" : 2,
  546. "regex" : "",
  547. "sort" : 1,
  548. "tagValuesQuery" : "",
  549. "tags" : [
  550. ],
  551. "tagsQuery" : "",
  552. "type" : "query",
  553. "useTags" : false
  554. },
  555. {
  556. "allValue" : null,
  557. "current" : {
  558. "text" : null,
  559. "value" : null
  560. },
  561. "datasource" : null,
  562. "hide" : 0,
  563. "includeAll" : false,
  564. "label" : null,
  565. "multi" : false,
  566. "name" : "node_id",
  567. "options" : [
  568. ],
  569. "query" : "label_values(%%PROM_INFO_PREFIX%%{hostname=\"[[hostname]]\"},node_id)",
  570. "refresh" : 2,
  571. "regex" : "",
  572. "sort" : 1,
  573. "tagValuesQuery" : "",
  574. "tags" : [
  575. ],
  576. "tagsQuery" : "",
  577. "type" : "query",
  578. "useTags" : false
  579. },
  580. {
  581. "allValue" : null,
  582. "current" : {
  583. },
  584. "datasource" : null,
  585. "hide" : 2,
  586. "includeAll" : false,
  587. "label" : null,
  588. "multi" : false,
  589. "name" : "link_target_id",
  590. "options" : [
  591. ],
  592. "query" : "query_result(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%link{source=\"[[node_id]]\",target=\"[[neighbor_id]]\"} or %%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%link{source=\"[[neighbor_id]]\",target=\"[[node_id]]\"})",
  593. "refresh" : 2,
  594. "regex" : "\/.*target=\"([^\"]+)\".*\/",
  595. "sort" : 0,
  596. "tagValuesQuery" : "",
  597. "tags" : [
  598. ],
  599. "tagsQuery" : "",
  600. "type" : "query",
  601. "useTags" : false
  602. },
  603. {
  604. "allValue" : null,
  605. "current" : {
  606. },
  607. "datasource" : null,
  608. "hide" : 2,
  609. "includeAll" : false,
  610. "label" : null,
  611. "multi" : false,
  612. "name" : "mesh_id",
  613. "options" : [
  614. ],
  615. "query" : "label_values(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh{members=~\".*[[node_id]].*\"},node_id)",
  616. "refresh" : 2,
  617. "regex" : "",
  618. "sort" : 0,
  619. "tagValuesQuery" : "",
  620. "tags" : [
  621. ],
  622. "tagsQuery" : "",
  623. "type" : "query",
  624. "useTags" : false
  625. },
  626. {
  627. "allValue" : null,
  628. "current" : {
  629. },
  630. "datasource" : null,
  631. "hide" : 2,
  632. "includeAll" : false,
  633. "label" : null,
  634. "multi" : false,
  635. "name" : "mesh_name",
  636. "options" : [
  637. ],
  638. "query" : "label_values(%%PROM_INFO_PREFIX%%{node_id=\"[[mesh_id]]\"},hostname)",
  639. "refresh" : 2,
  640. "regex" : "",
  641. "sort" : 0,
  642. "tagValuesQuery" : "",
  643. "tags" : [
  644. ],
  645. "tagsQuery" : "",
  646. "type" : "query",
  647. "useTags" : false
  648. }
  649. ]
  650. },
  651. "time" : {
  652. "from" : "now-24h",
  653. "to" : "now"
  654. },
  655. "timepicker" : {
  656. "refresh_intervals" : [
  657. "5s",
  658. "10s",
  659. "30s",
  660. "1m",
  661. "5m",
  662. "15m",
  663. "30m",
  664. "1h",
  665. "2h",
  666. "1d"
  667. ],
  668. "time_options" : [
  669. "5m",
  670. "15m",
  671. "1h",
  672. "6h",
  673. "12h",
  674. "24h",
  675. "2d",
  676. "7d",
  677. "30d"
  678. ]
  679. },
  680. "timezone" : "",
  681. "title" : "%%DASHBOARD_PREFIX%%status-group",
  682. "version" : 9
  683. }