status-group.json.in 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  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" : "Dashboard Row",
  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" : "Dashboard Row",
  154. "titleSize" : "h6"
  155. },
  156. {
  157. "collapse": false,
  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": false,
  178. "min": false,
  179. "rightSide": true,
  180. "show": true,
  181. "total": false,
  182. "values": true
  183. },
  184. "lines": true,
  185. "linewidth": 1,
  186. "links": [],
  187. "nullPointMode": "null",
  188. "percentage": false,
  189. "pointradius": 5,
  190. "points": false,
  191. "renderer": "flot",
  192. "seriesOverrides": [],
  193. "spaceLength": 10,
  194. "span": 12,
  195. "stack": false,
  196. "steppedLine": false,
  197. "targets": [
  198. {
  199. "expr": "count(%%PROM_STATS_PREFIX%%%%PROM_SEPERATOR%%clients{hostname=~\"([[regex]])\"})",
  200. "format": "time_series",
  201. "hide": false,
  202. "instant": false,
  203. "intervalFactor": 2,
  204. "legendFormat": "Routeranzahl",
  205. "refId": "A"
  206. }
  207. ],
  208. "thresholds": [],
  209. "timeFrom": null,
  210. "timeShift": null,
  211. "title": "Anzahl der Router in der Gruppe '[[group]]'",
  212. "tooltip": {
  213. "shared": true,
  214. "sort": 0,
  215. "value_type": "individual"
  216. },
  217. "type": "graph",
  218. "xaxis": {
  219. "buckets": null,
  220. "mode": "time",
  221. "name": null,
  222. "show": true,
  223. "values": []
  224. },
  225. "yaxes": [
  226. {
  227. "decimals": 0,
  228. "format": "short",
  229. "label": "",
  230. "logBase": 1,
  231. "max": null,
  232. "min": "0",
  233. "show": true
  234. },
  235. {
  236. "format": "short",
  237. "label": null,
  238. "logBase": 1,
  239. "max": null,
  240. "min": null,
  241. "show": false
  242. }
  243. ]
  244. }
  245. ],
  246. "repeat": null,
  247. "repeatIteration": null,
  248. "repeatRowId": null,
  249. "showTitle": false,
  250. "title": "Dashboard Row",
  251. "titleSize": "h6"
  252. }
  253. ],
  254. "schemaVersion" : 14,
  255. "style" : "dark",
  256. "tags" : [
  257. ],
  258. "templating" : {
  259. "list" : [
  260. {
  261. "allValue" : null,
  262. "current" : {
  263. "text" : " - noch keine Auswahl -",
  264. "value" : null
  265. },
  266. "datasource" : null,
  267. "hide" : 0,
  268. "includeAll" : false,
  269. "label" : "Routergruppe",
  270. "multi" : false,
  271. "name" : "group",
  272. "options" : [
  273. ],
  274. "query" : "label_values(%%PROM_GROUPS_PREFIX%%,group)",
  275. "refresh" : 2,
  276. "regex" : "",
  277. "sort" : 1,
  278. "tagValuesQuery" : "",
  279. "tags" : [
  280. ],
  281. "tagsQuery" : "",
  282. "type" : "query",
  283. "useTags" : false
  284. },
  285. {
  286. "allValue" : null,
  287. "current" : {
  288. "text" : null,
  289. "value" : null
  290. },
  291. "datasource" : null,
  292. "hide" : 2,
  293. "includeAll" : false,
  294. "label" : null,
  295. "multi" : false,
  296. "name" : "regex",
  297. "options" : [
  298. ],
  299. "query" : "query_result(max(%%PROM_GROUPS_PREFIX%%{group=\"[[group]]\"}) by (regex))",
  300. "refresh" : 2,
  301. "regex" : "\/.*regex=\"(.*)\".*\/",
  302. "sort" : 1,
  303. "tagValuesQuery" : "",
  304. "tags" : [
  305. ],
  306. "tagsQuery" : "",
  307. "type" : "query",
  308. "useTags" : false
  309. },
  310. {
  311. "allValue" : null,
  312. "current" : {
  313. "text" : " - noch keine Auswahl -",
  314. "value" : null
  315. },
  316. "datasource" : null,
  317. "hide" : 0,
  318. "includeAll" : false,
  319. "label" : null,
  320. "multi" : false,
  321. "name" : "hostname",
  322. "options" : [
  323. ],
  324. "query" : "label_values(%%PROM_INFO_PREFIX%%{hostname=~\"[[regex]]\"},hostname)",
  325. "refresh" : 2,
  326. "regex" : "",
  327. "sort" : 1,
  328. "tagValuesQuery" : "",
  329. "tags" : [
  330. ],
  331. "tagsQuery" : "",
  332. "type" : "query",
  333. "useTags" : false
  334. },
  335. {
  336. "allValue" : null,
  337. "current" : {
  338. "text" : null,
  339. "value" : null
  340. },
  341. "datasource" : null,
  342. "hide" : 0,
  343. "includeAll" : false,
  344. "label" : null,
  345. "multi" : false,
  346. "name" : "node_id",
  347. "options" : [
  348. ],
  349. "query" : "label_values(%%PROM_INFO_PREFIX%%{hostname=\"[[hostname]]\"},node_id)",
  350. "refresh" : 2,
  351. "regex" : "",
  352. "sort" : 1,
  353. "tagValuesQuery" : "",
  354. "tags" : [
  355. ],
  356. "tagsQuery" : "",
  357. "type" : "query",
  358. "useTags" : false
  359. },
  360. {
  361. "allValue" : null,
  362. "current" : {
  363. },
  364. "datasource" : null,
  365. "hide" : 2,
  366. "includeAll" : false,
  367. "label" : null,
  368. "multi" : false,
  369. "name" : "link_target_id",
  370. "options" : [
  371. ],
  372. "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]]\"})",
  373. "refresh" : 2,
  374. "regex" : "\/.*target=\"([^\"]+)\".*\/",
  375. "sort" : 0,
  376. "tagValuesQuery" : "",
  377. "tags" : [
  378. ],
  379. "tagsQuery" : "",
  380. "type" : "query",
  381. "useTags" : false
  382. },
  383. {
  384. "allValue" : null,
  385. "current" : {
  386. },
  387. "datasource" : null,
  388. "hide" : 2,
  389. "includeAll" : false,
  390. "label" : null,
  391. "multi" : false,
  392. "name" : "mesh_id",
  393. "options" : [
  394. ],
  395. "query" : "label_values(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh{members=~\".*[[node_id]].*\"},node_id)",
  396. "refresh" : 2,
  397. "regex" : "",
  398. "sort" : 0,
  399. "tagValuesQuery" : "",
  400. "tags" : [
  401. ],
  402. "tagsQuery" : "",
  403. "type" : "query",
  404. "useTags" : false
  405. },
  406. {
  407. "allValue" : null,
  408. "current" : {
  409. },
  410. "datasource" : null,
  411. "hide" : 2,
  412. "includeAll" : false,
  413. "label" : null,
  414. "multi" : false,
  415. "name" : "mesh_name",
  416. "options" : [
  417. ],
  418. "query" : "label_values(%%PROM_INFO_PREFIX%%{node_id=\"[[mesh_id]]\"},hostname)",
  419. "refresh" : 2,
  420. "regex" : "",
  421. "sort" : 0,
  422. "tagValuesQuery" : "",
  423. "tags" : [
  424. ],
  425. "tagsQuery" : "",
  426. "type" : "query",
  427. "useTags" : false
  428. }
  429. ]
  430. },
  431. "time" : {
  432. "from" : "now-24h",
  433. "to" : "now"
  434. },
  435. "timepicker" : {
  436. "refresh_intervals" : [
  437. "5s",
  438. "10s",
  439. "30s",
  440. "1m",
  441. "5m",
  442. "15m",
  443. "30m",
  444. "1h",
  445. "2h",
  446. "1d"
  447. ],
  448. "time_options" : [
  449. "5m",
  450. "15m",
  451. "1h",
  452. "6h",
  453. "12h",
  454. "24h",
  455. "2d",
  456. "7d",
  457. "30d"
  458. ]
  459. },
  460. "timezone" : "",
  461. "title" : "%%DASHBOARD_PREFIX%%status-group",
  462. "version" : 9
  463. }