status-mesh-render.json.in 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524
  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. "rows" : [
  14. {
  15. "collapse" : true,
  16. "height" : 260,
  17. "panels" : [
  18. {
  19. "aliasColors" : {
  20. },
  21. "bars" : false,
  22. "dashLength" : 10,
  23. "dashes" : false,
  24. "datasource" : null,
  25. "fill" : 0,
  26. "id" : 5,
  27. "legend" : {
  28. "alignAsTable" : true,
  29. "avg" : true,
  30. "current" : true,
  31. "hideEmpty" : true,
  32. "max" : true,
  33. "min" : true,
  34. "rightSide" : false,
  35. "show" : true,
  36. "total" : false,
  37. "values" : true
  38. },
  39. "lines" : true,
  40. "linewidth" : 1,
  41. "links" : [
  42. ],
  43. "nullPointMode" : "null",
  44. "percentage" : false,
  45. "pointradius" : 5,
  46. "points" : false,
  47. "renderer" : "flot",
  48. "seriesOverrides" : [
  49. ],
  50. "spaceLength" : 10,
  51. "span" : 9,
  52. "stack" : false,
  53. "steppedLine" : false,
  54. "targets" : [
  55. {
  56. "expr" : "count(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh)",
  57. "format" : "time_series",
  58. "intervalFactor" : 2,
  59. "legendFormat" : "Meshes",
  60. "refId" : "A",
  61. "step" : 240
  62. },
  63. {
  64. "expr" : "sum(floor(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh))",
  65. "format" : "time_series",
  66. "intervalFactor" : 2,
  67. "legendFormat" : "Knoten",
  68. "refId" : "B",
  69. "step" : 240
  70. },
  71. {
  72. "expr" : "round(1000 * sum(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh - floor(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh)))",
  73. "format" : "time_series",
  74. "intervalFactor" : 2,
  75. "legendFormat" : "Links",
  76. "refId" : "C",
  77. "step" : 240
  78. }
  79. ],
  80. "thresholds" : [
  81. ],
  82. "timeFrom" : null,
  83. "timeShift" : null,
  84. "title" : "Meshes, Knoten, Links - zZ [[mesh_count]], [[node_sum]], [[link_sum]]",
  85. "tooltip" : {
  86. "shared" : true,
  87. "sort" : 0,
  88. "value_type" : "individual"
  89. },
  90. "type" : "graph",
  91. "xaxis" : {
  92. "buckets" : null,
  93. "mode" : "time",
  94. "name" : null,
  95. "show" : true,
  96. "values" : [
  97. ]
  98. },
  99. "yaxes" : [
  100. {
  101. "format" : "short",
  102. "label" : null,
  103. "logBase" : 1,
  104. "max" : null,
  105. "min" : "0",
  106. "show" : true
  107. },
  108. {
  109. "format" : "short",
  110. "label" : null,
  111. "logBase" : 1,
  112. "max" : null,
  113. "min" : null,
  114. "show" : true
  115. }
  116. ]
  117. },
  118. {
  119. "aliasColors" : {
  120. },
  121. "cacheTimeout" : null,
  122. "combine" : {
  123. "label" : "Others",
  124. "threshold" : 0
  125. },
  126. "datasource" : null,
  127. "fontSize" : "100%",
  128. "format" : "short",
  129. "id" : 6,
  130. "interval" : null,
  131. "legend" : {
  132. "percentage" : false,
  133. "show" : false,
  134. "values" : false
  135. },
  136. "legendType" : "Under graph",
  137. "links" : [
  138. ],
  139. "maxDataPoints" : 3,
  140. "nullPointMode" : "connected",
  141. "pieType" : "pie",
  142. "span" : 3,
  143. "strokeWidth" : "0",
  144. "targets" : [
  145. {
  146. "expr" : "count_values(\"size\",floor(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh))",
  147. "format" : "time_series",
  148. "intervalFactor" : 2,
  149. "legendFormat" : "{{size}}",
  150. "refId" : "A",
  151. "step" : 43200
  152. }
  153. ],
  154. "title" : "Meshgr\u00F6\u00DFenverteilung",
  155. "type" : "grafana-piechart-panel",
  156. "valueName" : "current"
  157. }
  158. ],
  159. "repeat" : null,
  160. "repeatIteration" : null,
  161. "repeatRowId" : null,
  162. "showTitle" : false,
  163. "title" : "[[mesh_count]] Meshes mit insgesamt [[node_sum]] Knoten und [[link_sum]] Links",
  164. "titleSize" : "h6"
  165. },
  166. {
  167. "collapse" : false,
  168. "height" : 278,
  169. "panels" : [
  170. {
  171. "aliasColors" : {
  172. },
  173. "bars" : false,
  174. "dashLength" : 10,
  175. "dashes" : false,
  176. "datasource" : null,
  177. "fill" : 0,
  178. "id" : 3,
  179. "legend" : {
  180. "alignAsTable" : true,
  181. "avg" : true,
  182. "current" : true,
  183. "hideEmpty" : true,
  184. "max" : true,
  185. "min" : true,
  186. "rightSide" : false,
  187. "show" : true,
  188. "total" : false,
  189. "values" : true
  190. },
  191. "lines" : true,
  192. "linewidth" : 1,
  193. "links" : [
  194. ],
  195. "nullPointMode" : "null",
  196. "percentage" : false,
  197. "pointradius" : 5,
  198. "points" : false,
  199. "renderer" : "flot",
  200. "seriesOverrides" : [
  201. ],
  202. "spaceLength" : 10,
  203. "span" : 12,
  204. "stack" : false,
  205. "steppedLine" : false,
  206. "targets" : [
  207. {
  208. "expr" : "%%PROM_STATS_PREFIX%%%%PROM_SEPERATOR%%clients{node_id=~\"([[regex]])\"}",
  209. "format" : "time_series",
  210. "hide" : false,
  211. "interval" : "",
  212. "intervalFactor" : 2,
  213. "legendFormat" : "{{hostname}}",
  214. "refId" : "A",
  215. "step" : 120
  216. },
  217. {
  218. "expr" : "sum(%%PROM_STATS_PREFIX%%%%PROM_SEPERATOR%%clients{node_id=~\"([[regex]])\"})",
  219. "format" : "time_series",
  220. "hide" : false,
  221. "interval" : "",
  222. "intervalFactor" : 2,
  223. "legendFormat" : "Summe",
  224. "refId" : "B",
  225. "step" : 120
  226. }
  227. ],
  228. "thresholds" : [
  229. ],
  230. "timeFrom" : null,
  231. "timeShift" : null,
  232. "title" : "clients im Mesh des Knotens [[mesh_name]]",
  233. "tooltip" : {
  234. "shared" : true,
  235. "sort" : 1,
  236. "value_type" : "individual"
  237. },
  238. "type" : "graph",
  239. "xaxis" : {
  240. "buckets" : null,
  241. "mode" : "time",
  242. "name" : null,
  243. "show" : true,
  244. "values" : [
  245. ]
  246. },
  247. "yaxes" : [
  248. {
  249. "decimals" : 0,
  250. "format" : "short",
  251. "label" : "",
  252. "logBase" : 1,
  253. "max" : null,
  254. "min" : null,
  255. "show" : true
  256. },
  257. {
  258. "format" : "short",
  259. "label" : null,
  260. "logBase" : 1,
  261. "max" : null,
  262. "min" : null,
  263. "show" : true
  264. }
  265. ]
  266. }
  267. ],
  268. "repeat" : null,
  269. "repeatIteration" : null,
  270. "repeatRowId" : null,
  271. "showTitle" : false,
  272. "title" : "Dashboard Row",
  273. "titleSize" : "h6"
  274. },
  275. {
  276. "collapse" : false,
  277. "height" : "100",
  278. "panels" : [
  279. {
  280. "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",
  281. "height" : "80px",
  282. "id" : 4,
  283. "links" : [
  284. ],
  285. "mode" : "html",
  286. "repeat" : null,
  287. "span" : 12,
  288. "title" : "Links zu [[hostname]], Node ID [[node_id]]",
  289. "type" : "text"
  290. }
  291. ],
  292. "repeat" : null,
  293. "repeatIteration" : null,
  294. "repeatRowId" : null,
  295. "showTitle" : false,
  296. "title" : "Dashboard Row",
  297. "titleSize" : "h6"
  298. }
  299. ],
  300. "schemaVersion" : 14,
  301. "style" : "dark",
  302. "tags" : [
  303. ],
  304. "templating" : {
  305. "list" : [
  306. {
  307. "allValue" : null,
  308. "current" : {
  309. },
  310. "datasource" : null,
  311. "hide" : 0,
  312. "includeAll" : false,
  313. "label" : "Mesh ausw\u00E4hlen:",
  314. "multi" : false,
  315. "name" : "mesh_name",
  316. "options" : [
  317. ],
  318. "query" : "query_result(%%PROM_INFO_PREFIX%% and on (node_id) max_over_time(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh[1d]))",
  319. "refresh" : 2,
  320. "regex" : "\/.*hostname=\"([^\\\"]+)\".*\/",
  321. "sort" : 1,
  322. "tagValuesQuery" : "",
  323. "tags" : [
  324. ],
  325. "tagsQuery" : "",
  326. "type" : "query",
  327. "useTags" : false
  328. },
  329. {
  330. "allValue" : null,
  331. "current" : {
  332. },
  333. "datasource" : null,
  334. "hide" : 1,
  335. "includeAll" : false,
  336. "label" : null,
  337. "multi" : false,
  338. "name" : "mesh_id",
  339. "options" : [
  340. ],
  341. "query" : "label_values(%%PROM_INFO_PREFIX%%{hostname=\"[[mesh_name]]\"},node_id)",
  342. "refresh" : 2,
  343. "regex" : "",
  344. "sort" : 1,
  345. "tagValuesQuery" : "",
  346. "tags" : [
  347. ],
  348. "tagsQuery" : "",
  349. "type" : "query",
  350. "useTags" : false
  351. },
  352. {
  353. "allValue" : null,
  354. "current" : {
  355. },
  356. "datasource" : null,
  357. "hide" : 2,
  358. "includeAll" : false,
  359. "label" : null,
  360. "multi" : false,
  361. "name" : "regex",
  362. "options" : [
  363. ],
  364. "query" : "query_result(max(max_over_time(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh{node_id=\"[[mesh_id]]\"}[1d])) by (members) == scalar(max(max_over_time(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh{node_id=\"[[mesh_id]]\"}[1d]))))",
  365. "refresh" : 2,
  366. "regex" : "/.*members=\"([^\"]+)\"./",
  367. "sort" : 0,
  368. "tagValuesQuery" : "",
  369. "tags" : [
  370. ],
  371. "tagsQuery" : "",
  372. "type" : "query",
  373. "useTags" : false
  374. },
  375. {
  376. "allValue" : null,
  377. "current" : {
  378. },
  379. "datasource" : null,
  380. "hide" : 0,
  381. "includeAll" : false,
  382. "label" : "Knoten ausw\u00E4hlen:",
  383. "multi" : false,
  384. "name" : "hostname",
  385. "options" : [
  386. ],
  387. "query" : "label_values(%%PROM_INFO_PREFIX%%{node_id=~\"[[regex]]\"},hostname)",
  388. "refresh" : 2,
  389. "regex" : "",
  390. "sort" : 1,
  391. "tagValuesQuery" : "",
  392. "tags" : [
  393. ],
  394. "tagsQuery" : "",
  395. "type" : "query",
  396. "useTags" : false
  397. },
  398. {
  399. "allValue" : null,
  400. "current" : {
  401. },
  402. "datasource" : null,
  403. "hide" : 1,
  404. "includeAll" : false,
  405. "label" : null,
  406. "multi" : false,
  407. "name" : "node_id",
  408. "options" : [
  409. ],
  410. "query" : "label_values(%%PROM_INFO_PREFIX%%{hostname=\"[[hostname]]\"},node_id)",
  411. "refresh" : 2,
  412. "regex" : "",
  413. "sort" : 1,
  414. "tagValuesQuery" : "",
  415. "tags" : [
  416. ],
  417. "tagsQuery" : "",
  418. "type" : "query",
  419. "useTags" : false
  420. },
  421. {
  422. "allValue" : null,
  423. "current" : {
  424. },
  425. "datasource" : null,
  426. "hide" : 2,
  427. "includeAll" : false,
  428. "label" : null,
  429. "multi" : false,
  430. "name" : "mesh_count",
  431. "options" : [
  432. ],
  433. "query" : "query_result(count(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh))",
  434. "refresh" : 2,
  435. "regex" : "\/.* ([0-9]+) .*\/",
  436. "sort" : 1,
  437. "tagValuesQuery" : "",
  438. "tags" : [
  439. ],
  440. "tagsQuery" : "",
  441. "type" : "query",
  442. "useTags" : false
  443. },
  444. {
  445. "allValue" : null,
  446. "current" : {
  447. },
  448. "datasource" : null,
  449. "hide" : 2,
  450. "includeAll" : false,
  451. "label" : null,
  452. "multi" : false,
  453. "name" : "node_sum",
  454. "options" : [
  455. ],
  456. "query" : "query_result(sum(floor(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh)))",
  457. "refresh" : 2,
  458. "regex" : "\/.* ([0-9]+) .*\/",
  459. "sort" : 1,
  460. "tagValuesQuery" : "",
  461. "tags" : [
  462. ],
  463. "tagsQuery" : "",
  464. "type" : "query",
  465. "useTags" : false
  466. },
  467. {
  468. "allValue" : null,
  469. "current" : {
  470. },
  471. "datasource" : null,
  472. "hide" : 2,
  473. "includeAll" : false,
  474. "label" : null,
  475. "multi" : false,
  476. "name" : "link_sum",
  477. "options" : [
  478. ],
  479. "query" : "query_result(round(1000 * (sum(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh) - sum(floor(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh)))))",
  480. "refresh" : 2,
  481. "regex" : "\/.* ([0-9]+) .*\/",
  482. "sort" : 1,
  483. "tagValuesQuery" : "",
  484. "tags" : [
  485. ],
  486. "tagsQuery" : "",
  487. "type" : "query",
  488. "useTags" : false
  489. }
  490. ]
  491. },
  492. "time" : {
  493. "from" : "now-24h",
  494. "to" : "now"
  495. },
  496. "timepicker" : {
  497. "refresh_intervals" : [
  498. "5s",
  499. "10s",
  500. "30s",
  501. "1m",
  502. "5m",
  503. "15m",
  504. "30m",
  505. "1h",
  506. "2h",
  507. "1d"
  508. ],
  509. "time_options" : [
  510. "5m",
  511. "15m",
  512. "1h",
  513. "6h",
  514. "12h",
  515. "24h",
  516. "2d",
  517. "7d",
  518. "30d"
  519. ]
  520. },
  521. "timezone" : "",
  522. "title" : "%%DASHBOARD_PREFIX%%status-mesh-render",
  523. "version" : 12
  524. }