testdata-datalinks.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  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. "iteration": 1568372030444,
  19. "links": [],
  20. "panels": [
  21. {
  22. "content": "## Data link variables overview\n\nThis dashboard presents variables that one can use when creating *data links*. All links redirect to this dashboard and this panel represents the values that were interpolated in the link that was clicked.\n\n\n#### Series variables\n1. **Name:** <span style=\"color: orange;\">$seriesName</span>\n2. **label.datacenter:** <span style=\"color: orange;\">$labelDatacenter</span>\n3. **label.datacenter.region:** <span style=\"color: orange;\">$labelDatacenterRegion</span>\n\n#### Field variables\n1. **Name:** <span style=\"color: orange;\">$fieldName</span>\n\n#### Value variables\n1. **Time:** <span style=\"color: orange;\">$valueTime</span>\n2. **Numeric:** <span style=\"color: orange;\">$valueNumeric</span>\n3. **Text:** <span style=\"color: orange;\">$valueText</span>\n4. **Calc:** <span style=\"color: orange;\">$valueCalc</span>\n\n",
  23. "gridPos": {
  24. "h": 16,
  25. "w": 6,
  26. "x": 0,
  27. "y": 0
  28. },
  29. "id": 8,
  30. "mode": "markdown",
  31. "options": {},
  32. "timeFrom": null,
  33. "timeShift": null,
  34. "title": "",
  35. "transparent": true,
  36. "type": "text"
  37. },
  38. {
  39. "aliasColors": {},
  40. "bars": false,
  41. "dashLength": 10,
  42. "dashes": false,
  43. "fill": 1,
  44. "fillGradient": 0,
  45. "gridPos": {
  46. "h": 8,
  47. "w": 9,
  48. "x": 6,
  49. "y": 0
  50. },
  51. "id": 2,
  52. "legend": {
  53. "avg": false,
  54. "current": false,
  55. "max": false,
  56. "min": false,
  57. "show": true,
  58. "total": false,
  59. "values": false
  60. },
  61. "lines": true,
  62. "linewidth": 1,
  63. "nullPointMode": "null",
  64. "options": {
  65. "dataLinks": [
  66. {
  67. "targetBlank": false,
  68. "title": "Drill it down",
  69. "url": "http://localhost:3000/d/wfTJJL5Wz/datalinks-source?var-seriesName=${__series.name}&var-labelDatacenter=${__series.labels.datacenter}&var-labelDatacenterRegion=${__series.labels[\"datacenter.region\"]}&var-valueTime=${__value.time}&var-valueNumeric=${__value.numeric}&var-valueText=${__value.text}"
  70. }
  71. ]
  72. },
  73. "percentage": false,
  74. "pointradius": 2,
  75. "points": false,
  76. "renderer": "flot",
  77. "seriesOverrides": [],
  78. "spaceLength": 10,
  79. "stack": false,
  80. "steppedLine": false,
  81. "targets": [
  82. {
  83. "alias": "Foo datacenter",
  84. "labels": "datacenter=foo,datacenter.region=us-east-1",
  85. "refId": "A",
  86. "scenarioId": "random_walk"
  87. },
  88. {
  89. "alias": "Bar datacenter",
  90. "labels": "datacenter=bar,datacenter.region=us-east-2",
  91. "refId": "B",
  92. "scenarioId": "random_walk"
  93. }
  94. ],
  95. "thresholds": [],
  96. "timeFrom": null,
  97. "timeRegions": [],
  98. "timeShift": null,
  99. "title": "Multiple series",
  100. "tooltip": {
  101. "shared": true,
  102. "sort": 0,
  103. "value_type": "individual"
  104. },
  105. "type": "graph",
  106. "xaxis": {
  107. "buckets": null,
  108. "mode": "time",
  109. "name": null,
  110. "show": true,
  111. "values": []
  112. },
  113. "yaxes": [
  114. {
  115. "format": "short",
  116. "label": null,
  117. "logBase": 1,
  118. "max": null,
  119. "min": null,
  120. "show": true
  121. },
  122. {
  123. "format": "short",
  124. "label": null,
  125. "logBase": 1,
  126. "max": null,
  127. "min": null,
  128. "show": true
  129. }
  130. ],
  131. "yaxis": {
  132. "align": false,
  133. "alignLevel": null
  134. }
  135. },
  136. {
  137. "aliasColors": {},
  138. "bars": false,
  139. "dashLength": 10,
  140. "dashes": false,
  141. "fill": 1,
  142. "fillGradient": 0,
  143. "gridPos": {
  144. "h": 8,
  145. "w": 9,
  146. "x": 15,
  147. "y": 0
  148. },
  149. "id": 9,
  150. "legend": {
  151. "avg": false,
  152. "current": false,
  153. "max": false,
  154. "min": false,
  155. "show": true,
  156. "total": false,
  157. "values": false
  158. },
  159. "lines": true,
  160. "linewidth": 1,
  161. "nullPointMode": "null",
  162. "options": {
  163. "dataLinks": [
  164. {
  165. "targetBlank": false,
  166. "title": "Drill it down",
  167. "url": "http://localhost:3000/d/wfTJJL5Wz/datalinks-source?var-seriesName=${__series.name}&var-valueTime=${__value.time}&var-valueNumeric=${__value.numeric}&var-valueText=${__value.text}&var-fieldName=${__field.name}"
  168. }
  169. ]
  170. },
  171. "percentage": false,
  172. "pointradius": 2,
  173. "points": false,
  174. "renderer": "flot",
  175. "seriesOverrides": [],
  176. "spaceLength": 10,
  177. "stack": false,
  178. "steppedLine": false,
  179. "targets": [
  180. {
  181. "alias": "Foo datacenter",
  182. "labels": "datacenter=foo,datacenter.region=us-east-1",
  183. "refId": "A",
  184. "scenarioId": "random_walk_table",
  185. "stringInput": ""
  186. }
  187. ],
  188. "thresholds": [],
  189. "timeFrom": null,
  190. "timeRegions": [],
  191. "timeShift": null,
  192. "title": "Multiple fields",
  193. "tooltip": {
  194. "shared": true,
  195. "sort": 0,
  196. "value_type": "individual"
  197. },
  198. "type": "graph",
  199. "xaxis": {
  200. "buckets": null,
  201. "mode": "time",
  202. "name": null,
  203. "show": true,
  204. "values": []
  205. },
  206. "yaxes": [
  207. {
  208. "format": "short",
  209. "label": null,
  210. "logBase": 1,
  211. "max": null,
  212. "min": null,
  213. "show": true
  214. },
  215. {
  216. "format": "short",
  217. "label": null,
  218. "logBase": 1,
  219. "max": null,
  220. "min": null,
  221. "show": true
  222. }
  223. ],
  224. "yaxis": {
  225. "align": false,
  226. "alignLevel": null
  227. }
  228. },
  229. {
  230. "cacheTimeout": null,
  231. "datasource": "-- Dashboard --",
  232. "gridPos": {
  233. "h": 8,
  234. "w": 9,
  235. "x": 6,
  236. "y": 8
  237. },
  238. "id": 6,
  239. "links": [],
  240. "options": {
  241. "displayMode": "lcd",
  242. "fieldOptions": {
  243. "calcs": ["last"],
  244. "defaults": {
  245. "links": [
  246. {
  247. "targetBlank": true,
  248. "title": "Drill it down!",
  249. "url": "http://localhost:3000/d/wfTJJL5Wz/datalinks-source\n?var-fieldName=${__field.name}\n&var-labelDatacenter=${__series.labels.datacenter}\n&var-labelDatacenterRegion=${__series.labels[\"datacenter.region\"]}\n&var-valueNumeric=${__value.numeric}\n&var-valueText=${__value.text}\n&var-valueCalc=${__value.calc}"
  250. }
  251. ],
  252. "mappings": [
  253. {
  254. "id": 0,
  255. "op": "=",
  256. "text": "N/A",
  257. "type": 1,
  258. "value": "null"
  259. }
  260. ],
  261. "max": 100,
  262. "min": 0,
  263. "nullValueMode": "connected",
  264. "thresholds": [
  265. {
  266. "color": "green",
  267. "value": null
  268. },
  269. {
  270. "color": "red",
  271. "value": 80
  272. }
  273. ],
  274. "title": "${__series.name} - $__calc",
  275. "unit": "none"
  276. },
  277. "override": {},
  278. "values": false
  279. },
  280. "orientation": "horizontal"
  281. },
  282. "pluginVersion": "6.4.0-pre",
  283. "targets": [
  284. {
  285. "panelId": 2,
  286. "refId": "A"
  287. }
  288. ],
  289. "timeFrom": null,
  290. "timeShift": null,
  291. "title": "Value reducers 1",
  292. "type": "bargauge"
  293. },
  294. {
  295. "datasource": "-- Dashboard --",
  296. "gridPos": {
  297. "h": 8,
  298. "w": 9,
  299. "x": 15,
  300. "y": 8
  301. },
  302. "id": 4,
  303. "options": {
  304. "fieldOptions": {
  305. "calcs": ["mean"],
  306. "defaults": {
  307. "links": [
  308. {
  309. "title": "Drill it down",
  310. "url": "http://localhost:3000/d/wfTJJL5Wz/datalinks-source?var-fieldName=${__field.name}&var-labelDatacenter=${__series.labels.datacenter}&var-labelDatacenterRegion=${__series.labels[\"datacenter.region\"]}&var-valueNumeric=${__value.numeric}&var-valueText=${__value.text}&var-valueCalc=${__value.calc}"
  311. }
  312. ],
  313. "mappings": [],
  314. "max": 100,
  315. "min": 0,
  316. "thresholds": [
  317. {
  318. "color": "green",
  319. "value": null
  320. },
  321. {
  322. "color": "red",
  323. "value": 80
  324. }
  325. ],
  326. "title": "${__series.name} - $__calc"
  327. },
  328. "override": {},
  329. "values": false
  330. },
  331. "orientation": "auto",
  332. "showThresholdLabels": false,
  333. "showThresholdMarkers": true
  334. },
  335. "pluginVersion": "6.4.0-pre",
  336. "targets": [
  337. {
  338. "panelId": 2,
  339. "refId": "A"
  340. }
  341. ],
  342. "timeFrom": null,
  343. "timeShift": null,
  344. "title": "Value reducers 2",
  345. "type": "gauge"
  346. }
  347. ],
  348. "schemaVersion": 20,
  349. "style": "dark",
  350. "tags": ["gdev", "templating"],
  351. "templating": {
  352. "list": [
  353. {
  354. "current": {
  355. "text": "",
  356. "value": ""
  357. },
  358. "hide": 2,
  359. "label": "Series name",
  360. "name": "seriesName",
  361. "options": [
  362. {
  363. "text": "",
  364. "value": ""
  365. }
  366. ],
  367. "query": "",
  368. "skipUrlSync": false,
  369. "type": "textbox"
  370. },
  371. {
  372. "current": {
  373. "text": "",
  374. "value": ""
  375. },
  376. "hide": 2,
  377. "label": null,
  378. "name": "labelDatacenter",
  379. "options": [
  380. {
  381. "text": "",
  382. "value": ""
  383. }
  384. ],
  385. "query": "",
  386. "skipUrlSync": false,
  387. "type": "textbox"
  388. },
  389. {
  390. "current": {
  391. "text": "",
  392. "value": ""
  393. },
  394. "hide": 2,
  395. "label": null,
  396. "name": "labelDatacenterRegion",
  397. "options": [
  398. {
  399. "text": "",
  400. "value": ""
  401. }
  402. ],
  403. "query": "",
  404. "skipUrlSync": false,
  405. "type": "textbox"
  406. },
  407. {
  408. "current": {
  409. "text": "",
  410. "value": ""
  411. },
  412. "hide": 2,
  413. "label": null,
  414. "name": "valueTime",
  415. "options": [
  416. {
  417. "text": "",
  418. "value": ""
  419. }
  420. ],
  421. "query": "",
  422. "skipUrlSync": false,
  423. "type": "textbox"
  424. },
  425. {
  426. "current": {
  427. "text": "",
  428. "value": ""
  429. },
  430. "hide": 2,
  431. "label": null,
  432. "name": "valueNumeric",
  433. "options": [
  434. {
  435. "text": "",
  436. "value": ""
  437. }
  438. ],
  439. "query": "",
  440. "skipUrlSync": false,
  441. "type": "textbox"
  442. },
  443. {
  444. "current": {
  445. "text": "",
  446. "value": ""
  447. },
  448. "hide": 2,
  449. "label": null,
  450. "name": "valueText",
  451. "options": [
  452. {
  453. "text": "",
  454. "value": ""
  455. }
  456. ],
  457. "query": "",
  458. "skipUrlSync": false,
  459. "type": "textbox"
  460. },
  461. {
  462. "current": {
  463. "text": "",
  464. "value": ""
  465. },
  466. "hide": 2,
  467. "label": null,
  468. "name": "valueCalc",
  469. "options": [
  470. {
  471. "text": "",
  472. "value": ""
  473. }
  474. ],
  475. "query": "",
  476. "skipUrlSync": false,
  477. "type": "textbox"
  478. },
  479. {
  480. "current": {
  481. "text": "",
  482. "value": ""
  483. },
  484. "hide": 2,
  485. "label": null,
  486. "name": "fieldName",
  487. "options": [
  488. {
  489. "text": "",
  490. "value": ""
  491. }
  492. ],
  493. "query": "",
  494. "skipUrlSync": false,
  495. "type": "textbox"
  496. }
  497. ]
  498. },
  499. "time": {
  500. "from": "now-6h",
  501. "to": "now"
  502. },
  503. "timepicker": {
  504. "refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"]
  505. },
  506. "timezone": "",
  507. "title": "Datalinks - variables",
  508. "uid": "wfTJJL5Wz",
  509. "version": 1
  510. }