status-mesh.json.in 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. {
  2. "annotations": {
  3. "list": []
  4. },
  5. "editable": true,
  6. "gnetId": null,
  7. "graphTooltip": 0,
  8. "hideControls": false,
  9. "id": null,
  10. "links": [],
  11. "links": [
  12. {
  13. "icon": "info",
  14. "tags": [],
  15. "title": "[[mesh_count]] Meshes, [[node_sum]] Knoten, [[link_sum]] Links",
  16. "type": "link"
  17. }
  18. ],
  19. "rows": [
  20. {
  21. "collapse": false,
  22. "height": 278,
  23. "panels": [
  24. {
  25. "aliasColors": {},
  26. "bars": false,
  27. "dashLength": 10,
  28. "dashes": false,
  29. "datasource": null,
  30. "fill": 0,
  31. "id": 3,
  32. "legend": {
  33. "alignAsTable": true,
  34. "avg": true,
  35. "current": true,
  36. "hideEmpty": true,
  37. "max": false,
  38. "min": false,
  39. "rightSide": true,
  40. "show": true,
  41. "total": false,
  42. "values": true
  43. },
  44. "lines": true,
  45. "linewidth": 1,
  46. "links": [],
  47. "nullPointMode": "null",
  48. "percentage": false,
  49. "pointradius": 5,
  50. "points": false,
  51. "renderer": "flot",
  52. "seriesOverrides": [],
  53. "spaceLength": 10,
  54. "span": 12,
  55. "stack": false,
  56. "steppedLine": false,
  57. "targets": [
  58. {
  59. "expr": "%%PROM_STATS_PREFIX%%%%PROM_SEPERATOR%%clients{node_id=~\"([[regex]])\"}",
  60. "format": "time_series",
  61. "hide": false,
  62. "interval": "",
  63. "intervalFactor": 2,
  64. "legendFormat": "{{hostname}}",
  65. "refId": "A",
  66. "step": 120
  67. },
  68. {
  69. "expr": "sum(%%PROM_STATS_PREFIX%%%%PROM_SEPERATOR%%clients{node_id=~\"([[regex]])\"})",
  70. "format": "time_series",
  71. "hide": false,
  72. "interval": "",
  73. "intervalFactor": 2,
  74. "legendFormat": "Summe",
  75. "refId": "B",
  76. "step": 120
  77. }
  78. ],
  79. "thresholds": [],
  80. "timeFrom": null,
  81. "timeShift": null,
  82. "title": "clients im Mesh des Knotens [[mesh_name]]",
  83. "tooltip": {
  84. "shared": true,
  85. "sort": 1,
  86. "value_type": "individual"
  87. },
  88. "type": "graph",
  89. "xaxis": {
  90. "buckets": null,
  91. "mode": "time",
  92. "name": null,
  93. "show": true,
  94. "values": []
  95. },
  96. "yaxes": [
  97. {
  98. "decimals": 0,
  99. "format": "short",
  100. "label": "",
  101. "logBase": 1,
  102. "max": null,
  103. "min": null,
  104. "show": true
  105. },
  106. {
  107. "format": "short",
  108. "label": null,
  109. "logBase": 1,
  110. "max": null,
  111. "min": null,
  112. "show": true
  113. }
  114. ]
  115. }
  116. ],
  117. "repeat": null,
  118. "repeatIteration": null,
  119. "repeatRowId": null,
  120. "showTitle": false,
  121. "title": "Dashboard Row",
  122. "titleSize": "h6"
  123. },
  124. {
  125. "collapse": false,
  126. "height": "100",
  127. "panels": [
  128. {
  129. "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=\"https://map.ffdo.de/meshviewer/#!v:m;n:[[node_id]]\">Map</a>.</p>\n",
  130. "height": "80px",
  131. "id": 4,
  132. "links": [],
  133. "mode": "html",
  134. "repeat": null,
  135. "span": 12,
  136. "title": "Links zu [[hostname]], Node ID [[node_id]]",
  137. "type": "text"
  138. }
  139. ],
  140. "repeat": null,
  141. "repeatIteration": null,
  142. "repeatRowId": null,
  143. "showTitle": false,
  144. "title": "Dashboard Row",
  145. "titleSize": "h6"
  146. }
  147. ],
  148. "schemaVersion": 14,
  149. "style": "dark",
  150. "tags": [],
  151. "templating": {
  152. "list": [
  153. {
  154. "allValue": null,
  155. "current": {},
  156. "datasource": null,
  157. "hide": 0,
  158. "includeAll": false,
  159. "label": "Mesh auswählen:",
  160. "multi": false,
  161. "name": "mesh_name",
  162. "options": [],
  163. "query": "query_result(%%PROM_INFO_PREFIX%% and on (node_id) %%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh)",
  164. "refresh": 2,
  165. "regex": "/.*hostname=\"([^\\\"]+)\".*/",
  166. "sort": 1,
  167. "tagValuesQuery": "",
  168. "tags": [],
  169. "tagsQuery": "",
  170. "type": "query",
  171. "useTags": false
  172. },
  173. {
  174. "allValue": null,
  175. "current": {},
  176. "datasource": null,
  177. "hide": 1,
  178. "includeAll": false,
  179. "label": null,
  180. "multi": false,
  181. "name": "mesh_id",
  182. "options": [],
  183. "query": "label_values(%%PROM_INFO_PREFIX%%{hostname=\"[[mesh_name]]\"},node_id)",
  184. "refresh": 2,
  185. "regex": "",
  186. "sort": 1,
  187. "tagValuesQuery": "",
  188. "tags": [],
  189. "tagsQuery": "",
  190. "type": "query",
  191. "useTags": false
  192. },
  193. {
  194. "allValue": null,
  195. "current": {},
  196. "datasource": null,
  197. "hide": 2,
  198. "includeAll": false,
  199. "label": null,
  200. "multi": false,
  201. "name": "regex",
  202. "options": [],
  203. "query": "label_values(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh{node_id=\"[[mesh_id]]\"},members)",
  204. "refresh": 2,
  205. "regex": "",
  206. "sort": 1,
  207. "tagValuesQuery": "",
  208. "tags": [],
  209. "tagsQuery": "",
  210. "type": "query",
  211. "useTags": false
  212. },
  213. {
  214. "allValue": null,
  215. "current": {},
  216. "datasource": null,
  217. "hide": 0,
  218. "includeAll": false,
  219. "label": "Knoten auswählen:",
  220. "multi": false,
  221. "name": "hostname",
  222. "options": [],
  223. "query": "label_values(%%PROM_INFO_PREFIX%%{node_id=~\"[[regex]]\"},hostname)",
  224. "refresh": 2,
  225. "regex": "",
  226. "sort": 1,
  227. "tagValuesQuery": "",
  228. "tags": [],
  229. "tagsQuery": "",
  230. "type": "query",
  231. "useTags": false
  232. },
  233. {
  234. "allValue": null,
  235. "current": {},
  236. "datasource": null,
  237. "hide": 1,
  238. "includeAll": false,
  239. "label": null,
  240. "multi": false,
  241. "name": "node_id",
  242. "options": [],
  243. "query": "label_values(%%PROM_INFO_PREFIX%%{hostname=\"[[hostname]]\"},node_id)",
  244. "refresh": 2,
  245. "regex": "",
  246. "sort": 1,
  247. "tagValuesQuery": "",
  248. "tags": [],
  249. "tagsQuery": "",
  250. "type": "query",
  251. "useTags": false
  252. },
  253. {
  254. "allValue": null,
  255. "current": {},
  256. "datasource": null,
  257. "hide": 2,
  258. "includeAll": false,
  259. "label": null,
  260. "multi": false,
  261. "name": "mesh_count",
  262. "options": [],
  263. "query": "query_result(count(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh))",
  264. "refresh": 2,
  265. "regex": "/.* ([0-9]+) .*/",
  266. "sort": 1,
  267. "tagValuesQuery": "",
  268. "tags": [],
  269. "tagsQuery": "",
  270. "type": "query",
  271. "useTags": false
  272. },
  273. {
  274. "allValue": null,
  275. "current": {},
  276. "datasource": null,
  277. "hide": 2,
  278. "includeAll": false,
  279. "label": null,
  280. "multi": false,
  281. "name": "node_sum",
  282. "options": [],
  283. "query": "query_result(floor(sum(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh)))",
  284. "refresh": 2,
  285. "regex": "/.* ([0-9]+) .*/",
  286. "sort": 1,
  287. "tagValuesQuery": "",
  288. "tags": [],
  289. "tagsQuery": "",
  290. "type": "query",
  291. "useTags": false
  292. },
  293. {
  294. "allValue": null,
  295. "current": {},
  296. "datasource": null,
  297. "hide": 2,
  298. "includeAll": false,
  299. "label": null,
  300. "multi": false,
  301. "name": "link_sum",
  302. "options": [],
  303. "query": "query_result(round(1000 * (sum(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh) - floor(sum(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh)))))",
  304. "refresh": 2,
  305. "regex": "/.* ([0-9]+) .*/",
  306. "sort": 1,
  307. "tagValuesQuery": "",
  308. "tags": [],
  309. "tagsQuery": "",
  310. "type": "query",
  311. "useTags": false
  312. }
  313. ]
  314. },
  315. "time": {
  316. "from": "now-24h",
  317. "to": "now"
  318. },
  319. "timepicker": {
  320. "refresh_intervals": [
  321. "5s",
  322. "10s",
  323. "30s",
  324. "1m",
  325. "5m",
  326. "15m",
  327. "30m",
  328. "1h",
  329. "2h",
  330. "1d"
  331. ],
  332. "time_options": [
  333. "5m",
  334. "15m",
  335. "1h",
  336. "6h",
  337. "12h",
  338. "24h",
  339. "2d",
  340. "7d",
  341. "30d"
  342. ]
  343. },
  344. "timezone": "",
  345. "title": "%%DASHBOARD_PREFIX%%status-mesh",
  346. "version": 5
  347. }