status-group-render.json.in 15 KB

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