testdata-nested-variables.json 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. {
  2. "annotations": {
  3. "list": [
  4. {
  5. "builtIn": 1,
  6. "datasource": "-- Grafana --",
  7. "enable": true,
  8. "hide": true,
  9. "iconColor": "rgba(0, 211, 255, 1)",
  10. "name": "Annotations & Alerts",
  11. "type": "dashboard"
  12. }
  13. ]
  14. },
  15. "editable": true,
  16. "gnetId": null,
  17. "graphTooltip": 0,
  18. "id": 13844,
  19. "iteration": 1566896059256,
  20. "links": [],
  21. "panels": [
  22. {
  23. "content": "## Data center = $datacenter\n\n### server = $server\n\n#### pod = $pod",
  24. "gridPos": {
  25. "h": 9,
  26. "w": 12,
  27. "x": 0,
  28. "y": 0
  29. },
  30. "id": 4,
  31. "mode": "markdown",
  32. "options": {},
  33. "targets": [
  34. {
  35. "refId": "A",
  36. "scenarioId": "random_walk"
  37. }
  38. ],
  39. "timeFrom": null,
  40. "timeShift": null,
  41. "title": "Panel Title",
  42. "type": "text"
  43. },
  44. {
  45. "cacheTimeout": null,
  46. "colorBackground": false,
  47. "colorValue": false,
  48. "colors": ["#299c46", "rgba(237, 129, 40, 0.89)", "#d44a3a"],
  49. "datasource": "gdev-testdata",
  50. "format": "none",
  51. "gauge": {
  52. "maxValue": 100,
  53. "minValue": 0,
  54. "show": false,
  55. "thresholdLabels": false,
  56. "thresholdMarkers": true
  57. },
  58. "gridPos": {
  59. "h": 9,
  60. "w": 4,
  61. "x": 12,
  62. "y": 0
  63. },
  64. "id": 6,
  65. "interval": null,
  66. "links": [
  67. {
  68. "targetBlank": true,
  69. "title": "Drilldown detail dashboard",
  70. "url": "d/O6GmNPvWk/dashboard-tests-nested-template-variables-drilldown?orgId=1&${__all_variables}&${__url_time_range}"
  71. }
  72. ],
  73. "mappingType": 1,
  74. "mappingTypes": [],
  75. "maxDataPoints": 100,
  76. "nullPointMode": "connected",
  77. "nullText": null,
  78. "options": {},
  79. "postfix": "",
  80. "postfixFontSize": "50%",
  81. "prefix": "",
  82. "prefixFontSize": "50%",
  83. "rangeMaps": [
  84. {
  85. "from": "null",
  86. "text": "N/A",
  87. "to": "null"
  88. }
  89. ],
  90. "sparkline": {
  91. "fillColor": "rgba(31, 118, 189, 0.18)",
  92. "full": false,
  93. "lineColor": "rgb(31, 120, 193)",
  94. "show": true,
  95. "ymax": null,
  96. "ymin": null
  97. },
  98. "tableColumn": "",
  99. "targets": [
  100. {
  101. "refId": "A",
  102. "scenarioId": "random_walk"
  103. }
  104. ],
  105. "thresholds": "",
  106. "timeFrom": null,
  107. "timeShift": null,
  108. "title": "Panel drilldown link test",
  109. "type": "singlestat",
  110. "valueFontSize": "80%",
  111. "valueMaps": [
  112. {
  113. "op": "=",
  114. "text": "N/A",
  115. "value": "null"
  116. }
  117. ],
  118. "valueName": "avg"
  119. },
  120. {
  121. "cacheTimeout": null,
  122. "gridPos": {
  123. "h": 9,
  124. "w": 4,
  125. "x": 16,
  126. "y": 0
  127. },
  128. "id": 8,
  129. "links": [],
  130. "options": {
  131. "fieldOptions": {
  132. "calcs": ["mean"],
  133. "defaults": {
  134. "links": [
  135. {
  136. "targetBlank": true,
  137. "title": "Go to drilldown",
  138. "url": "/d/O6GmNPvWk/dashboard-tests-nested-template-variables-drilldown?orgId=1&${__all_variables}&${__url_time_range}"
  139. }
  140. ],
  141. "mappings": [],
  142. "max": 100,
  143. "min": 0,
  144. "nullValueMode": "connected",
  145. "thresholds": [
  146. {
  147. "color": "green",
  148. "value": null
  149. },
  150. {
  151. "color": "red",
  152. "value": 80
  153. }
  154. ],
  155. "unit": "none"
  156. },
  157. "override": {},
  158. "values": false
  159. },
  160. "orientation": "horizontal",
  161. "showThresholdLabels": false,
  162. "showThresholdMarkers": true
  163. },
  164. "pluginVersion": "6.4.0-pre",
  165. "targets": [
  166. {
  167. "refId": "A",
  168. "scenarioId": "random_walk"
  169. }
  170. ],
  171. "timeFrom": null,
  172. "timeShift": null,
  173. "title": "React gauge datalink",
  174. "type": "gauge"
  175. },
  176. {
  177. "cacheTimeout": null,
  178. "gridPos": {
  179. "h": 9,
  180. "w": 4,
  181. "x": 20,
  182. "y": 0
  183. },
  184. "id": 9,
  185. "links": [],
  186. "options": {
  187. "displayMode": "basic",
  188. "fieldOptions": {
  189. "calcs": ["mean"],
  190. "defaults": {
  191. "links": [
  192. {
  193. "targetBlank": true,
  194. "title": "Go to drilldown",
  195. "url": "/d/O6GmNPvWk/dashboard-tests-nested-template-variables-drilldown?orgId=1&${__all_variables}&${__url_time_range}"
  196. }
  197. ],
  198. "mappings": [],
  199. "max": 100,
  200. "min": 0,
  201. "nullValueMode": "connected",
  202. "thresholds": [
  203. {
  204. "color": "green",
  205. "value": null
  206. },
  207. {
  208. "color": "red",
  209. "value": 80
  210. }
  211. ],
  212. "unit": "none"
  213. },
  214. "override": {},
  215. "values": false
  216. },
  217. "orientation": "vertical"
  218. },
  219. "pluginVersion": "6.4.0-pre",
  220. "targets": [
  221. {
  222. "refId": "A",
  223. "scenarioId": "random_walk"
  224. }
  225. ],
  226. "timeFrom": null,
  227. "timeShift": null,
  228. "title": "React gauge datalink",
  229. "type": "bargauge"
  230. },
  231. {
  232. "aliasColors": {},
  233. "bars": false,
  234. "dashLength": 10,
  235. "dashes": false,
  236. "datasource": "gdev-testdata",
  237. "fill": 1,
  238. "fillGradient": 0,
  239. "gridPos": {
  240. "h": 13,
  241. "w": 24,
  242. "x": 0,
  243. "y": 9
  244. },
  245. "id": 2,
  246. "legend": {
  247. "avg": false,
  248. "current": false,
  249. "max": false,
  250. "min": false,
  251. "show": true,
  252. "total": false,
  253. "values": false
  254. },
  255. "lines": true,
  256. "linewidth": 1,
  257. "nullPointMode": "null",
  258. "options": {
  259. "dataLinks": []
  260. },
  261. "percentage": false,
  262. "pointradius": 2,
  263. "points": false,
  264. "renderer": "flot",
  265. "seriesOverrides": [],
  266. "spaceLength": 10,
  267. "stack": false,
  268. "steppedLine": false,
  269. "targets": [
  270. {
  271. "alias": "$datacenter.$server.$pod",
  272. "refId": "A",
  273. "scenarioId": "random_walk"
  274. }
  275. ],
  276. "thresholds": [],
  277. "timeFrom": null,
  278. "timeRegions": [],
  279. "timeShift": null,
  280. "title": "Panel Title",
  281. "tooltip": {
  282. "shared": true,
  283. "sort": 0,
  284. "value_type": "individual"
  285. },
  286. "type": "graph",
  287. "xaxis": {
  288. "buckets": null,
  289. "mode": "time",
  290. "name": null,
  291. "show": true,
  292. "values": []
  293. },
  294. "yaxes": [
  295. {
  296. "format": "short",
  297. "label": null,
  298. "logBase": 1,
  299. "max": null,
  300. "min": null,
  301. "show": true
  302. },
  303. {
  304. "format": "short",
  305. "label": null,
  306. "logBase": 1,
  307. "max": null,
  308. "min": null,
  309. "show": true
  310. }
  311. ],
  312. "yaxis": {
  313. "align": false,
  314. "alignLevel": null
  315. }
  316. }
  317. ],
  318. "refresh": false,
  319. "schemaVersion": 19,
  320. "style": "dark",
  321. "tags": ["gdev", "templating"],
  322. "templating": {
  323. "list": [
  324. {
  325. "allValue": null,
  326. "current": {
  327. "text": "A",
  328. "value": ["A"]
  329. },
  330. "datasource": "gdev-testdata",
  331. "definition": "*",
  332. "hide": 0,
  333. "includeAll": true,
  334. "label": null,
  335. "multi": true,
  336. "name": "datacenter",
  337. "options": [],
  338. "query": "*",
  339. "refresh": 1,
  340. "regex": "",
  341. "skipUrlSync": false,
  342. "sort": 0,
  343. "tagValuesQuery": "",
  344. "tags": [],
  345. "tagsQuery": "",
  346. "type": "query",
  347. "useTags": false
  348. },
  349. {
  350. "allValue": null,
  351. "current": {
  352. "text": "AA",
  353. "value": ["AA"]
  354. },
  355. "datasource": "gdev-testdata",
  356. "definition": "$datacenter.*",
  357. "hide": 0,
  358. "includeAll": true,
  359. "label": null,
  360. "multi": true,
  361. "name": "server",
  362. "options": [],
  363. "query": "$datacenter.*",
  364. "refresh": 1,
  365. "regex": "",
  366. "skipUrlSync": false,
  367. "sort": 0,
  368. "tagValuesQuery": "",
  369. "tags": [],
  370. "tagsQuery": "",
  371. "type": "query",
  372. "useTags": false
  373. },
  374. {
  375. "allValue": null,
  376. "current": {
  377. "text": "All",
  378. "value": ["$__all"]
  379. },
  380. "datasource": "gdev-testdata",
  381. "definition": "$datacenter.$server.*",
  382. "hide": 0,
  383. "includeAll": true,
  384. "label": null,
  385. "multi": true,
  386. "name": "pod",
  387. "options": [],
  388. "query": "$datacenter.$server.*",
  389. "refresh": 1,
  390. "regex": "",
  391. "skipUrlSync": false,
  392. "sort": 0,
  393. "tagValuesQuery": "",
  394. "tags": [],
  395. "tagsQuery": "",
  396. "type": "query",
  397. "useTags": false
  398. }
  399. ]
  400. },
  401. "time": {
  402. "from": "now-1h",
  403. "to": "now"
  404. },
  405. "timepicker": {
  406. "refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"]
  407. },
  408. "timezone": "",
  409. "title": "Templating - Nested Template Variables",
  410. "uid": "-Y-tnEDWk",
  411. "version": 2
  412. }