status-group-render.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-render.json?var-mesh_name=[[mesh_name]]"
  20. }
  21. ],
  22. "rows" : [
  23. {
  24. "collapse": false,
  25. "height": 250,
  26. "panels": [
  27. {
  28. "aliasColors": {
  29. "Router": "#1f78c1",
  30. "Routeranzahl": "#1f78c1"
  31. },
  32. "bars": false,
  33. "dashLength": 10,
  34. "dashes": false,
  35. "datasource": null,
  36. "decimals": 0,
  37. "fill": 0,
  38. "id": 5,
  39. "legend": {
  40. "alignAsTable": true,
  41. "avg": true,
  42. "current": true,
  43. "hideEmpty": true,
  44. "hideZero": false,
  45. "max": true,
  46. "min": true,
  47. "rightSide": false,
  48. "show": true,
  49. "total": false,
  50. "values": true
  51. },
  52. "lines": true,
  53. "linewidth": 2,
  54. "links": [],
  55. "nullPointMode": "null",
  56. "percentage": false,
  57. "pointradius": 5,
  58. "points": false,
  59. "renderer": "flot",
  60. "seriesOverrides": [],
  61. "spaceLength": 10,
  62. "span": 12,
  63. "stack": false,
  64. "steppedLine": false,
  65. "targets": [
  66. {
  67. "expr": "count(%%PROM_STATS_PREFIX%%%%PROM_SEPERATOR%%clients{hostname=~\"([[regex]])\"})",
  68. "format": "time_series",
  69. "hide": false,
  70. "instant": false,
  71. "intervalFactor": 2,
  72. "legendFormat": "Router",
  73. "refId": "A"
  74. },
  75. {
  76. "expr": "sum(%%PROM_STATS_PREFIX%%%%PROM_SEPERATOR%%clients{hostname=~\"([[regex]])\"})",
  77. "format": "time_series",
  78. "intervalFactor": 2,
  79. "legendFormat": "NutzerInnen",
  80. "refId": "B"
  81. }
  82. ],
  83. "thresholds": [],
  84. "timeFrom": null,
  85. "timeShift": null,
  86. "title": "Freifunk '[[group]]': NutzerInnen und Router",
  87. "tooltip": {
  88. "shared": true,
  89. "sort": 0,
  90. "value_type": "individual"
  91. },
  92. "type": "graph",
  93. "xaxis": {
  94. "buckets": null,
  95. "mode": "time",
  96. "name": null,
  97. "show": true,
  98. "values": []
  99. },
  100. "yaxes": [
  101. {
  102. "decimals": 0,
  103. "format": "short",
  104. "label": "NutzerInnen",
  105. "logBase": 1,
  106. "max": null,
  107. "min": "0",
  108. "show": true
  109. },
  110. {
  111. "format": "short",
  112. "label": "Router",
  113. "logBase": 1,
  114. "max": null,
  115. "min": null,
  116. "show": true
  117. }
  118. ]
  119. }
  120. ],
  121. "repeat": null,
  122. "repeatIteration": null,
  123. "repeatRowId": null,
  124. "showTitle": false,
  125. "title": "Gruppe '[[group]]': NutzerInnen und Router",
  126. "titleSize": "h6"
  127. },
  128. {
  129. "collapse" : false,
  130. "height" : 278,
  131. "panels" : [
  132. {
  133. "aliasColors" : {
  134. },
  135. "bars" : false,
  136. "dashLength" : 10,
  137. "dashes" : false,
  138. "datasource" : null,
  139. "fill" : 0,
  140. "id" : 3,
  141. "legend" : {
  142. "alignAsTable" : true,
  143. "avg" : true,
  144. "current" : true,
  145. "hideEmpty" : true,
  146. "max" : true,
  147. "min" : true,
  148. "rightSide" : false,
  149. "show" : true,
  150. "total" : false,
  151. "values" : true
  152. },
  153. "lines" : true,
  154. "linewidth" : 1,
  155. "links" : [
  156. ],
  157. "nullPointMode" : "null",
  158. "percentage" : false,
  159. "pointradius" : 5,
  160. "points" : false,
  161. "renderer" : "flot",
  162. "seriesOverrides" : [
  163. ],
  164. "spaceLength" : 10,
  165. "span" : 12,
  166. "stack" : false,
  167. "steppedLine" : false,
  168. "targets" : [
  169. {
  170. "expr" : "%%PROM_STATS_PREFIX%%%%PROM_SEPERATOR%%clients{hostname=~\"([[regex]])\"}",
  171. "format" : "time_series",
  172. "hide" : false,
  173. "interval" : "",
  174. "intervalFactor" : 2,
  175. "legendFormat" : "{{hostname}}",
  176. "refId" : "A",
  177. "step" : 120
  178. },
  179. {
  180. "expr" : "sum(%%PROM_STATS_PREFIX%%%%PROM_SEPERATOR%%clients{hostname=~\"([[regex]])\"})",
  181. "format" : "time_series",
  182. "hide" : false,
  183. "interval" : "",
  184. "intervalFactor" : 2,
  185. "legendFormat" : "Summe",
  186. "refId" : "B",
  187. "step" : 120
  188. }
  189. ],
  190. "thresholds" : [
  191. ],
  192. "timeFrom" : null,
  193. "timeShift" : null,
  194. "title" : "[[group]] (clients)",
  195. "tooltip" : {
  196. "shared" : true,
  197. "sort" : 1,
  198. "value_type" : "individual"
  199. },
  200. "type" : "graph",
  201. "xaxis" : {
  202. "buckets" : null,
  203. "mode" : "time",
  204. "name" : null,
  205. "show" : true,
  206. "values" : [
  207. ]
  208. },
  209. "yaxes" : [
  210. {
  211. "decimals" : 0,
  212. "format" : "short",
  213. "label" : "",
  214. "logBase" : 1,
  215. "max" : null,
  216. "min" : null,
  217. "show" : true
  218. },
  219. {
  220. "format" : "short",
  221. "label" : null,
  222. "logBase" : 1,
  223. "max" : null,
  224. "min" : null,
  225. "show" : true
  226. }
  227. ]
  228. }
  229. ],
  230. "repeat" : null,
  231. "repeatIteration" : null,
  232. "repeatRowId" : null,
  233. "showTitle" : false,
  234. "title" : "[[group]] (clients)",
  235. "titleSize" : "h6"
  236. },
  237. {
  238. "collapse" : false,
  239. "height" : "100",
  240. "panels" : [
  241. {
  242. "content" : "<p>Links zu Router [[hostname]], Node ID [[node_id]]: <a href=\"%%DASHBOARD_PATH%%%%DASHBOARD_PREFIX%%status-render.json?var-hostname=[[hostname]]&var-node_id=[[node_id]]\">Status Dashboard<\/a>, <a href=\"%%MAP_NODE_URL%%[[node_id]]\">Map<\/a>.<\/p>\n",
  243. "height" : "80px",
  244. "id" : 4,
  245. "links" : [
  246. ],
  247. "mode" : "html",
  248. "repeat" : null,
  249. "span" : 12,
  250. "title" : "Links zu [[hostname]], Node ID [[node_id]]",
  251. "type" : "text"
  252. }
  253. ],
  254. "repeat" : null,
  255. "repeatIteration" : null,
  256. "repeatRowId" : null,
  257. "showTitle" : false,
  258. "title" : "Links zu [[hostname]], Node ID [[node_id]]",
  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-render",
  682. "version" : 9
  683. }