dashboard.json 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242
  1. {
  2. "__inputs": [
  3. {
  4. "name": "DS_MSSQL_TEST",
  5. "label": "MSSQL Test",
  6. "description": "",
  7. "type": "datasource",
  8. "pluginId": "mssql",
  9. "pluginName": "Microsoft SQL Server"
  10. }
  11. ],
  12. "__requires": [
  13. {
  14. "type": "grafana",
  15. "id": "grafana",
  16. "name": "Grafana",
  17. "version": "5.0.0"
  18. },
  19. {
  20. "type": "panel",
  21. "id": "graph",
  22. "name": "Graph",
  23. "version": "5.0.0"
  24. },
  25. {
  26. "type": "datasource",
  27. "id": "mssql",
  28. "name": "Microsoft SQL Server",
  29. "version": "1.0.0"
  30. },
  31. {
  32. "type": "panel",
  33. "id": "table",
  34. "name": "Table",
  35. "version": "5.0.0"
  36. }
  37. ],
  38. "annotations": {
  39. "list": [
  40. {
  41. "builtIn": 1,
  42. "datasource": "-- Grafana --",
  43. "enable": true,
  44. "hide": true,
  45. "iconColor": "rgba(0, 211, 255, 1)",
  46. "name": "Annotations & Alerts",
  47. "type": "dashboard"
  48. },
  49. {
  50. "datasource": "${DS_MSSQL_TEST}",
  51. "enable": false,
  52. "hide": false,
  53. "iconColor": "#6ed0e0",
  54. "limit": 100,
  55. "name": "Deploys",
  56. "rawQuery": "SELECT\n time_sec as time,\n description as [text],\n tags\n FROM [event]\n WHERE $__unixEpochFilter(time_sec) AND tags='deploy'\n ORDER BY 1 ASC\n ",
  57. "showIn": 0,
  58. "tags": [],
  59. "type": "tags"
  60. },
  61. {
  62. "datasource": "${DS_MSSQL_TEST}",
  63. "enable": false,
  64. "hide": false,
  65. "iconColor": "rgba(255, 96, 96, 1)",
  66. "limit": 100,
  67. "name": "Tickets",
  68. "rawQuery": "SELECT\n time_sec as time,\n description as [text],\n tags\n FROM [event]\n WHERE $__unixEpochFilter(time_sec) AND tags='ticket'\n ORDER BY 1 ASC\n ",
  69. "showIn": 0,
  70. "tags": [],
  71. "type": "tags"
  72. },
  73. {
  74. "datasource": "${DS_MSSQL_TEST}",
  75. "enable": false,
  76. "hide": false,
  77. "iconColor": "#7eb26d",
  78. "limit": 100,
  79. "name": "Metric Values",
  80. "rawQuery": "SELECT \n time, \n measurement as text, \n '' as tags\nFROM\n metric_values \nORDER BY 1",
  81. "showIn": 0,
  82. "tags": [],
  83. "type": "tags"
  84. }
  85. ]
  86. },
  87. "editable": true,
  88. "gnetId": null,
  89. "graphTooltip": 0,
  90. "id": null,
  91. "iteration": 1521481503341,
  92. "links": [],
  93. "panels": [
  94. {
  95. "columns": [],
  96. "datasource": "${DS_MSSQL_TEST}",
  97. "fontSize": "100%",
  98. "gridPos": {
  99. "h": 4,
  100. "w": 24,
  101. "x": 0,
  102. "y": 0
  103. },
  104. "id": 2,
  105. "links": [],
  106. "pageSize": null,
  107. "scroll": true,
  108. "showHeader": true,
  109. "sort": {
  110. "col": 0,
  111. "desc": true
  112. },
  113. "styles": [
  114. {
  115. "alias": "",
  116. "colorMode": null,
  117. "colors": [
  118. "rgba(245, 54, 54, 0.9)",
  119. "rgba(237, 129, 40, 0.89)",
  120. "rgba(50, 172, 45, 0.97)"
  121. ],
  122. "decimals": 2,
  123. "pattern": "/.*/",
  124. "thresholds": [],
  125. "type": "string",
  126. "unit": "short"
  127. }
  128. ],
  129. "targets": [
  130. {
  131. "alias": "",
  132. "format": "table",
  133. "rawSql": "SELECT * from mssql_types",
  134. "refId": "A"
  135. }
  136. ],
  137. "title": "Data types",
  138. "transform": "table",
  139. "type": "table"
  140. },
  141. {
  142. "aliasColors": {},
  143. "bars": false,
  144. "dashLength": 10,
  145. "dashes": false,
  146. "datasource": "${DS_MSSQL_TEST}",
  147. "fill": 2,
  148. "gridPos": {
  149. "h": 9,
  150. "w": 8,
  151. "x": 0,
  152. "y": 4
  153. },
  154. "id": 7,
  155. "legend": {
  156. "avg": false,
  157. "current": false,
  158. "max": false,
  159. "min": false,
  160. "show": true,
  161. "total": false,
  162. "values": false
  163. },
  164. "lines": true,
  165. "linewidth": 2,
  166. "links": [],
  167. "nullPointMode": "null",
  168. "percentage": false,
  169. "pointradius": 3,
  170. "points": true,
  171. "renderer": "flot",
  172. "seriesOverrides": [],
  173. "spaceLength": 10,
  174. "stack": false,
  175. "steppedLine": true,
  176. "targets": [
  177. {
  178. "alias": "",
  179. "format": "time_series",
  180. "rawSql": "SELECT $__timeGroup(time, '5m') AS time, avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '5m') ORDER BY 1",
  181. "refId": "A"
  182. }
  183. ],
  184. "thresholds": [],
  185. "timeFrom": null,
  186. "timeShift": null,
  187. "title": "timeGroup macro 5m without fill",
  188. "tooltip": {
  189. "shared": true,
  190. "sort": 0,
  191. "value_type": "individual"
  192. },
  193. "type": "graph",
  194. "xaxis": {
  195. "buckets": null,
  196. "mode": "time",
  197. "name": null,
  198. "show": true,
  199. "values": []
  200. },
  201. "yaxes": [
  202. {
  203. "format": "short",
  204. "label": null,
  205. "logBase": 1,
  206. "max": null,
  207. "min": "0",
  208. "show": true
  209. },
  210. {
  211. "format": "short",
  212. "label": null,
  213. "logBase": 1,
  214. "max": null,
  215. "min": null,
  216. "show": true
  217. }
  218. ]
  219. },
  220. {
  221. "aliasColors": {},
  222. "bars": false,
  223. "dashLength": 10,
  224. "dashes": false,
  225. "datasource": "${DS_MSSQL_TEST}",
  226. "fill": 2,
  227. "gridPos": {
  228. "h": 9,
  229. "w": 8,
  230. "x": 8,
  231. "y": 4
  232. },
  233. "id": 9,
  234. "legend": {
  235. "avg": false,
  236. "current": false,
  237. "max": false,
  238. "min": false,
  239. "show": true,
  240. "total": false,
  241. "values": false
  242. },
  243. "lines": true,
  244. "linewidth": 2,
  245. "links": [],
  246. "nullPointMode": "null as zero",
  247. "percentage": false,
  248. "pointradius": 3,
  249. "points": true,
  250. "renderer": "flot",
  251. "seriesOverrides": [],
  252. "spaceLength": 10,
  253. "stack": false,
  254. "steppedLine": true,
  255. "targets": [
  256. {
  257. "alias": "",
  258. "format": "time_series",
  259. "rawSql": "SELECT $__timeGroup(time, '5m', NULL) AS time, avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '5m') ORDER BY 1",
  260. "refId": "A"
  261. }
  262. ],
  263. "thresholds": [],
  264. "timeFrom": null,
  265. "timeShift": null,
  266. "title": "timeGroup macro 5m with fill(NULL) and null as zero",
  267. "tooltip": {
  268. "shared": true,
  269. "sort": 0,
  270. "value_type": "individual"
  271. },
  272. "type": "graph",
  273. "xaxis": {
  274. "buckets": null,
  275. "mode": "time",
  276. "name": null,
  277. "show": true,
  278. "values": []
  279. },
  280. "yaxes": [
  281. {
  282. "format": "short",
  283. "label": null,
  284. "logBase": 1,
  285. "max": null,
  286. "min": "0",
  287. "show": true
  288. },
  289. {
  290. "format": "short",
  291. "label": null,
  292. "logBase": 1,
  293. "max": null,
  294. "min": null,
  295. "show": true
  296. }
  297. ]
  298. },
  299. {
  300. "aliasColors": {},
  301. "bars": false,
  302. "dashLength": 10,
  303. "dashes": false,
  304. "datasource": "${DS_MSSQL_TEST}",
  305. "fill": 2,
  306. "gridPos": {
  307. "h": 9,
  308. "w": 8,
  309. "x": 16,
  310. "y": 4
  311. },
  312. "id": 10,
  313. "legend": {
  314. "avg": false,
  315. "current": false,
  316. "max": false,
  317. "min": false,
  318. "show": true,
  319. "total": false,
  320. "values": false
  321. },
  322. "lines": true,
  323. "linewidth": 2,
  324. "links": [],
  325. "nullPointMode": "null",
  326. "percentage": false,
  327. "pointradius": 3,
  328. "points": true,
  329. "renderer": "flot",
  330. "seriesOverrides": [],
  331. "spaceLength": 10,
  332. "stack": false,
  333. "steppedLine": true,
  334. "targets": [
  335. {
  336. "alias": "",
  337. "format": "time_series",
  338. "rawSql": "SELECT $__timeGroup(time, '5m', 10.0) AS time, avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '5m') ORDER BY 1",
  339. "refId": "A"
  340. }
  341. ],
  342. "thresholds": [],
  343. "timeFrom": null,
  344. "timeShift": null,
  345. "title": "timeGroup macro 5m with fill(10.0)",
  346. "tooltip": {
  347. "shared": true,
  348. "sort": 0,
  349. "value_type": "individual"
  350. },
  351. "type": "graph",
  352. "xaxis": {
  353. "buckets": null,
  354. "mode": "time",
  355. "name": null,
  356. "show": true,
  357. "values": []
  358. },
  359. "yaxes": [
  360. {
  361. "format": "short",
  362. "label": null,
  363. "logBase": 1,
  364. "max": null,
  365. "min": "0",
  366. "show": true
  367. },
  368. {
  369. "format": "short",
  370. "label": null,
  371. "logBase": 1,
  372. "max": null,
  373. "min": null,
  374. "show": true
  375. }
  376. ]
  377. },
  378. {
  379. "aliasColors": {},
  380. "bars": true,
  381. "dashLength": 10,
  382. "dashes": false,
  383. "datasource": "${DS_MSSQL_TEST}",
  384. "fill": 2,
  385. "gridPos": {
  386. "h": 9,
  387. "w": 8,
  388. "x": 0,
  389. "y": 13
  390. },
  391. "id": 16,
  392. "legend": {
  393. "avg": false,
  394. "current": false,
  395. "max": false,
  396. "min": false,
  397. "show": true,
  398. "total": false,
  399. "values": false
  400. },
  401. "lines": false,
  402. "linewidth": 2,
  403. "links": [],
  404. "nullPointMode": "null",
  405. "percentage": false,
  406. "pointradius": 3,
  407. "points": false,
  408. "renderer": "flot",
  409. "seriesOverrides": [],
  410. "spaceLength": 10,
  411. "stack": false,
  412. "steppedLine": true,
  413. "targets": [
  414. {
  415. "alias": "",
  416. "format": "time_series",
  417. "rawSql": "SELECT $__timeGroup(time, '$summarize') AS time, avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '$summarize') ORDER BY 1",
  418. "refId": "A"
  419. }
  420. ],
  421. "thresholds": [],
  422. "timeFrom": null,
  423. "timeShift": null,
  424. "title": "Metrics - timeGroup macro $summarize without fill",
  425. "tooltip": {
  426. "shared": true,
  427. "sort": 0,
  428. "value_type": "individual"
  429. },
  430. "type": "graph",
  431. "xaxis": {
  432. "buckets": null,
  433. "mode": "time",
  434. "name": null,
  435. "show": true,
  436. "values": []
  437. },
  438. "yaxes": [
  439. {
  440. "format": "short",
  441. "label": null,
  442. "logBase": 1,
  443. "max": null,
  444. "min": null,
  445. "show": true
  446. },
  447. {
  448. "format": "short",
  449. "label": null,
  450. "logBase": 1,
  451. "max": null,
  452. "min": null,
  453. "show": true
  454. }
  455. ]
  456. },
  457. {
  458. "aliasColors": {},
  459. "bars": true,
  460. "dashLength": 10,
  461. "dashes": false,
  462. "datasource": "${DS_MSSQL_TEST}",
  463. "fill": 2,
  464. "gridPos": {
  465. "h": 9,
  466. "w": 8,
  467. "x": 8,
  468. "y": 13
  469. },
  470. "id": 12,
  471. "legend": {
  472. "avg": false,
  473. "current": false,
  474. "max": false,
  475. "min": false,
  476. "show": true,
  477. "total": false,
  478. "values": false
  479. },
  480. "lines": false,
  481. "linewidth": 2,
  482. "links": [],
  483. "nullPointMode": "null as zero",
  484. "percentage": false,
  485. "pointradius": 3,
  486. "points": false,
  487. "renderer": "flot",
  488. "seriesOverrides": [],
  489. "spaceLength": 10,
  490. "stack": false,
  491. "steppedLine": true,
  492. "targets": [
  493. {
  494. "alias": "",
  495. "format": "time_series",
  496. "rawSql": "SELECT $__timeGroup(time, '$summarize', NULL) AS time, sum(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '$summarize') ORDER BY 1",
  497. "refId": "A"
  498. }
  499. ],
  500. "thresholds": [],
  501. "timeFrom": null,
  502. "timeShift": null,
  503. "title": "Metrics - timeGroup macro $summarize with fill(NULL)",
  504. "tooltip": {
  505. "shared": true,
  506. "sort": 0,
  507. "value_type": "individual"
  508. },
  509. "type": "graph",
  510. "xaxis": {
  511. "buckets": null,
  512. "mode": "time",
  513. "name": null,
  514. "show": true,
  515. "values": []
  516. },
  517. "yaxes": [
  518. {
  519. "format": "short",
  520. "label": null,
  521. "logBase": 1,
  522. "max": null,
  523. "min": null,
  524. "show": true
  525. },
  526. {
  527. "format": "short",
  528. "label": null,
  529. "logBase": 1,
  530. "max": null,
  531. "min": null,
  532. "show": true
  533. }
  534. ]
  535. },
  536. {
  537. "aliasColors": {},
  538. "bars": true,
  539. "dashLength": 10,
  540. "dashes": false,
  541. "datasource": "${DS_MSSQL_TEST}",
  542. "fill": 2,
  543. "gridPos": {
  544. "h": 9,
  545. "w": 8,
  546. "x": 16,
  547. "y": 13
  548. },
  549. "id": 13,
  550. "legend": {
  551. "avg": false,
  552. "current": false,
  553. "max": false,
  554. "min": false,
  555. "show": true,
  556. "total": false,
  557. "values": false
  558. },
  559. "lines": false,
  560. "linewidth": 2,
  561. "links": [],
  562. "nullPointMode": "null",
  563. "percentage": false,
  564. "pointradius": 3,
  565. "points": false,
  566. "renderer": "flot",
  567. "seriesOverrides": [],
  568. "spaceLength": 10,
  569. "stack": false,
  570. "steppedLine": true,
  571. "targets": [
  572. {
  573. "alias": "",
  574. "format": "time_series",
  575. "rawSql": "SELECT $__timeGroup(time, '$summarize', 100.0) AS time, sum(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '$summarize') ORDER BY 1",
  576. "refId": "A"
  577. }
  578. ],
  579. "thresholds": [],
  580. "timeFrom": null,
  581. "timeShift": null,
  582. "title": "Metrics - timeGroup macro $summarize with fill(100.0)",
  583. "tooltip": {
  584. "shared": true,
  585. "sort": 0,
  586. "value_type": "individual"
  587. },
  588. "type": "graph",
  589. "xaxis": {
  590. "buckets": null,
  591. "mode": "time",
  592. "name": null,
  593. "show": true,
  594. "values": []
  595. },
  596. "yaxes": [
  597. {
  598. "format": "short",
  599. "label": null,
  600. "logBase": 1,
  601. "max": null,
  602. "min": null,
  603. "show": true
  604. },
  605. {
  606. "format": "short",
  607. "label": null,
  608. "logBase": 1,
  609. "max": null,
  610. "min": null,
  611. "show": true
  612. }
  613. ]
  614. },
  615. {
  616. "aliasColors": {},
  617. "bars": false,
  618. "dashLength": 10,
  619. "dashes": false,
  620. "datasource": "${DS_MSSQL_TEST}",
  621. "fill": 2,
  622. "gridPos": {
  623. "h": 8,
  624. "w": 12,
  625. "x": 0,
  626. "y": 22
  627. },
  628. "id": 27,
  629. "legend": {
  630. "alignAsTable": true,
  631. "avg": true,
  632. "current": true,
  633. "hideEmpty": false,
  634. "hideZero": false,
  635. "max": true,
  636. "min": true,
  637. "rightSide": true,
  638. "show": true,
  639. "total": true,
  640. "values": true
  641. },
  642. "lines": true,
  643. "linewidth": 2,
  644. "links": [],
  645. "nullPointMode": "null",
  646. "percentage": false,
  647. "pointradius": 3,
  648. "points": false,
  649. "renderer": "flot",
  650. "seriesOverrides": [],
  651. "spaceLength": 10,
  652. "stack": false,
  653. "steppedLine": false,
  654. "targets": [
  655. {
  656. "alias": "",
  657. "format": "time_series",
  658. "rawSql": "SELECT \n $__timeGroup(time, '$summarize') as time, \n measurement + ' - value one' as metric, \n avg(valueOne) as valueOne\nFROM\n metric_values \nWHERE\n $__timeFilter(time)\nGROUP BY \n $__timeGroup(time, '$summarize'), \n measurement \nORDER BY 1",
  659. "refId": "A"
  660. },
  661. {
  662. "alias": "",
  663. "format": "time_series",
  664. "rawSql": "SELECT \n $__timeGroup(time, '$summarize') as time, \n measurement + ' - value two' as metric, \n avg(valueTwo) as valueTwo \nFROM\n metric_values \nGROUP BY \n $__timeGroup(time, '$summarize'), \n measurement \nORDER BY 1",
  665. "refId": "B"
  666. }
  667. ],
  668. "thresholds": [],
  669. "timeFrom": null,
  670. "timeShift": null,
  671. "title": "Multiple series with metric column using timeGroup macro ($summarize)",
  672. "tooltip": {
  673. "shared": true,
  674. "sort": 0,
  675. "value_type": "individual"
  676. },
  677. "type": "graph",
  678. "xaxis": {
  679. "buckets": null,
  680. "mode": "time",
  681. "name": null,
  682. "show": true,
  683. "values": []
  684. },
  685. "yaxes": [
  686. {
  687. "format": "short",
  688. "label": null,
  689. "logBase": 1,
  690. "max": null,
  691. "min": "0",
  692. "show": true
  693. },
  694. {
  695. "format": "short",
  696. "label": null,
  697. "logBase": 1,
  698. "max": null,
  699. "min": null,
  700. "show": true
  701. }
  702. ]
  703. },
  704. {
  705. "aliasColors": {},
  706. "bars": false,
  707. "dashLength": 10,
  708. "dashes": false,
  709. "datasource": "${DS_MSSQL_TEST}",
  710. "fill": 2,
  711. "gridPos": {
  712. "h": 8,
  713. "w": 12,
  714. "x": 12,
  715. "y": 22
  716. },
  717. "id": 5,
  718. "legend": {
  719. "alignAsTable": true,
  720. "avg": true,
  721. "current": true,
  722. "max": true,
  723. "min": true,
  724. "rightSide": true,
  725. "show": true,
  726. "total": true,
  727. "values": true
  728. },
  729. "lines": true,
  730. "linewidth": 2,
  731. "links": [],
  732. "nullPointMode": "null",
  733. "percentage": false,
  734. "pointradius": 3,
  735. "points": false,
  736. "renderer": "flot",
  737. "seriesOverrides": [],
  738. "spaceLength": 10,
  739. "stack": false,
  740. "steppedLine": false,
  741. "targets": [
  742. {
  743. "alias": "",
  744. "format": "time_series",
  745. "rawSql": "SELECT \n $__timeGroup(time, '$summarize') as time, \n avg(valueOne) as valueOne, \n avg(valueTwo) as valueTwo \nFROM\n metric_values \nGROUP BY \n $__timeGroup(time, '$summarize')\nORDER BY 1",
  746. "refId": "A"
  747. }
  748. ],
  749. "thresholds": [],
  750. "timeFrom": null,
  751. "timeShift": null,
  752. "title": "Multiple series without metric column using timeGroup macro ($summarize)",
  753. "tooltip": {
  754. "shared": true,
  755. "sort": 0,
  756. "value_type": "individual"
  757. },
  758. "type": "graph",
  759. "xaxis": {
  760. "buckets": null,
  761. "mode": "time",
  762. "name": null,
  763. "show": true,
  764. "values": []
  765. },
  766. "yaxes": [
  767. {
  768. "format": "short",
  769. "label": null,
  770. "logBase": 1,
  771. "max": null,
  772. "min": "0",
  773. "show": true
  774. },
  775. {
  776. "format": "short",
  777. "label": null,
  778. "logBase": 1,
  779. "max": null,
  780. "min": null,
  781. "show": true
  782. }
  783. ]
  784. },
  785. {
  786. "aliasColors": {},
  787. "bars": false,
  788. "dashLength": 10,
  789. "dashes": false,
  790. "datasource": "${DS_MSSQL_TEST}",
  791. "fill": 2,
  792. "gridPos": {
  793. "h": 8,
  794. "w": 12,
  795. "x": 0,
  796. "y": 30
  797. },
  798. "id": 4,
  799. "legend": {
  800. "alignAsTable": true,
  801. "avg": true,
  802. "current": true,
  803. "hideEmpty": false,
  804. "hideZero": false,
  805. "max": true,
  806. "min": true,
  807. "rightSide": true,
  808. "show": true,
  809. "total": true,
  810. "values": true
  811. },
  812. "lines": true,
  813. "linewidth": 2,
  814. "links": [],
  815. "nullPointMode": "null",
  816. "percentage": false,
  817. "pointradius": 3,
  818. "points": false,
  819. "renderer": "flot",
  820. "seriesOverrides": [],
  821. "spaceLength": 10,
  822. "stack": false,
  823. "steppedLine": false,
  824. "targets": [
  825. {
  826. "alias": "",
  827. "format": "time_series",
  828. "rawSql": "SELECT $__timeEpoch(time), measurement + ' - value one' as metric, valueOne FROM metric_values ORDER BY 1",
  829. "refId": "A"
  830. },
  831. {
  832. "alias": "",
  833. "format": "time_series",
  834. "rawSql": "SELECT $__timeEpoch(time), measurement + ' - value two' as metric, valueTwo FROM metric_values ORDER BY 1",
  835. "refId": "B"
  836. }
  837. ],
  838. "thresholds": [],
  839. "timeFrom": null,
  840. "timeShift": null,
  841. "title": "Multiple series with metric column",
  842. "tooltip": {
  843. "shared": true,
  844. "sort": 0,
  845. "value_type": "individual"
  846. },
  847. "type": "graph",
  848. "xaxis": {
  849. "buckets": null,
  850. "mode": "time",
  851. "name": null,
  852. "show": true,
  853. "values": []
  854. },
  855. "yaxes": [
  856. {
  857. "format": "short",
  858. "label": null,
  859. "logBase": 1,
  860. "max": null,
  861. "min": "0",
  862. "show": true
  863. },
  864. {
  865. "format": "short",
  866. "label": null,
  867. "logBase": 1,
  868. "max": null,
  869. "min": null,
  870. "show": true
  871. }
  872. ]
  873. },
  874. {
  875. "aliasColors": {},
  876. "bars": false,
  877. "dashLength": 10,
  878. "dashes": false,
  879. "datasource": "${DS_MSSQL_TEST}",
  880. "fill": 2,
  881. "gridPos": {
  882. "h": 8,
  883. "w": 12,
  884. "x": 12,
  885. "y": 30
  886. },
  887. "id": 28,
  888. "legend": {
  889. "alignAsTable": true,
  890. "avg": true,
  891. "current": true,
  892. "max": true,
  893. "min": true,
  894. "rightSide": true,
  895. "show": true,
  896. "total": true,
  897. "values": true
  898. },
  899. "lines": true,
  900. "linewidth": 2,
  901. "links": [],
  902. "nullPointMode": "null",
  903. "percentage": false,
  904. "pointradius": 3,
  905. "points": false,
  906. "renderer": "flot",
  907. "seriesOverrides": [],
  908. "spaceLength": 10,
  909. "stack": false,
  910. "steppedLine": false,
  911. "targets": [
  912. {
  913. "alias": "",
  914. "format": "time_series",
  915. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values ORDER BY 1",
  916. "refId": "A"
  917. }
  918. ],
  919. "thresholds": [],
  920. "timeFrom": null,
  921. "timeShift": null,
  922. "title": "Multiple series without metric column",
  923. "tooltip": {
  924. "shared": true,
  925. "sort": 0,
  926. "value_type": "individual"
  927. },
  928. "type": "graph",
  929. "xaxis": {
  930. "buckets": null,
  931. "mode": "time",
  932. "name": null,
  933. "show": true,
  934. "values": []
  935. },
  936. "yaxes": [
  937. {
  938. "format": "short",
  939. "label": null,
  940. "logBase": 1,
  941. "max": null,
  942. "min": "0",
  943. "show": true
  944. },
  945. {
  946. "format": "short",
  947. "label": null,
  948. "logBase": 1,
  949. "max": null,
  950. "min": null,
  951. "show": true
  952. }
  953. ]
  954. },
  955. {
  956. "aliasColors": {},
  957. "bars": false,
  958. "dashLength": 10,
  959. "dashes": false,
  960. "datasource": "${DS_MSSQL_TEST}",
  961. "fill": 2,
  962. "gridPos": {
  963. "h": 8,
  964. "w": 12,
  965. "x": 0,
  966. "y": 38
  967. },
  968. "id": 19,
  969. "legend": {
  970. "alignAsTable": true,
  971. "avg": true,
  972. "current": true,
  973. "hideEmpty": false,
  974. "hideZero": false,
  975. "max": true,
  976. "min": true,
  977. "rightSide": true,
  978. "show": true,
  979. "total": true,
  980. "values": true
  981. },
  982. "lines": true,
  983. "linewidth": 2,
  984. "links": [],
  985. "nullPointMode": "null",
  986. "percentage": false,
  987. "pointradius": 3,
  988. "points": false,
  989. "renderer": "flot",
  990. "seriesOverrides": [],
  991. "spaceLength": 10,
  992. "stack": true,
  993. "steppedLine": false,
  994. "targets": [
  995. {
  996. "alias": "",
  997. "format": "time_series",
  998. "rawSql": "SELECT $__timeEpoch(time), measurement + ' - value one' as metric, valueOne FROM metric_values ORDER BY 1",
  999. "refId": "A"
  1000. },
  1001. {
  1002. "alias": "",
  1003. "format": "time_series",
  1004. "rawSql": "SELECT $__timeEpoch(time), measurement + ' - value two' as metric, valueTwo FROM metric_values ORDER BY 1",
  1005. "refId": "B"
  1006. }
  1007. ],
  1008. "thresholds": [],
  1009. "timeFrom": null,
  1010. "timeShift": null,
  1011. "title": "Multiple series with metric column - stacked",
  1012. "tooltip": {
  1013. "shared": true,
  1014. "sort": 0,
  1015. "value_type": "individual"
  1016. },
  1017. "type": "graph",
  1018. "xaxis": {
  1019. "buckets": null,
  1020. "mode": "time",
  1021. "name": null,
  1022. "show": true,
  1023. "values": []
  1024. },
  1025. "yaxes": [
  1026. {
  1027. "format": "short",
  1028. "label": null,
  1029. "logBase": 1,
  1030. "max": null,
  1031. "min": "0",
  1032. "show": true
  1033. },
  1034. {
  1035. "format": "short",
  1036. "label": null,
  1037. "logBase": 1,
  1038. "max": null,
  1039. "min": null,
  1040. "show": true
  1041. }
  1042. ]
  1043. },
  1044. {
  1045. "aliasColors": {},
  1046. "bars": false,
  1047. "dashLength": 10,
  1048. "dashes": false,
  1049. "datasource": "${DS_MSSQL_TEST}",
  1050. "fill": 2,
  1051. "gridPos": {
  1052. "h": 8,
  1053. "w": 12,
  1054. "x": 12,
  1055. "y": 38
  1056. },
  1057. "id": 18,
  1058. "legend": {
  1059. "alignAsTable": true,
  1060. "avg": true,
  1061. "current": true,
  1062. "max": true,
  1063. "min": true,
  1064. "rightSide": true,
  1065. "show": true,
  1066. "total": true,
  1067. "values": true
  1068. },
  1069. "lines": true,
  1070. "linewidth": 2,
  1071. "links": [],
  1072. "nullPointMode": "null",
  1073. "percentage": false,
  1074. "pointradius": 3,
  1075. "points": false,
  1076. "renderer": "flot",
  1077. "seriesOverrides": [],
  1078. "spaceLength": 10,
  1079. "stack": true,
  1080. "steppedLine": false,
  1081. "targets": [
  1082. {
  1083. "alias": "",
  1084. "format": "time_series",
  1085. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values ORDER BY 1",
  1086. "refId": "A"
  1087. }
  1088. ],
  1089. "thresholds": [],
  1090. "timeFrom": null,
  1091. "timeShift": null,
  1092. "title": "Multiple series without metric column - stacked",
  1093. "tooltip": {
  1094. "shared": true,
  1095. "sort": 0,
  1096. "value_type": "individual"
  1097. },
  1098. "type": "graph",
  1099. "xaxis": {
  1100. "buckets": null,
  1101. "mode": "time",
  1102. "name": null,
  1103. "show": true,
  1104. "values": []
  1105. },
  1106. "yaxes": [
  1107. {
  1108. "format": "short",
  1109. "label": null,
  1110. "logBase": 1,
  1111. "max": null,
  1112. "min": "0",
  1113. "show": true
  1114. },
  1115. {
  1116. "format": "short",
  1117. "label": null,
  1118. "logBase": 1,
  1119. "max": null,
  1120. "min": null,
  1121. "show": true
  1122. }
  1123. ]
  1124. },
  1125. {
  1126. "aliasColors": {},
  1127. "bars": false,
  1128. "dashLength": 10,
  1129. "dashes": false,
  1130. "datasource": "${DS_MSSQL_TEST}",
  1131. "fill": 2,
  1132. "gridPos": {
  1133. "h": 8,
  1134. "w": 12,
  1135. "x": 0,
  1136. "y": 46
  1137. },
  1138. "id": 17,
  1139. "legend": {
  1140. "alignAsTable": true,
  1141. "avg": true,
  1142. "current": true,
  1143. "hideEmpty": false,
  1144. "hideZero": false,
  1145. "max": true,
  1146. "min": true,
  1147. "rightSide": true,
  1148. "show": true,
  1149. "total": true,
  1150. "values": true
  1151. },
  1152. "lines": true,
  1153. "linewidth": 2,
  1154. "links": [],
  1155. "nullPointMode": "null",
  1156. "percentage": true,
  1157. "pointradius": 3,
  1158. "points": false,
  1159. "renderer": "flot",
  1160. "seriesOverrides": [],
  1161. "spaceLength": 10,
  1162. "stack": true,
  1163. "steppedLine": false,
  1164. "targets": [
  1165. {
  1166. "alias": "",
  1167. "format": "time_series",
  1168. "rawSql": "SELECT $__timeEpoch(time), measurement + ' - value one' as metric, valueOne FROM metric_values ORDER BY 1",
  1169. "refId": "A"
  1170. },
  1171. {
  1172. "alias": "",
  1173. "format": "time_series",
  1174. "rawSql": "SELECT $__timeEpoch(time), measurement + ' - value two' as metric, valueTwo FROM metric_values ORDER BY 1",
  1175. "refId": "B"
  1176. }
  1177. ],
  1178. "thresholds": [],
  1179. "timeFrom": null,
  1180. "timeShift": null,
  1181. "title": "Multiple series with metric column - stacked percent",
  1182. "tooltip": {
  1183. "shared": true,
  1184. "sort": 0,
  1185. "value_type": "individual"
  1186. },
  1187. "type": "graph",
  1188. "xaxis": {
  1189. "buckets": null,
  1190. "mode": "time",
  1191. "name": null,
  1192. "show": true,
  1193. "values": []
  1194. },
  1195. "yaxes": [
  1196. {
  1197. "format": "short",
  1198. "label": null,
  1199. "logBase": 1,
  1200. "max": null,
  1201. "min": "0",
  1202. "show": true
  1203. },
  1204. {
  1205. "format": "short",
  1206. "label": null,
  1207. "logBase": 1,
  1208. "max": null,
  1209. "min": null,
  1210. "show": true
  1211. }
  1212. ]
  1213. },
  1214. {
  1215. "aliasColors": {},
  1216. "bars": false,
  1217. "dashLength": 10,
  1218. "dashes": false,
  1219. "datasource": "${DS_MSSQL_TEST}",
  1220. "fill": 2,
  1221. "gridPos": {
  1222. "h": 8,
  1223. "w": 12,
  1224. "x": 12,
  1225. "y": 46
  1226. },
  1227. "id": 20,
  1228. "legend": {
  1229. "alignAsTable": true,
  1230. "avg": true,
  1231. "current": true,
  1232. "max": true,
  1233. "min": true,
  1234. "rightSide": true,
  1235. "show": true,
  1236. "total": true,
  1237. "values": true
  1238. },
  1239. "lines": true,
  1240. "linewidth": 2,
  1241. "links": [],
  1242. "nullPointMode": "null",
  1243. "percentage": true,
  1244. "pointradius": 3,
  1245. "points": false,
  1246. "renderer": "flot",
  1247. "seriesOverrides": [],
  1248. "spaceLength": 10,
  1249. "stack": true,
  1250. "steppedLine": false,
  1251. "targets": [
  1252. {
  1253. "alias": "",
  1254. "format": "time_series",
  1255. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values ORDER BY 1",
  1256. "refId": "A"
  1257. }
  1258. ],
  1259. "thresholds": [],
  1260. "timeFrom": null,
  1261. "timeShift": null,
  1262. "title": "Multiple series without metric column - stacked percent",
  1263. "tooltip": {
  1264. "shared": true,
  1265. "sort": 0,
  1266. "value_type": "individual"
  1267. },
  1268. "type": "graph",
  1269. "xaxis": {
  1270. "buckets": null,
  1271. "mode": "time",
  1272. "name": null,
  1273. "show": true,
  1274. "values": []
  1275. },
  1276. "yaxes": [
  1277. {
  1278. "format": "short",
  1279. "label": null,
  1280. "logBase": 1,
  1281. "max": null,
  1282. "min": "0",
  1283. "show": true
  1284. },
  1285. {
  1286. "format": "short",
  1287. "label": null,
  1288. "logBase": 1,
  1289. "max": null,
  1290. "min": null,
  1291. "show": true
  1292. }
  1293. ]
  1294. },
  1295. {
  1296. "aliasColors": {},
  1297. "bars": false,
  1298. "dashLength": 10,
  1299. "dashes": false,
  1300. "datasource": "${DS_MSSQL_TEST}",
  1301. "fill": 2,
  1302. "gridPos": {
  1303. "h": 8,
  1304. "w": 12,
  1305. "x": 0,
  1306. "y": 54
  1307. },
  1308. "id": 29,
  1309. "legend": {
  1310. "alignAsTable": true,
  1311. "avg": true,
  1312. "current": true,
  1313. "hideEmpty": false,
  1314. "hideZero": false,
  1315. "max": true,
  1316. "min": true,
  1317. "rightSide": true,
  1318. "show": true,
  1319. "total": true,
  1320. "values": true
  1321. },
  1322. "lines": true,
  1323. "linewidth": 2,
  1324. "links": [],
  1325. "nullPointMode": "null",
  1326. "percentage": false,
  1327. "pointradius": 3,
  1328. "points": false,
  1329. "renderer": "flot",
  1330. "seriesOverrides": [],
  1331. "spaceLength": 10,
  1332. "stack": false,
  1333. "steppedLine": false,
  1334. "targets": [
  1335. {
  1336. "alias": "",
  1337. "format": "time_series",
  1338. "rawSql": "DECLARE \n @from int = $__unixEpochFrom(),\n @to int = $__unixEpochTo()\n \nEXEC dbo.sp_test_epoch @from, @to",
  1339. "refId": "A"
  1340. }
  1341. ],
  1342. "thresholds": [],
  1343. "timeFrom": null,
  1344. "timeShift": null,
  1345. "title": "Stored procedure support using epoch",
  1346. "tooltip": {
  1347. "shared": true,
  1348. "sort": 0,
  1349. "value_type": "individual"
  1350. },
  1351. "type": "graph",
  1352. "xaxis": {
  1353. "buckets": null,
  1354. "mode": "time",
  1355. "name": null,
  1356. "show": true,
  1357. "values": []
  1358. },
  1359. "yaxes": [
  1360. {
  1361. "format": "short",
  1362. "label": null,
  1363. "logBase": 1,
  1364. "max": null,
  1365. "min": "0",
  1366. "show": true
  1367. },
  1368. {
  1369. "format": "short",
  1370. "label": null,
  1371. "logBase": 1,
  1372. "max": null,
  1373. "min": null,
  1374. "show": true
  1375. }
  1376. ]
  1377. },
  1378. {
  1379. "aliasColors": {},
  1380. "bars": false,
  1381. "dashLength": 10,
  1382. "dashes": false,
  1383. "datasource": "${DS_MSSQL_TEST}",
  1384. "fill": 2,
  1385. "gridPos": {
  1386. "h": 8,
  1387. "w": 12,
  1388. "x": 12,
  1389. "y": 54
  1390. },
  1391. "id": 30,
  1392. "legend": {
  1393. "alignAsTable": true,
  1394. "avg": true,
  1395. "current": true,
  1396. "hideEmpty": false,
  1397. "hideZero": false,
  1398. "max": true,
  1399. "min": true,
  1400. "rightSide": true,
  1401. "show": true,
  1402. "total": true,
  1403. "values": true
  1404. },
  1405. "lines": true,
  1406. "linewidth": 2,
  1407. "links": [],
  1408. "nullPointMode": "null",
  1409. "percentage": false,
  1410. "pointradius": 3,
  1411. "points": false,
  1412. "renderer": "flot",
  1413. "seriesOverrides": [],
  1414. "spaceLength": 10,
  1415. "stack": false,
  1416. "steppedLine": false,
  1417. "targets": [
  1418. {
  1419. "alias": "",
  1420. "format": "time_series",
  1421. "rawSql": "DECLARE \n @from datetime = $__timeFrom(),\n @to datetime = $__timeTo()\n \nEXEC dbo.sp_test_datetime @from, @to",
  1422. "refId": "A"
  1423. }
  1424. ],
  1425. "thresholds": [],
  1426. "timeFrom": null,
  1427. "timeShift": null,
  1428. "title": "Stored procedure support using datetime",
  1429. "tooltip": {
  1430. "shared": true,
  1431. "sort": 0,
  1432. "value_type": "individual"
  1433. },
  1434. "type": "graph",
  1435. "xaxis": {
  1436. "buckets": null,
  1437. "mode": "time",
  1438. "name": null,
  1439. "show": true,
  1440. "values": []
  1441. },
  1442. "yaxes": [
  1443. {
  1444. "format": "short",
  1445. "label": null,
  1446. "logBase": 1,
  1447. "max": null,
  1448. "min": "0",
  1449. "show": true
  1450. },
  1451. {
  1452. "format": "short",
  1453. "label": null,
  1454. "logBase": 1,
  1455. "max": null,
  1456. "min": null,
  1457. "show": true
  1458. }
  1459. ]
  1460. },
  1461. {
  1462. "aliasColors": {},
  1463. "bars": true,
  1464. "dashLength": 10,
  1465. "dashes": false,
  1466. "datasource": "${DS_MSSQL_TEST}",
  1467. "fill": 1,
  1468. "gridPos": {
  1469. "h": 8,
  1470. "w": 12,
  1471. "x": 0,
  1472. "y": 62
  1473. },
  1474. "id": 14,
  1475. "legend": {
  1476. "alignAsTable": true,
  1477. "avg": true,
  1478. "current": true,
  1479. "max": true,
  1480. "min": true,
  1481. "rightSide": true,
  1482. "show": true,
  1483. "total": true,
  1484. "values": true
  1485. },
  1486. "lines": false,
  1487. "linewidth": 1,
  1488. "links": [],
  1489. "nullPointMode": "null",
  1490. "percentage": false,
  1491. "pointradius": 5,
  1492. "points": false,
  1493. "renderer": "flot",
  1494. "seriesOverrides": [],
  1495. "spaceLength": 10,
  1496. "stack": false,
  1497. "steppedLine": false,
  1498. "targets": [
  1499. {
  1500. "alias": "",
  1501. "format": "time_series",
  1502. "rawSql": "SELECT $__timeEpoch(time), measurement + ' - value one' as metric, valueOne FROM metric_values ORDER BY 1",
  1503. "refId": "A"
  1504. },
  1505. {
  1506. "alias": "",
  1507. "format": "time_series",
  1508. "rawSql": "SELECT $__timeEpoch(time), measurement + ' - value two' as metric, valueTwo FROM metric_values ORDER BY 1",
  1509. "refId": "B"
  1510. }
  1511. ],
  1512. "thresholds": [],
  1513. "timeFrom": null,
  1514. "timeShift": null,
  1515. "title": "Multiple series with metric column - series mode",
  1516. "tooltip": {
  1517. "shared": false,
  1518. "sort": 0,
  1519. "value_type": "individual"
  1520. },
  1521. "type": "graph",
  1522. "xaxis": {
  1523. "buckets": null,
  1524. "mode": "series",
  1525. "name": null,
  1526. "show": true,
  1527. "values": [
  1528. "total"
  1529. ]
  1530. },
  1531. "yaxes": [
  1532. {
  1533. "decimals": null,
  1534. "format": "short",
  1535. "label": null,
  1536. "logBase": 1,
  1537. "max": null,
  1538. "min": "0",
  1539. "show": true
  1540. },
  1541. {
  1542. "format": "short",
  1543. "label": null,
  1544. "logBase": 1,
  1545. "max": null,
  1546. "min": null,
  1547. "show": true
  1548. }
  1549. ]
  1550. },
  1551. {
  1552. "aliasColors": {},
  1553. "bars": true,
  1554. "dashLength": 10,
  1555. "dashes": false,
  1556. "datasource": "${DS_MSSQL_TEST}",
  1557. "fill": 1,
  1558. "gridPos": {
  1559. "h": 8,
  1560. "w": 12,
  1561. "x": 12,
  1562. "y": 62
  1563. },
  1564. "id": 15,
  1565. "legend": {
  1566. "alignAsTable": true,
  1567. "avg": true,
  1568. "current": true,
  1569. "max": true,
  1570. "min": true,
  1571. "rightSide": true,
  1572. "show": true,
  1573. "total": true,
  1574. "values": true
  1575. },
  1576. "lines": false,
  1577. "linewidth": 1,
  1578. "links": [],
  1579. "nullPointMode": "null",
  1580. "percentage": false,
  1581. "pointradius": 5,
  1582. "points": false,
  1583. "renderer": "flot",
  1584. "seriesOverrides": [],
  1585. "spaceLength": 10,
  1586. "stack": false,
  1587. "steppedLine": false,
  1588. "targets": [
  1589. {
  1590. "alias": "",
  1591. "format": "time_series",
  1592. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values ORDER BY 1",
  1593. "refId": "A"
  1594. }
  1595. ],
  1596. "thresholds": [],
  1597. "timeFrom": null,
  1598. "timeShift": null,
  1599. "title": "Multiple series without metric column - series mode",
  1600. "tooltip": {
  1601. "shared": false,
  1602. "sort": 0,
  1603. "value_type": "individual"
  1604. },
  1605. "type": "graph",
  1606. "xaxis": {
  1607. "buckets": null,
  1608. "mode": "series",
  1609. "name": null,
  1610. "show": true,
  1611. "values": [
  1612. "total"
  1613. ]
  1614. },
  1615. "yaxes": [
  1616. {
  1617. "format": "short",
  1618. "label": null,
  1619. "logBase": 1,
  1620. "max": null,
  1621. "min": "0",
  1622. "show": true
  1623. },
  1624. {
  1625. "format": "short",
  1626. "label": null,
  1627. "logBase": 1,
  1628. "max": null,
  1629. "min": null,
  1630. "show": true
  1631. }
  1632. ]
  1633. },
  1634. {
  1635. "aliasColors": {},
  1636. "bars": true,
  1637. "dashLength": 10,
  1638. "dashes": false,
  1639. "datasource": "${DS_MSSQL_TEST}",
  1640. "fill": 1,
  1641. "gridPos": {
  1642. "h": 8,
  1643. "w": 12,
  1644. "x": 0,
  1645. "y": 70
  1646. },
  1647. "id": 25,
  1648. "legend": {
  1649. "alignAsTable": true,
  1650. "avg": true,
  1651. "current": true,
  1652. "max": true,
  1653. "min": true,
  1654. "rightSide": true,
  1655. "show": false,
  1656. "total": true,
  1657. "values": true
  1658. },
  1659. "lines": false,
  1660. "linewidth": 1,
  1661. "links": [],
  1662. "nullPointMode": "null",
  1663. "percentage": false,
  1664. "pointradius": 5,
  1665. "points": false,
  1666. "renderer": "flot",
  1667. "seriesOverrides": [],
  1668. "spaceLength": 10,
  1669. "stack": false,
  1670. "steppedLine": false,
  1671. "targets": [
  1672. {
  1673. "alias": "",
  1674. "format": "time_series",
  1675. "rawSql": "SELECT $__timeEpoch(time), measurement + ' - value one' as metric, valueOne FROM metric_values ORDER BY 1",
  1676. "refId": "A"
  1677. },
  1678. {
  1679. "alias": "",
  1680. "format": "time_series",
  1681. "rawSql": "SELECT $__timeEpoch(time), measurement + ' - value two' as metric, valueTwo FROM metric_values ORDER BY 1",
  1682. "refId": "B"
  1683. }
  1684. ],
  1685. "thresholds": [],
  1686. "timeFrom": null,
  1687. "timeShift": null,
  1688. "title": "Multiple series with metric column - histogram",
  1689. "tooltip": {
  1690. "shared": true,
  1691. "sort": 0,
  1692. "value_type": "individual"
  1693. },
  1694. "type": "graph",
  1695. "xaxis": {
  1696. "buckets": 50,
  1697. "mode": "histogram",
  1698. "name": null,
  1699. "show": true,
  1700. "values": [
  1701. "current"
  1702. ]
  1703. },
  1704. "yaxes": [
  1705. {
  1706. "decimals": null,
  1707. "format": "short",
  1708. "label": null,
  1709. "logBase": 1,
  1710. "max": null,
  1711. "min": "0",
  1712. "show": true
  1713. },
  1714. {
  1715. "format": "short",
  1716. "label": null,
  1717. "logBase": 1,
  1718. "max": null,
  1719. "min": null,
  1720. "show": true
  1721. }
  1722. ]
  1723. },
  1724. {
  1725. "aliasColors": {},
  1726. "bars": true,
  1727. "dashLength": 10,
  1728. "dashes": false,
  1729. "datasource": "${DS_MSSQL_TEST}",
  1730. "fill": 1,
  1731. "gridPos": {
  1732. "h": 8,
  1733. "w": 12,
  1734. "x": 12,
  1735. "y": 70
  1736. },
  1737. "id": 22,
  1738. "legend": {
  1739. "alignAsTable": true,
  1740. "avg": true,
  1741. "current": true,
  1742. "max": true,
  1743. "min": true,
  1744. "rightSide": true,
  1745. "show": false,
  1746. "total": true,
  1747. "values": true
  1748. },
  1749. "lines": false,
  1750. "linewidth": 1,
  1751. "links": [],
  1752. "nullPointMode": "null",
  1753. "percentage": false,
  1754. "pointradius": 5,
  1755. "points": false,
  1756. "renderer": "flot",
  1757. "seriesOverrides": [],
  1758. "spaceLength": 10,
  1759. "stack": false,
  1760. "steppedLine": false,
  1761. "targets": [
  1762. {
  1763. "alias": "",
  1764. "format": "time_series",
  1765. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values ORDER BY 1",
  1766. "refId": "A"
  1767. }
  1768. ],
  1769. "thresholds": [],
  1770. "timeFrom": null,
  1771. "timeShift": null,
  1772. "title": "Multiple series without metric column - histogram",
  1773. "tooltip": {
  1774. "shared": true,
  1775. "sort": 0,
  1776. "value_type": "individual"
  1777. },
  1778. "type": "graph",
  1779. "xaxis": {
  1780. "buckets": 100,
  1781. "mode": "histogram",
  1782. "name": null,
  1783. "show": true,
  1784. "values": [
  1785. "total"
  1786. ]
  1787. },
  1788. "yaxes": [
  1789. {
  1790. "format": "short",
  1791. "label": null,
  1792. "logBase": 1,
  1793. "max": null,
  1794. "min": "0",
  1795. "show": true
  1796. },
  1797. {
  1798. "format": "short",
  1799. "label": null,
  1800. "logBase": 1,
  1801. "max": null,
  1802. "min": null,
  1803. "show": true
  1804. }
  1805. ]
  1806. },
  1807. {
  1808. "aliasColors": {},
  1809. "bars": true,
  1810. "dashLength": 10,
  1811. "dashes": false,
  1812. "datasource": "${DS_MSSQL_TEST}",
  1813. "fill": 1,
  1814. "gridPos": {
  1815. "h": 8,
  1816. "w": 12,
  1817. "x": 0,
  1818. "y": 78
  1819. },
  1820. "id": 21,
  1821. "legend": {
  1822. "alignAsTable": true,
  1823. "avg": true,
  1824. "current": true,
  1825. "max": true,
  1826. "min": true,
  1827. "rightSide": true,
  1828. "show": false,
  1829. "total": true,
  1830. "values": true
  1831. },
  1832. "lines": false,
  1833. "linewidth": 1,
  1834. "links": [],
  1835. "nullPointMode": "null",
  1836. "percentage": false,
  1837. "pointradius": 5,
  1838. "points": false,
  1839. "renderer": "flot",
  1840. "seriesOverrides": [],
  1841. "spaceLength": 10,
  1842. "stack": true,
  1843. "steppedLine": false,
  1844. "targets": [
  1845. {
  1846. "alias": "",
  1847. "format": "time_series",
  1848. "rawSql": "SELECT $__timeEpoch(time), measurement + ' - value one' as metric, valueOne FROM metric_values ORDER BY 1",
  1849. "refId": "A"
  1850. },
  1851. {
  1852. "alias": "",
  1853. "format": "time_series",
  1854. "rawSql": "SELECT $__timeEpoch(time), measurement + ' - value two' as metric, valueTwo FROM metric_values ORDER BY 1",
  1855. "refId": "B"
  1856. }
  1857. ],
  1858. "thresholds": [],
  1859. "timeFrom": null,
  1860. "timeShift": null,
  1861. "title": "Multiple series with metric column - histogram stacked",
  1862. "tooltip": {
  1863. "shared": true,
  1864. "sort": 0,
  1865. "value_type": "individual"
  1866. },
  1867. "type": "graph",
  1868. "xaxis": {
  1869. "buckets": 20,
  1870. "mode": "histogram",
  1871. "name": null,
  1872. "show": true,
  1873. "values": [
  1874. "current"
  1875. ]
  1876. },
  1877. "yaxes": [
  1878. {
  1879. "decimals": null,
  1880. "format": "short",
  1881. "label": null,
  1882. "logBase": 1,
  1883. "max": null,
  1884. "min": "0",
  1885. "show": true
  1886. },
  1887. {
  1888. "format": "short",
  1889. "label": null,
  1890. "logBase": 1,
  1891. "max": null,
  1892. "min": null,
  1893. "show": true
  1894. }
  1895. ]
  1896. },
  1897. {
  1898. "aliasColors": {},
  1899. "bars": true,
  1900. "dashLength": 10,
  1901. "dashes": false,
  1902. "datasource": "${DS_MSSQL_TEST}",
  1903. "fill": 1,
  1904. "gridPos": {
  1905. "h": 8,
  1906. "w": 12,
  1907. "x": 12,
  1908. "y": 78
  1909. },
  1910. "id": 26,
  1911. "legend": {
  1912. "alignAsTable": true,
  1913. "avg": true,
  1914. "current": true,
  1915. "max": true,
  1916. "min": true,
  1917. "rightSide": true,
  1918. "show": false,
  1919. "total": true,
  1920. "values": true
  1921. },
  1922. "lines": false,
  1923. "linewidth": 1,
  1924. "links": [],
  1925. "nullPointMode": "null",
  1926. "percentage": false,
  1927. "pointradius": 5,
  1928. "points": false,
  1929. "renderer": "flot",
  1930. "seriesOverrides": [],
  1931. "spaceLength": 10,
  1932. "stack": true,
  1933. "steppedLine": false,
  1934. "targets": [
  1935. {
  1936. "alias": "",
  1937. "format": "time_series",
  1938. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values ORDER BY 1",
  1939. "refId": "A"
  1940. }
  1941. ],
  1942. "thresholds": [],
  1943. "timeFrom": null,
  1944. "timeShift": null,
  1945. "title": "Multiple series without metric column - histogram stacked",
  1946. "tooltip": {
  1947. "shared": true,
  1948. "sort": 0,
  1949. "value_type": "individual"
  1950. },
  1951. "type": "graph",
  1952. "xaxis": {
  1953. "buckets": 20,
  1954. "mode": "histogram",
  1955. "name": null,
  1956. "show": true,
  1957. "values": [
  1958. "total"
  1959. ]
  1960. },
  1961. "yaxes": [
  1962. {
  1963. "format": "short",
  1964. "label": null,
  1965. "logBase": 1,
  1966. "max": null,
  1967. "min": "0",
  1968. "show": true
  1969. },
  1970. {
  1971. "format": "short",
  1972. "label": null,
  1973. "logBase": 1,
  1974. "max": null,
  1975. "min": null,
  1976. "show": true
  1977. }
  1978. ]
  1979. },
  1980. {
  1981. "aliasColors": {},
  1982. "bars": true,
  1983. "dashLength": 10,
  1984. "dashes": false,
  1985. "datasource": "${DS_MSSQL_TEST}",
  1986. "fill": 1,
  1987. "gridPos": {
  1988. "h": 8,
  1989. "w": 12,
  1990. "x": 0,
  1991. "y": 86
  1992. },
  1993. "id": 23,
  1994. "legend": {
  1995. "alignAsTable": true,
  1996. "avg": true,
  1997. "current": true,
  1998. "max": true,
  1999. "min": true,
  2000. "rightSide": true,
  2001. "show": false,
  2002. "total": true,
  2003. "values": true
  2004. },
  2005. "lines": false,
  2006. "linewidth": 1,
  2007. "links": [],
  2008. "nullPointMode": "null",
  2009. "percentage": true,
  2010. "pointradius": 5,
  2011. "points": false,
  2012. "renderer": "flot",
  2013. "seriesOverrides": [],
  2014. "spaceLength": 10,
  2015. "stack": true,
  2016. "steppedLine": false,
  2017. "targets": [
  2018. {
  2019. "alias": "",
  2020. "format": "time_series",
  2021. "rawSql": "SELECT $__timeEpoch(time), measurement + ' - value one' as metric, valueOne FROM metric_values ORDER BY 1",
  2022. "refId": "A"
  2023. },
  2024. {
  2025. "alias": "",
  2026. "format": "time_series",
  2027. "rawSql": "SELECT $__timeEpoch(time), measurement + ' - value two' as metric, valueTwo FROM metric_values ORDER BY 1",
  2028. "refId": "B"
  2029. }
  2030. ],
  2031. "thresholds": [],
  2032. "timeFrom": null,
  2033. "timeShift": null,
  2034. "title": "Multiple series with metric column - histogram stacked percent",
  2035. "tooltip": {
  2036. "shared": true,
  2037. "sort": 0,
  2038. "value_type": "individual"
  2039. },
  2040. "type": "graph",
  2041. "xaxis": {
  2042. "buckets": 20,
  2043. "mode": "histogram",
  2044. "name": null,
  2045. "show": true,
  2046. "values": [
  2047. "current"
  2048. ]
  2049. },
  2050. "yaxes": [
  2051. {
  2052. "decimals": null,
  2053. "format": "short",
  2054. "label": null,
  2055. "logBase": 1,
  2056. "max": null,
  2057. "min": "0",
  2058. "show": true
  2059. },
  2060. {
  2061. "format": "short",
  2062. "label": null,
  2063. "logBase": 1,
  2064. "max": null,
  2065. "min": null,
  2066. "show": true
  2067. }
  2068. ]
  2069. },
  2070. {
  2071. "aliasColors": {},
  2072. "bars": true,
  2073. "dashLength": 10,
  2074. "dashes": false,
  2075. "datasource": "${DS_MSSQL_TEST}",
  2076. "fill": 1,
  2077. "gridPos": {
  2078. "h": 8,
  2079. "w": 12,
  2080. "x": 12,
  2081. "y": 86
  2082. },
  2083. "id": 24,
  2084. "legend": {
  2085. "alignAsTable": true,
  2086. "avg": true,
  2087. "current": true,
  2088. "max": true,
  2089. "min": true,
  2090. "rightSide": true,
  2091. "show": false,
  2092. "total": true,
  2093. "values": true
  2094. },
  2095. "lines": false,
  2096. "linewidth": 1,
  2097. "links": [],
  2098. "nullPointMode": "null",
  2099. "percentage": true,
  2100. "pointradius": 5,
  2101. "points": false,
  2102. "renderer": "flot",
  2103. "seriesOverrides": [],
  2104. "spaceLength": 10,
  2105. "stack": true,
  2106. "steppedLine": false,
  2107. "targets": [
  2108. {
  2109. "alias": "",
  2110. "format": "time_series",
  2111. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values ORDER BY 1",
  2112. "refId": "A"
  2113. }
  2114. ],
  2115. "thresholds": [],
  2116. "timeFrom": null,
  2117. "timeShift": null,
  2118. "title": "Multiple series without metric column - histogram stacked percent",
  2119. "tooltip": {
  2120. "shared": true,
  2121. "sort": 0,
  2122. "value_type": "individual"
  2123. },
  2124. "type": "graph",
  2125. "xaxis": {
  2126. "buckets": 20,
  2127. "mode": "histogram",
  2128. "name": null,
  2129. "show": true,
  2130. "values": [
  2131. "total"
  2132. ]
  2133. },
  2134. "yaxes": [
  2135. {
  2136. "format": "short",
  2137. "label": null,
  2138. "logBase": 1,
  2139. "max": null,
  2140. "min": "0",
  2141. "show": true
  2142. },
  2143. {
  2144. "format": "short",
  2145. "label": null,
  2146. "logBase": 1,
  2147. "max": null,
  2148. "min": null,
  2149. "show": true
  2150. }
  2151. ]
  2152. }
  2153. ],
  2154. "refresh": false,
  2155. "schemaVersion": 16,
  2156. "style": "dark",
  2157. "tags": [],
  2158. "templating": {
  2159. "list": [
  2160. {
  2161. "auto": false,
  2162. "auto_count": 30,
  2163. "auto_min": "10s",
  2164. "current": {
  2165. "text": "10m",
  2166. "value": "10m"
  2167. },
  2168. "hide": 0,
  2169. "label": "Interval",
  2170. "name": "summarize",
  2171. "options": [
  2172. {
  2173. "selected": false,
  2174. "text": "1s",
  2175. "value": "1s"
  2176. },
  2177. {
  2178. "selected": false,
  2179. "text": "10s",
  2180. "value": "10s"
  2181. },
  2182. {
  2183. "selected": false,
  2184. "text": "30s",
  2185. "value": "30s"
  2186. },
  2187. {
  2188. "selected": false,
  2189. "text": "1m",
  2190. "value": "1m"
  2191. },
  2192. {
  2193. "selected": false,
  2194. "text": "5m",
  2195. "value": "5m"
  2196. },
  2197. {
  2198. "selected": true,
  2199. "text": "10m",
  2200. "value": "10m"
  2201. }
  2202. ],
  2203. "query": "1s,10s,30s,1m,5m,10m",
  2204. "refresh": 2,
  2205. "type": "interval"
  2206. }
  2207. ]
  2208. },
  2209. "time": {
  2210. "from": "2018-03-15T12:30:00.000Z",
  2211. "to": "2018-03-15T13:55:00.000Z"
  2212. },
  2213. "timepicker": {
  2214. "refresh_intervals": [
  2215. "5s",
  2216. "10s",
  2217. "30s",
  2218. "1m",
  2219. "5m",
  2220. "15m",
  2221. "30m",
  2222. "1h",
  2223. "2h",
  2224. "1d"
  2225. ],
  2226. "time_options": [
  2227. "5m",
  2228. "15m",
  2229. "1h",
  2230. "6h",
  2231. "12h",
  2232. "24h",
  2233. "2d",
  2234. "7d",
  2235. "30d"
  2236. ]
  2237. },
  2238. "timezone": "",
  2239. "title": "Microsoft SQL Server Data Source Test",
  2240. "uid": "GlAqcPgmz",
  2241. "version": 37
  2242. }