status-group.json.in 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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. "schemaVersion" : 14,
  158. "style" : "dark",
  159. "tags" : [
  160. ],
  161. "templating" : {
  162. "list" : [
  163. {
  164. "allValue" : null,
  165. "current" : {
  166. "text" : " - noch keine Auswahl -",
  167. "value" : null
  168. },
  169. "datasource" : null,
  170. "hide" : 0,
  171. "includeAll" : false,
  172. "label" : "Routergruppe",
  173. "multi" : false,
  174. "name" : "group",
  175. "options" : [
  176. ],
  177. "query" : "label_values(%%PROM_GROUPS_PREFIX%%,group)",
  178. "refresh" : 2,
  179. "regex" : "",
  180. "sort" : 1,
  181. "tagValuesQuery" : "",
  182. "tags" : [
  183. ],
  184. "tagsQuery" : "",
  185. "type" : "query",
  186. "useTags" : false
  187. },
  188. {
  189. "allValue" : null,
  190. "current" : {
  191. "text" : null,
  192. "value" : null
  193. },
  194. "datasource" : null,
  195. "hide" : 2,
  196. "includeAll" : false,
  197. "label" : null,
  198. "multi" : false,
  199. "name" : "regex",
  200. "options" : [
  201. ],
  202. "query" : "query_result(max(%%PROM_GROUPS_PREFIX%%{group=\"[[group]]\"}) by (regex))",
  203. "refresh" : 2,
  204. "regex" : "\/.*regex=\"(.*)\".*\/",
  205. "sort" : 1,
  206. "tagValuesQuery" : "",
  207. "tags" : [
  208. ],
  209. "tagsQuery" : "",
  210. "type" : "query",
  211. "useTags" : false
  212. },
  213. {
  214. "allValue" : null,
  215. "current" : {
  216. "text" : " - noch keine Auswahl -",
  217. "value" : null
  218. },
  219. "datasource" : null,
  220. "hide" : 0,
  221. "includeAll" : false,
  222. "label" : null,
  223. "multi" : false,
  224. "name" : "hostname",
  225. "options" : [
  226. ],
  227. "query" : "label_values(%%PROM_INFO_PREFIX%%{hostname=~\"[[regex]]\"},hostname)",
  228. "refresh" : 2,
  229. "regex" : "",
  230. "sort" : 1,
  231. "tagValuesQuery" : "",
  232. "tags" : [
  233. ],
  234. "tagsQuery" : "",
  235. "type" : "query",
  236. "useTags" : false
  237. },
  238. {
  239. "allValue" : null,
  240. "current" : {
  241. "text" : null,
  242. "value" : null
  243. },
  244. "datasource" : null,
  245. "hide" : 0,
  246. "includeAll" : false,
  247. "label" : null,
  248. "multi" : false,
  249. "name" : "node_id",
  250. "options" : [
  251. ],
  252. "query" : "label_values(%%PROM_INFO_PREFIX%%{hostname=\"[[hostname]]\"},node_id)",
  253. "refresh" : 2,
  254. "regex" : "",
  255. "sort" : 1,
  256. "tagValuesQuery" : "",
  257. "tags" : [
  258. ],
  259. "tagsQuery" : "",
  260. "type" : "query",
  261. "useTags" : false
  262. },
  263. {
  264. "allValue" : null,
  265. "current" : {
  266. },
  267. "datasource" : null,
  268. "hide" : 2,
  269. "includeAll" : false,
  270. "label" : null,
  271. "multi" : false,
  272. "name" : "link_target_id",
  273. "options" : [
  274. ],
  275. "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]]\"})",
  276. "refresh" : 2,
  277. "regex" : "\/.*target=\"([^\"]+)\".*\/",
  278. "sort" : 0,
  279. "tagValuesQuery" : "",
  280. "tags" : [
  281. ],
  282. "tagsQuery" : "",
  283. "type" : "query",
  284. "useTags" : false
  285. },
  286. {
  287. "allValue" : null,
  288. "current" : {
  289. },
  290. "datasource" : null,
  291. "hide" : 2,
  292. "includeAll" : false,
  293. "label" : null,
  294. "multi" : false,
  295. "name" : "mesh_id",
  296. "options" : [
  297. ],
  298. "query" : "label_values(%%PROM_GRAPH_PREFIX%%%%PROM_SEPERATOR%%mesh{members=~\".*[[node_id]].*\"},node_id)",
  299. "refresh" : 2,
  300. "regex" : "",
  301. "sort" : 0,
  302. "tagValuesQuery" : "",
  303. "tags" : [
  304. ],
  305. "tagsQuery" : "",
  306. "type" : "query",
  307. "useTags" : false
  308. },
  309. {
  310. "allValue" : null,
  311. "current" : {
  312. },
  313. "datasource" : null,
  314. "hide" : 2,
  315. "includeAll" : false,
  316. "label" : null,
  317. "multi" : false,
  318. "name" : "mesh_name",
  319. "options" : [
  320. ],
  321. "query" : "label_values(%%PROM_INFO_PREFIX%%{node_id=\"[[mesh_id]]\"},hostname)",
  322. "refresh" : 2,
  323. "regex" : "",
  324. "sort" : 0,
  325. "tagValuesQuery" : "",
  326. "tags" : [
  327. ],
  328. "tagsQuery" : "",
  329. "type" : "query",
  330. "useTags" : false
  331. }
  332. ]
  333. },
  334. "time" : {
  335. "from" : "now-24h",
  336. "to" : "now"
  337. },
  338. "timepicker" : {
  339. "refresh_intervals" : [
  340. "5s",
  341. "10s",
  342. "30s",
  343. "1m",
  344. "5m",
  345. "15m",
  346. "30m",
  347. "1h",
  348. "2h",
  349. "1d"
  350. ],
  351. "time_options" : [
  352. "5m",
  353. "15m",
  354. "1h",
  355. "6h",
  356. "12h",
  357. "24h",
  358. "2d",
  359. "7d",
  360. "30d"
  361. ]
  362. },
  363. "timezone" : "",
  364. "title" : "%%DASHBOARD_PREFIX%%status-group",
  365. "version" : 9
  366. }