datasource_tests_mssql_unittest.json 61 KB

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