datasource_tests_mssql_unittest.json 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546
  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": 1532949769359,
  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 as metric, \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'), \n measurement \nORDER BY 1",
  875. "refId": "A"
  876. }
  877. ],
  878. "thresholds": [],
  879. "timeFrom": null,
  880. "timeShift": null,
  881. "title": "Multiple series with metric column using timeGroup macro ($summarize)",
  882. "tooltip": {
  883. "shared": true,
  884. "sort": 0,
  885. "value_type": "individual"
  886. },
  887. "type": "graph",
  888. "xaxis": {
  889. "buckets": null,
  890. "mode": "time",
  891. "name": null,
  892. "show": true,
  893. "values": []
  894. },
  895. "yaxes": [
  896. {
  897. "format": "short",
  898. "label": null,
  899. "logBase": 1,
  900. "max": null,
  901. "min": "0",
  902. "show": true
  903. },
  904. {
  905. "format": "short",
  906. "label": null,
  907. "logBase": 1,
  908. "max": null,
  909. "min": null,
  910. "show": true
  911. }
  912. ],
  913. "yaxis": {
  914. "align": false,
  915. "alignLevel": null
  916. }
  917. },
  918. {
  919. "aliasColors": {},
  920. "bars": false,
  921. "dashLength": 10,
  922. "dashes": false,
  923. "datasource": "gdev-mssql-ds-tests",
  924. "fill": 2,
  925. "gridPos": {
  926. "h": 8,
  927. "w": 12,
  928. "x": 12,
  929. "y": 25
  930. },
  931. "id": 5,
  932. "legend": {
  933. "alignAsTable": true,
  934. "avg": true,
  935. "current": true,
  936. "max": true,
  937. "min": true,
  938. "rightSide": true,
  939. "show": true,
  940. "total": true,
  941. "values": true
  942. },
  943. "lines": true,
  944. "linewidth": 2,
  945. "links": [],
  946. "nullPointMode": "null",
  947. "percentage": false,
  948. "pointradius": 3,
  949. "points": false,
  950. "renderer": "flot",
  951. "seriesOverrides": [
  952. {
  953. "alias": "MovingAverageValueOne",
  954. "dashes": true,
  955. "lines": false
  956. },
  957. {
  958. "alias": "MovingAverageValueTwo",
  959. "dashes": true,
  960. "lines": false,
  961. "yaxis": 1
  962. }
  963. ],
  964. "spaceLength": 10,
  965. "stack": false,
  966. "steppedLine": false,
  967. "targets": [
  968. {
  969. "alias": "",
  970. "format": "time_series",
  971. "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",
  972. "refId": "A"
  973. },
  974. {
  975. "alias": "",
  976. "format": "time_series",
  977. "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",
  978. "refId": "B"
  979. }
  980. ],
  981. "thresholds": [],
  982. "timeFrom": null,
  983. "timeShift": null,
  984. "title": "Multiple series without metric column using timeGroup macro ($summarize)",
  985. "tooltip": {
  986. "shared": true,
  987. "sort": 0,
  988. "value_type": "individual"
  989. },
  990. "type": "graph",
  991. "xaxis": {
  992. "buckets": null,
  993. "mode": "time",
  994. "name": null,
  995. "show": true,
  996. "values": []
  997. },
  998. "yaxes": [
  999. {
  1000. "format": "short",
  1001. "label": null,
  1002. "logBase": 1,
  1003. "max": null,
  1004. "min": "0",
  1005. "show": true
  1006. },
  1007. {
  1008. "format": "short",
  1009. "label": null,
  1010. "logBase": 1,
  1011. "max": null,
  1012. "min": null,
  1013. "show": true
  1014. }
  1015. ],
  1016. "yaxis": {
  1017. "align": false,
  1018. "alignLevel": null
  1019. }
  1020. },
  1021. {
  1022. "aliasColors": {},
  1023. "bars": false,
  1024. "dashLength": 10,
  1025. "dashes": false,
  1026. "datasource": "gdev-mssql-ds-tests",
  1027. "fill": 2,
  1028. "gridPos": {
  1029. "h": 8,
  1030. "w": 12,
  1031. "x": 0,
  1032. "y": 33
  1033. },
  1034. "id": 4,
  1035. "legend": {
  1036. "alignAsTable": true,
  1037. "avg": true,
  1038. "current": true,
  1039. "hideEmpty": false,
  1040. "hideZero": false,
  1041. "max": true,
  1042. "min": true,
  1043. "rightSide": true,
  1044. "show": true,
  1045. "total": true,
  1046. "values": true
  1047. },
  1048. "lines": true,
  1049. "linewidth": 2,
  1050. "links": [],
  1051. "nullPointMode": "null",
  1052. "percentage": false,
  1053. "pointradius": 3,
  1054. "points": false,
  1055. "renderer": "flot",
  1056. "seriesOverrides": [],
  1057. "spaceLength": 10,
  1058. "stack": false,
  1059. "steppedLine": false,
  1060. "targets": [
  1061. {
  1062. "alias": "",
  1063. "format": "time_series",
  1064. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1065. "refId": "A"
  1066. }
  1067. ],
  1068. "thresholds": [],
  1069. "timeFrom": null,
  1070. "timeShift": null,
  1071. "title": "Multiple series with metric column",
  1072. "tooltip": {
  1073. "shared": true,
  1074. "sort": 0,
  1075. "value_type": "individual"
  1076. },
  1077. "type": "graph",
  1078. "xaxis": {
  1079. "buckets": null,
  1080. "mode": "time",
  1081. "name": null,
  1082. "show": true,
  1083. "values": []
  1084. },
  1085. "yaxes": [
  1086. {
  1087. "format": "short",
  1088. "label": null,
  1089. "logBase": 1,
  1090. "max": null,
  1091. "min": "0",
  1092. "show": true
  1093. },
  1094. {
  1095. "format": "short",
  1096. "label": null,
  1097. "logBase": 1,
  1098. "max": null,
  1099. "min": null,
  1100. "show": true
  1101. }
  1102. ],
  1103. "yaxis": {
  1104. "align": false,
  1105. "alignLevel": null
  1106. }
  1107. },
  1108. {
  1109. "aliasColors": {},
  1110. "bars": false,
  1111. "dashLength": 10,
  1112. "dashes": false,
  1113. "datasource": "gdev-mssql-ds-tests",
  1114. "fill": 2,
  1115. "gridPos": {
  1116. "h": 8,
  1117. "w": 12,
  1118. "x": 12,
  1119. "y": 33
  1120. },
  1121. "id": 28,
  1122. "legend": {
  1123. "alignAsTable": true,
  1124. "avg": true,
  1125. "current": true,
  1126. "max": true,
  1127. "min": true,
  1128. "rightSide": true,
  1129. "show": true,
  1130. "total": true,
  1131. "values": true
  1132. },
  1133. "lines": true,
  1134. "linewidth": 2,
  1135. "links": [],
  1136. "nullPointMode": "null",
  1137. "percentage": false,
  1138. "pointradius": 3,
  1139. "points": false,
  1140. "renderer": "flot",
  1141. "seriesOverrides": [],
  1142. "spaceLength": 10,
  1143. "stack": false,
  1144. "steppedLine": false,
  1145. "targets": [
  1146. {
  1147. "alias": "",
  1148. "format": "time_series",
  1149. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values ORDER BY 1",
  1150. "refId": "A"
  1151. }
  1152. ],
  1153. "thresholds": [],
  1154. "timeFrom": null,
  1155. "timeShift": null,
  1156. "title": "Multiple series without metric column",
  1157. "tooltip": {
  1158. "shared": true,
  1159. "sort": 0,
  1160. "value_type": "individual"
  1161. },
  1162. "type": "graph",
  1163. "xaxis": {
  1164. "buckets": null,
  1165. "mode": "time",
  1166. "name": null,
  1167. "show": true,
  1168. "values": []
  1169. },
  1170. "yaxes": [
  1171. {
  1172. "format": "short",
  1173. "label": null,
  1174. "logBase": 1,
  1175. "max": null,
  1176. "min": "0",
  1177. "show": true
  1178. },
  1179. {
  1180. "format": "short",
  1181. "label": null,
  1182. "logBase": 1,
  1183. "max": null,
  1184. "min": null,
  1185. "show": true
  1186. }
  1187. ],
  1188. "yaxis": {
  1189. "align": false,
  1190. "alignLevel": null
  1191. }
  1192. },
  1193. {
  1194. "aliasColors": {},
  1195. "bars": false,
  1196. "dashLength": 10,
  1197. "dashes": false,
  1198. "datasource": "gdev-mssql-ds-tests",
  1199. "fill": 2,
  1200. "gridPos": {
  1201. "h": 8,
  1202. "w": 12,
  1203. "x": 0,
  1204. "y": 41
  1205. },
  1206. "id": 19,
  1207. "legend": {
  1208. "alignAsTable": true,
  1209. "avg": true,
  1210. "current": true,
  1211. "hideEmpty": false,
  1212. "hideZero": false,
  1213. "max": true,
  1214. "min": true,
  1215. "rightSide": true,
  1216. "show": true,
  1217. "total": true,
  1218. "values": true
  1219. },
  1220. "lines": true,
  1221. "linewidth": 2,
  1222. "links": [],
  1223. "nullPointMode": "null",
  1224. "percentage": false,
  1225. "pointradius": 3,
  1226. "points": false,
  1227. "renderer": "flot",
  1228. "seriesOverrides": [],
  1229. "spaceLength": 10,
  1230. "stack": true,
  1231. "steppedLine": false,
  1232. "targets": [
  1233. {
  1234. "alias": "",
  1235. "format": "time_series",
  1236. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1237. "refId": "A"
  1238. }
  1239. ],
  1240. "thresholds": [],
  1241. "timeFrom": null,
  1242. "timeShift": null,
  1243. "title": "Multiple series with metric column - stacked",
  1244. "tooltip": {
  1245. "shared": true,
  1246. "sort": 0,
  1247. "value_type": "individual"
  1248. },
  1249. "type": "graph",
  1250. "xaxis": {
  1251. "buckets": null,
  1252. "mode": "time",
  1253. "name": null,
  1254. "show": true,
  1255. "values": []
  1256. },
  1257. "yaxes": [
  1258. {
  1259. "format": "short",
  1260. "label": null,
  1261. "logBase": 1,
  1262. "max": null,
  1263. "min": "0",
  1264. "show": true
  1265. },
  1266. {
  1267. "format": "short",
  1268. "label": null,
  1269. "logBase": 1,
  1270. "max": null,
  1271. "min": null,
  1272. "show": true
  1273. }
  1274. ],
  1275. "yaxis": {
  1276. "align": false,
  1277. "alignLevel": null
  1278. }
  1279. },
  1280. {
  1281. "aliasColors": {},
  1282. "bars": false,
  1283. "dashLength": 10,
  1284. "dashes": false,
  1285. "datasource": "gdev-mssql-ds-tests",
  1286. "fill": 2,
  1287. "gridPos": {
  1288. "h": 8,
  1289. "w": 12,
  1290. "x": 12,
  1291. "y": 41
  1292. },
  1293. "id": 18,
  1294. "legend": {
  1295. "alignAsTable": true,
  1296. "avg": true,
  1297. "current": true,
  1298. "max": true,
  1299. "min": true,
  1300. "rightSide": true,
  1301. "show": true,
  1302. "total": true,
  1303. "values": true
  1304. },
  1305. "lines": true,
  1306. "linewidth": 2,
  1307. "links": [],
  1308. "nullPointMode": "null",
  1309. "percentage": false,
  1310. "pointradius": 3,
  1311. "points": false,
  1312. "renderer": "flot",
  1313. "seriesOverrides": [],
  1314. "spaceLength": 10,
  1315. "stack": true,
  1316. "steppedLine": false,
  1317. "targets": [
  1318. {
  1319. "alias": "",
  1320. "format": "time_series",
  1321. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1322. "refId": "A"
  1323. }
  1324. ],
  1325. "thresholds": [],
  1326. "timeFrom": null,
  1327. "timeShift": null,
  1328. "title": "Multiple series without metric column - stacked",
  1329. "tooltip": {
  1330. "shared": true,
  1331. "sort": 0,
  1332. "value_type": "individual"
  1333. },
  1334. "type": "graph",
  1335. "xaxis": {
  1336. "buckets": null,
  1337. "mode": "time",
  1338. "name": null,
  1339. "show": true,
  1340. "values": []
  1341. },
  1342. "yaxes": [
  1343. {
  1344. "format": "short",
  1345. "label": null,
  1346. "logBase": 1,
  1347. "max": null,
  1348. "min": "0",
  1349. "show": true
  1350. },
  1351. {
  1352. "format": "short",
  1353. "label": null,
  1354. "logBase": 1,
  1355. "max": null,
  1356. "min": null,
  1357. "show": true
  1358. }
  1359. ],
  1360. "yaxis": {
  1361. "align": false,
  1362. "alignLevel": null
  1363. }
  1364. },
  1365. {
  1366. "aliasColors": {},
  1367. "bars": false,
  1368. "dashLength": 10,
  1369. "dashes": false,
  1370. "datasource": "gdev-mssql-ds-tests",
  1371. "fill": 2,
  1372. "gridPos": {
  1373. "h": 8,
  1374. "w": 12,
  1375. "x": 0,
  1376. "y": 49
  1377. },
  1378. "id": 17,
  1379. "legend": {
  1380. "alignAsTable": true,
  1381. "avg": true,
  1382. "current": true,
  1383. "hideEmpty": false,
  1384. "hideZero": false,
  1385. "max": true,
  1386. "min": true,
  1387. "rightSide": true,
  1388. "show": true,
  1389. "total": true,
  1390. "values": true
  1391. },
  1392. "lines": true,
  1393. "linewidth": 2,
  1394. "links": [],
  1395. "nullPointMode": "null",
  1396. "percentage": true,
  1397. "pointradius": 3,
  1398. "points": false,
  1399. "renderer": "flot",
  1400. "seriesOverrides": [],
  1401. "spaceLength": 10,
  1402. "stack": true,
  1403. "steppedLine": false,
  1404. "targets": [
  1405. {
  1406. "alias": "",
  1407. "format": "time_series",
  1408. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1409. "refId": "A"
  1410. }
  1411. ],
  1412. "thresholds": [],
  1413. "timeFrom": null,
  1414. "timeShift": null,
  1415. "title": "Multiple series with metric column - stacked percent",
  1416. "tooltip": {
  1417. "shared": true,
  1418. "sort": 0,
  1419. "value_type": "individual"
  1420. },
  1421. "type": "graph",
  1422. "xaxis": {
  1423. "buckets": null,
  1424. "mode": "time",
  1425. "name": null,
  1426. "show": true,
  1427. "values": []
  1428. },
  1429. "yaxes": [
  1430. {
  1431. "format": "short",
  1432. "label": null,
  1433. "logBase": 1,
  1434. "max": null,
  1435. "min": "0",
  1436. "show": true
  1437. },
  1438. {
  1439. "format": "short",
  1440. "label": null,
  1441. "logBase": 1,
  1442. "max": null,
  1443. "min": null,
  1444. "show": true
  1445. }
  1446. ],
  1447. "yaxis": {
  1448. "align": false,
  1449. "alignLevel": null
  1450. }
  1451. },
  1452. {
  1453. "aliasColors": {},
  1454. "bars": false,
  1455. "dashLength": 10,
  1456. "dashes": false,
  1457. "datasource": "gdev-mssql-ds-tests",
  1458. "fill": 2,
  1459. "gridPos": {
  1460. "h": 8,
  1461. "w": 12,
  1462. "x": 12,
  1463. "y": 49
  1464. },
  1465. "id": 20,
  1466. "legend": {
  1467. "alignAsTable": true,
  1468. "avg": true,
  1469. "current": true,
  1470. "max": true,
  1471. "min": true,
  1472. "rightSide": true,
  1473. "show": true,
  1474. "total": true,
  1475. "values": true
  1476. },
  1477. "lines": true,
  1478. "linewidth": 2,
  1479. "links": [],
  1480. "nullPointMode": "null",
  1481. "percentage": true,
  1482. "pointradius": 3,
  1483. "points": false,
  1484. "renderer": "flot",
  1485. "seriesOverrides": [],
  1486. "spaceLength": 10,
  1487. "stack": true,
  1488. "steppedLine": false,
  1489. "targets": [
  1490. {
  1491. "alias": "",
  1492. "format": "time_series",
  1493. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1494. "refId": "A"
  1495. }
  1496. ],
  1497. "thresholds": [],
  1498. "timeFrom": null,
  1499. "timeShift": null,
  1500. "title": "Multiple series without metric column - stacked percent",
  1501. "tooltip": {
  1502. "shared": true,
  1503. "sort": 0,
  1504. "value_type": "individual"
  1505. },
  1506. "type": "graph",
  1507. "xaxis": {
  1508. "buckets": null,
  1509. "mode": "time",
  1510. "name": null,
  1511. "show": true,
  1512. "values": []
  1513. },
  1514. "yaxes": [
  1515. {
  1516. "format": "short",
  1517. "label": null,
  1518. "logBase": 1,
  1519. "max": null,
  1520. "min": "0",
  1521. "show": true
  1522. },
  1523. {
  1524. "format": "short",
  1525. "label": null,
  1526. "logBase": 1,
  1527. "max": null,
  1528. "min": null,
  1529. "show": true
  1530. }
  1531. ],
  1532. "yaxis": {
  1533. "align": false,
  1534. "alignLevel": null
  1535. }
  1536. },
  1537. {
  1538. "aliasColors": {},
  1539. "bars": false,
  1540. "dashLength": 10,
  1541. "dashes": false,
  1542. "datasource": "gdev-mssql-ds-tests",
  1543. "fill": 2,
  1544. "gridPos": {
  1545. "h": 8,
  1546. "w": 12,
  1547. "x": 0,
  1548. "y": 57
  1549. },
  1550. "id": 29,
  1551. "legend": {
  1552. "alignAsTable": true,
  1553. "avg": true,
  1554. "current": true,
  1555. "hideEmpty": false,
  1556. "hideZero": false,
  1557. "max": true,
  1558. "min": true,
  1559. "rightSide": true,
  1560. "show": true,
  1561. "total": true,
  1562. "values": true
  1563. },
  1564. "lines": true,
  1565. "linewidth": 2,
  1566. "links": [],
  1567. "nullPointMode": "null",
  1568. "percentage": false,
  1569. "pointradius": 3,
  1570. "points": false,
  1571. "renderer": "flot",
  1572. "seriesOverrides": [],
  1573. "spaceLength": 10,
  1574. "stack": false,
  1575. "steppedLine": false,
  1576. "targets": [
  1577. {
  1578. "alias": "",
  1579. "format": "time_series",
  1580. "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",
  1581. "refId": "A"
  1582. }
  1583. ],
  1584. "thresholds": [],
  1585. "timeFrom": null,
  1586. "timeShift": null,
  1587. "title": "Stored procedure support using epoch",
  1588. "tooltip": {
  1589. "shared": true,
  1590. "sort": 0,
  1591. "value_type": "individual"
  1592. },
  1593. "type": "graph",
  1594. "xaxis": {
  1595. "buckets": null,
  1596. "mode": "time",
  1597. "name": null,
  1598. "show": true,
  1599. "values": []
  1600. },
  1601. "yaxes": [
  1602. {
  1603. "format": "short",
  1604. "label": null,
  1605. "logBase": 1,
  1606. "max": null,
  1607. "min": "0",
  1608. "show": true
  1609. },
  1610. {
  1611. "format": "short",
  1612. "label": null,
  1613. "logBase": 1,
  1614. "max": null,
  1615. "min": null,
  1616. "show": true
  1617. }
  1618. ],
  1619. "yaxis": {
  1620. "align": false,
  1621. "alignLevel": null
  1622. }
  1623. },
  1624. {
  1625. "aliasColors": {},
  1626. "bars": false,
  1627. "dashLength": 10,
  1628. "dashes": false,
  1629. "datasource": "gdev-mssql-ds-tests",
  1630. "fill": 2,
  1631. "gridPos": {
  1632. "h": 8,
  1633. "w": 12,
  1634. "x": 12,
  1635. "y": 57
  1636. },
  1637. "id": 30,
  1638. "legend": {
  1639. "alignAsTable": true,
  1640. "avg": true,
  1641. "current": true,
  1642. "hideEmpty": false,
  1643. "hideZero": false,
  1644. "max": true,
  1645. "min": true,
  1646. "rightSide": true,
  1647. "show": true,
  1648. "total": true,
  1649. "values": true
  1650. },
  1651. "lines": true,
  1652. "linewidth": 2,
  1653. "links": [],
  1654. "nullPointMode": "null",
  1655. "percentage": false,
  1656. "pointradius": 3,
  1657. "points": false,
  1658. "renderer": "flot",
  1659. "seriesOverrides": [],
  1660. "spaceLength": 10,
  1661. "stack": false,
  1662. "steppedLine": false,
  1663. "targets": [
  1664. {
  1665. "alias": "",
  1666. "format": "time_series",
  1667. "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",
  1668. "refId": "A"
  1669. }
  1670. ],
  1671. "thresholds": [],
  1672. "timeFrom": null,
  1673. "timeShift": null,
  1674. "title": "Stored procedure support using datetime",
  1675. "tooltip": {
  1676. "shared": true,
  1677. "sort": 0,
  1678. "value_type": "individual"
  1679. },
  1680. "type": "graph",
  1681. "xaxis": {
  1682. "buckets": null,
  1683. "mode": "time",
  1684. "name": null,
  1685. "show": true,
  1686. "values": []
  1687. },
  1688. "yaxes": [
  1689. {
  1690. "format": "short",
  1691. "label": null,
  1692. "logBase": 1,
  1693. "max": null,
  1694. "min": "0",
  1695. "show": true
  1696. },
  1697. {
  1698. "format": "short",
  1699. "label": null,
  1700. "logBase": 1,
  1701. "max": null,
  1702. "min": null,
  1703. "show": true
  1704. }
  1705. ],
  1706. "yaxis": {
  1707. "align": false,
  1708. "alignLevel": null
  1709. }
  1710. },
  1711. {
  1712. "aliasColors": {},
  1713. "bars": true,
  1714. "dashLength": 10,
  1715. "dashes": false,
  1716. "datasource": "gdev-mssql-ds-tests",
  1717. "fill": 1,
  1718. "gridPos": {
  1719. "h": 8,
  1720. "w": 12,
  1721. "x": 0,
  1722. "y": 65
  1723. },
  1724. "id": 14,
  1725. "legend": {
  1726. "alignAsTable": true,
  1727. "avg": true,
  1728. "current": true,
  1729. "max": true,
  1730. "min": true,
  1731. "rightSide": true,
  1732. "show": true,
  1733. "total": true,
  1734. "values": true
  1735. },
  1736. "lines": false,
  1737. "linewidth": 1,
  1738. "links": [],
  1739. "nullPointMode": "null",
  1740. "percentage": false,
  1741. "pointradius": 5,
  1742. "points": false,
  1743. "renderer": "flot",
  1744. "seriesOverrides": [],
  1745. "spaceLength": 10,
  1746. "stack": false,
  1747. "steppedLine": false,
  1748. "targets": [
  1749. {
  1750. "alias": "",
  1751. "format": "time_series",
  1752. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1753. "refId": "A"
  1754. }
  1755. ],
  1756. "thresholds": [],
  1757. "timeFrom": null,
  1758. "timeShift": null,
  1759. "title": "Multiple series with metric column - series mode",
  1760. "tooltip": {
  1761. "shared": false,
  1762. "sort": 0,
  1763. "value_type": "individual"
  1764. },
  1765. "type": "graph",
  1766. "xaxis": {
  1767. "buckets": null,
  1768. "mode": "series",
  1769. "name": null,
  1770. "show": true,
  1771. "values": [
  1772. "total"
  1773. ]
  1774. },
  1775. "yaxes": [
  1776. {
  1777. "decimals": null,
  1778. "format": "short",
  1779. "label": null,
  1780. "logBase": 1,
  1781. "max": null,
  1782. "min": "0",
  1783. "show": true
  1784. },
  1785. {
  1786. "format": "short",
  1787. "label": null,
  1788. "logBase": 1,
  1789. "max": null,
  1790. "min": null,
  1791. "show": true
  1792. }
  1793. ],
  1794. "yaxis": {
  1795. "align": false,
  1796. "alignLevel": null
  1797. }
  1798. },
  1799. {
  1800. "aliasColors": {},
  1801. "bars": true,
  1802. "dashLength": 10,
  1803. "dashes": false,
  1804. "datasource": "gdev-mssql-ds-tests",
  1805. "fill": 1,
  1806. "gridPos": {
  1807. "h": 8,
  1808. "w": 12,
  1809. "x": 12,
  1810. "y": 65
  1811. },
  1812. "id": 15,
  1813. "legend": {
  1814. "alignAsTable": true,
  1815. "avg": true,
  1816. "current": true,
  1817. "max": true,
  1818. "min": true,
  1819. "rightSide": true,
  1820. "show": true,
  1821. "total": true,
  1822. "values": true
  1823. },
  1824. "lines": false,
  1825. "linewidth": 1,
  1826. "links": [],
  1827. "nullPointMode": "null",
  1828. "percentage": false,
  1829. "pointradius": 5,
  1830. "points": false,
  1831. "renderer": "flot",
  1832. "seriesOverrides": [],
  1833. "spaceLength": 10,
  1834. "stack": false,
  1835. "steppedLine": false,
  1836. "targets": [
  1837. {
  1838. "alias": "",
  1839. "format": "time_series",
  1840. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1841. "refId": "A"
  1842. }
  1843. ],
  1844. "thresholds": [],
  1845. "timeFrom": null,
  1846. "timeShift": null,
  1847. "title": "Multiple series without metric column - series mode",
  1848. "tooltip": {
  1849. "shared": false,
  1850. "sort": 0,
  1851. "value_type": "individual"
  1852. },
  1853. "type": "graph",
  1854. "xaxis": {
  1855. "buckets": null,
  1856. "mode": "series",
  1857. "name": null,
  1858. "show": true,
  1859. "values": [
  1860. "total"
  1861. ]
  1862. },
  1863. "yaxes": [
  1864. {
  1865. "format": "short",
  1866. "label": null,
  1867. "logBase": 1,
  1868. "max": null,
  1869. "min": "0",
  1870. "show": true
  1871. },
  1872. {
  1873. "format": "short",
  1874. "label": null,
  1875. "logBase": 1,
  1876. "max": null,
  1877. "min": null,
  1878. "show": true
  1879. }
  1880. ],
  1881. "yaxis": {
  1882. "align": false,
  1883. "alignLevel": null
  1884. }
  1885. },
  1886. {
  1887. "aliasColors": {},
  1888. "bars": true,
  1889. "dashLength": 10,
  1890. "dashes": false,
  1891. "datasource": "gdev-mssql-ds-tests",
  1892. "fill": 1,
  1893. "gridPos": {
  1894. "h": 8,
  1895. "w": 12,
  1896. "x": 0,
  1897. "y": 73
  1898. },
  1899. "id": 25,
  1900. "legend": {
  1901. "alignAsTable": true,
  1902. "avg": true,
  1903. "current": true,
  1904. "max": true,
  1905. "min": true,
  1906. "rightSide": true,
  1907. "show": false,
  1908. "total": true,
  1909. "values": true
  1910. },
  1911. "lines": false,
  1912. "linewidth": 1,
  1913. "links": [],
  1914. "nullPointMode": "null",
  1915. "percentage": false,
  1916. "pointradius": 5,
  1917. "points": false,
  1918. "renderer": "flot",
  1919. "seriesOverrides": [],
  1920. "spaceLength": 10,
  1921. "stack": false,
  1922. "steppedLine": false,
  1923. "targets": [
  1924. {
  1925. "alias": "",
  1926. "format": "time_series",
  1927. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1928. "refId": "A"
  1929. }
  1930. ],
  1931. "thresholds": [],
  1932. "timeFrom": null,
  1933. "timeShift": null,
  1934. "title": "Multiple series with metric column - histogram",
  1935. "tooltip": {
  1936. "shared": true,
  1937. "sort": 0,
  1938. "value_type": "individual"
  1939. },
  1940. "type": "graph",
  1941. "xaxis": {
  1942. "buckets": 50,
  1943. "mode": "histogram",
  1944. "name": null,
  1945. "show": true,
  1946. "values": [
  1947. "current"
  1948. ]
  1949. },
  1950. "yaxes": [
  1951. {
  1952. "decimals": null,
  1953. "format": "short",
  1954. "label": null,
  1955. "logBase": 1,
  1956. "max": null,
  1957. "min": "0",
  1958. "show": true
  1959. },
  1960. {
  1961. "format": "short",
  1962. "label": null,
  1963. "logBase": 1,
  1964. "max": null,
  1965. "min": null,
  1966. "show": true
  1967. }
  1968. ],
  1969. "yaxis": {
  1970. "align": false,
  1971. "alignLevel": null
  1972. }
  1973. },
  1974. {
  1975. "aliasColors": {},
  1976. "bars": true,
  1977. "dashLength": 10,
  1978. "dashes": false,
  1979. "datasource": "gdev-mssql-ds-tests",
  1980. "fill": 1,
  1981. "gridPos": {
  1982. "h": 8,
  1983. "w": 12,
  1984. "x": 12,
  1985. "y": 73
  1986. },
  1987. "id": 22,
  1988. "legend": {
  1989. "alignAsTable": true,
  1990. "avg": true,
  1991. "current": true,
  1992. "max": true,
  1993. "min": true,
  1994. "rightSide": true,
  1995. "show": false,
  1996. "total": true,
  1997. "values": true
  1998. },
  1999. "lines": false,
  2000. "linewidth": 1,
  2001. "links": [],
  2002. "nullPointMode": "null",
  2003. "percentage": false,
  2004. "pointradius": 5,
  2005. "points": false,
  2006. "renderer": "flot",
  2007. "seriesOverrides": [],
  2008. "spaceLength": 10,
  2009. "stack": false,
  2010. "steppedLine": false,
  2011. "targets": [
  2012. {
  2013. "alias": "",
  2014. "format": "time_series",
  2015. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2016. "refId": "A"
  2017. }
  2018. ],
  2019. "thresholds": [],
  2020. "timeFrom": null,
  2021. "timeShift": null,
  2022. "title": "Multiple series without metric column - histogram",
  2023. "tooltip": {
  2024. "shared": true,
  2025. "sort": 0,
  2026. "value_type": "individual"
  2027. },
  2028. "type": "graph",
  2029. "xaxis": {
  2030. "buckets": 100,
  2031. "mode": "histogram",
  2032. "name": null,
  2033. "show": true,
  2034. "values": [
  2035. "total"
  2036. ]
  2037. },
  2038. "yaxes": [
  2039. {
  2040. "format": "short",
  2041. "label": null,
  2042. "logBase": 1,
  2043. "max": null,
  2044. "min": "0",
  2045. "show": true
  2046. },
  2047. {
  2048. "format": "short",
  2049. "label": null,
  2050. "logBase": 1,
  2051. "max": null,
  2052. "min": null,
  2053. "show": true
  2054. }
  2055. ],
  2056. "yaxis": {
  2057. "align": false,
  2058. "alignLevel": null
  2059. }
  2060. },
  2061. {
  2062. "aliasColors": {},
  2063. "bars": true,
  2064. "dashLength": 10,
  2065. "dashes": false,
  2066. "datasource": "gdev-mssql-ds-tests",
  2067. "fill": 1,
  2068. "gridPos": {
  2069. "h": 8,
  2070. "w": 12,
  2071. "x": 0,
  2072. "y": 81
  2073. },
  2074. "id": 21,
  2075. "legend": {
  2076. "alignAsTable": true,
  2077. "avg": true,
  2078. "current": true,
  2079. "max": true,
  2080. "min": true,
  2081. "rightSide": true,
  2082. "show": false,
  2083. "total": true,
  2084. "values": true
  2085. },
  2086. "lines": false,
  2087. "linewidth": 1,
  2088. "links": [],
  2089. "nullPointMode": "null",
  2090. "percentage": false,
  2091. "pointradius": 5,
  2092. "points": false,
  2093. "renderer": "flot",
  2094. "seriesOverrides": [],
  2095. "spaceLength": 10,
  2096. "stack": true,
  2097. "steppedLine": false,
  2098. "targets": [
  2099. {
  2100. "alias": "",
  2101. "format": "time_series",
  2102. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2103. "refId": "A"
  2104. }
  2105. ],
  2106. "thresholds": [],
  2107. "timeFrom": null,
  2108. "timeShift": null,
  2109. "title": "Multiple series with metric column - histogram stacked",
  2110. "tooltip": {
  2111. "shared": true,
  2112. "sort": 0,
  2113. "value_type": "individual"
  2114. },
  2115. "type": "graph",
  2116. "xaxis": {
  2117. "buckets": 20,
  2118. "mode": "histogram",
  2119. "name": null,
  2120. "show": true,
  2121. "values": [
  2122. "current"
  2123. ]
  2124. },
  2125. "yaxes": [
  2126. {
  2127. "decimals": null,
  2128. "format": "short",
  2129. "label": null,
  2130. "logBase": 1,
  2131. "max": null,
  2132. "min": "0",
  2133. "show": true
  2134. },
  2135. {
  2136. "format": "short",
  2137. "label": null,
  2138. "logBase": 1,
  2139. "max": null,
  2140. "min": null,
  2141. "show": true
  2142. }
  2143. ],
  2144. "yaxis": {
  2145. "align": false,
  2146. "alignLevel": null
  2147. }
  2148. },
  2149. {
  2150. "aliasColors": {},
  2151. "bars": true,
  2152. "dashLength": 10,
  2153. "dashes": false,
  2154. "datasource": "gdev-mssql-ds-tests",
  2155. "fill": 1,
  2156. "gridPos": {
  2157. "h": 8,
  2158. "w": 12,
  2159. "x": 12,
  2160. "y": 81
  2161. },
  2162. "id": 26,
  2163. "legend": {
  2164. "alignAsTable": true,
  2165. "avg": true,
  2166. "current": true,
  2167. "max": true,
  2168. "min": true,
  2169. "rightSide": true,
  2170. "show": false,
  2171. "total": true,
  2172. "values": true
  2173. },
  2174. "lines": false,
  2175. "linewidth": 1,
  2176. "links": [],
  2177. "nullPointMode": "null",
  2178. "percentage": false,
  2179. "pointradius": 5,
  2180. "points": false,
  2181. "renderer": "flot",
  2182. "seriesOverrides": [],
  2183. "spaceLength": 10,
  2184. "stack": true,
  2185. "steppedLine": false,
  2186. "targets": [
  2187. {
  2188. "alias": "",
  2189. "format": "time_series",
  2190. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values \nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2191. "refId": "A"
  2192. }
  2193. ],
  2194. "thresholds": [],
  2195. "timeFrom": null,
  2196. "timeShift": null,
  2197. "title": "Multiple series without metric column - histogram stacked",
  2198. "tooltip": {
  2199. "shared": true,
  2200. "sort": 0,
  2201. "value_type": "individual"
  2202. },
  2203. "type": "graph",
  2204. "xaxis": {
  2205. "buckets": 20,
  2206. "mode": "histogram",
  2207. "name": null,
  2208. "show": true,
  2209. "values": [
  2210. "total"
  2211. ]
  2212. },
  2213. "yaxes": [
  2214. {
  2215. "format": "short",
  2216. "label": null,
  2217. "logBase": 1,
  2218. "max": null,
  2219. "min": "0",
  2220. "show": true
  2221. },
  2222. {
  2223. "format": "short",
  2224. "label": null,
  2225. "logBase": 1,
  2226. "max": null,
  2227. "min": null,
  2228. "show": true
  2229. }
  2230. ],
  2231. "yaxis": {
  2232. "align": false,
  2233. "alignLevel": null
  2234. }
  2235. },
  2236. {
  2237. "aliasColors": {},
  2238. "bars": true,
  2239. "dashLength": 10,
  2240. "dashes": false,
  2241. "datasource": "gdev-mssql-ds-tests",
  2242. "fill": 1,
  2243. "gridPos": {
  2244. "h": 8,
  2245. "w": 12,
  2246. "x": 0,
  2247. "y": 89
  2248. },
  2249. "id": 23,
  2250. "legend": {
  2251. "alignAsTable": true,
  2252. "avg": true,
  2253. "current": true,
  2254. "max": true,
  2255. "min": true,
  2256. "rightSide": true,
  2257. "show": false,
  2258. "total": true,
  2259. "values": true
  2260. },
  2261. "lines": false,
  2262. "linewidth": 1,
  2263. "links": [],
  2264. "nullPointMode": "null",
  2265. "percentage": true,
  2266. "pointradius": 5,
  2267. "points": false,
  2268. "renderer": "flot",
  2269. "seriesOverrides": [],
  2270. "spaceLength": 10,
  2271. "stack": true,
  2272. "steppedLine": false,
  2273. "targets": [
  2274. {
  2275. "alias": "",
  2276. "format": "time_series",
  2277. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2278. "refId": "A"
  2279. }
  2280. ],
  2281. "thresholds": [],
  2282. "timeFrom": null,
  2283. "timeShift": null,
  2284. "title": "Multiple series with metric column - histogram stacked percent",
  2285. "tooltip": {
  2286. "shared": true,
  2287. "sort": 0,
  2288. "value_type": "individual"
  2289. },
  2290. "type": "graph",
  2291. "xaxis": {
  2292. "buckets": 20,
  2293. "mode": "histogram",
  2294. "name": null,
  2295. "show": true,
  2296. "values": [
  2297. "current"
  2298. ]
  2299. },
  2300. "yaxes": [
  2301. {
  2302. "decimals": null,
  2303. "format": "short",
  2304. "label": null,
  2305. "logBase": 1,
  2306. "max": null,
  2307. "min": "0",
  2308. "show": true
  2309. },
  2310. {
  2311. "format": "short",
  2312. "label": null,
  2313. "logBase": 1,
  2314. "max": null,
  2315. "min": null,
  2316. "show": true
  2317. }
  2318. ],
  2319. "yaxis": {
  2320. "align": false,
  2321. "alignLevel": null
  2322. }
  2323. },
  2324. {
  2325. "aliasColors": {},
  2326. "bars": true,
  2327. "dashLength": 10,
  2328. "dashes": false,
  2329. "datasource": "gdev-mssql-ds-tests",
  2330. "fill": 1,
  2331. "gridPos": {
  2332. "h": 8,
  2333. "w": 12,
  2334. "x": 12,
  2335. "y": 89
  2336. },
  2337. "id": 24,
  2338. "legend": {
  2339. "alignAsTable": true,
  2340. "avg": true,
  2341. "current": true,
  2342. "max": true,
  2343. "min": true,
  2344. "rightSide": true,
  2345. "show": false,
  2346. "total": true,
  2347. "values": true
  2348. },
  2349. "lines": false,
  2350. "linewidth": 1,
  2351. "links": [],
  2352. "nullPointMode": "null",
  2353. "percentage": true,
  2354. "pointradius": 5,
  2355. "points": false,
  2356. "renderer": "flot",
  2357. "seriesOverrides": [],
  2358. "spaceLength": 10,
  2359. "stack": true,
  2360. "steppedLine": false,
  2361. "targets": [
  2362. {
  2363. "alias": "",
  2364. "format": "time_series",
  2365. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values \nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2366. "refId": "A"
  2367. }
  2368. ],
  2369. "thresholds": [],
  2370. "timeFrom": null,
  2371. "timeShift": null,
  2372. "title": "Multiple series without metric column - histogram stacked percent",
  2373. "tooltip": {
  2374. "shared": true,
  2375. "sort": 0,
  2376. "value_type": "individual"
  2377. },
  2378. "type": "graph",
  2379. "xaxis": {
  2380. "buckets": 20,
  2381. "mode": "histogram",
  2382. "name": null,
  2383. "show": true,
  2384. "values": [
  2385. "total"
  2386. ]
  2387. },
  2388. "yaxes": [
  2389. {
  2390. "format": "short",
  2391. "label": null,
  2392. "logBase": 1,
  2393. "max": null,
  2394. "min": "0",
  2395. "show": true
  2396. },
  2397. {
  2398. "format": "short",
  2399. "label": null,
  2400. "logBase": 1,
  2401. "max": null,
  2402. "min": null,
  2403. "show": true
  2404. }
  2405. ],
  2406. "yaxis": {
  2407. "align": false,
  2408. "alignLevel": null
  2409. }
  2410. }
  2411. ],
  2412. "refresh": false,
  2413. "schemaVersion": 16,
  2414. "style": "dark",
  2415. "tags": [
  2416. "gdev",
  2417. "mssql"
  2418. ],
  2419. "templating": {
  2420. "list": [
  2421. {
  2422. "allValue": "'ALL'",
  2423. "current": {
  2424. "selected": true,
  2425. "tags": [],
  2426. "text": "All",
  2427. "value": "$__all"
  2428. },
  2429. "datasource": "gdev-mssql-ds-tests",
  2430. "hide": 0,
  2431. "includeAll": true,
  2432. "label": "Metric",
  2433. "multi": false,
  2434. "name": "metric",
  2435. "options": [
  2436. {
  2437. "selected": true,
  2438. "text": "All",
  2439. "value": "$__all"
  2440. },
  2441. {
  2442. "selected": false,
  2443. "text": "Metric A",
  2444. "value": "Metric A"
  2445. },
  2446. {
  2447. "selected": false,
  2448. "text": "Metric B",
  2449. "value": "Metric B"
  2450. }
  2451. ],
  2452. "query": "SELECT DISTINCT measurement FROM metric_values",
  2453. "refresh": 0,
  2454. "regex": "",
  2455. "skipUrlSync": false,
  2456. "sort": 0,
  2457. "tagValuesQuery": "",
  2458. "tags": [],
  2459. "tagsQuery": "",
  2460. "type": "query",
  2461. "useTags": false
  2462. },
  2463. {
  2464. "auto": false,
  2465. "auto_count": 30,
  2466. "auto_min": "10s",
  2467. "current": {
  2468. "text": "10m",
  2469. "value": "10m"
  2470. },
  2471. "hide": 0,
  2472. "label": "Interval",
  2473. "name": "summarize",
  2474. "options": [
  2475. {
  2476. "selected": false,
  2477. "text": "1s",
  2478. "value": "1s"
  2479. },
  2480. {
  2481. "selected": false,
  2482. "text": "10s",
  2483. "value": "10s"
  2484. },
  2485. {
  2486. "selected": false,
  2487. "text": "30s",
  2488. "value": "30s"
  2489. },
  2490. {
  2491. "selected": false,
  2492. "text": "1m",
  2493. "value": "1m"
  2494. },
  2495. {
  2496. "selected": false,
  2497. "text": "5m",
  2498. "value": "5m"
  2499. },
  2500. {
  2501. "selected": true,
  2502. "text": "10m",
  2503. "value": "10m"
  2504. }
  2505. ],
  2506. "query": "1s,10s,30s,1m,5m,10m",
  2507. "refresh": 2,
  2508. "skipUrlSync": false,
  2509. "type": "interval"
  2510. }
  2511. ]
  2512. },
  2513. "time": {
  2514. "from": "2018-03-15T12:30:00.000Z",
  2515. "to": "2018-03-15T13:55:01.000Z"
  2516. },
  2517. "timepicker": {
  2518. "refresh_intervals": [
  2519. "5s",
  2520. "10s",
  2521. "30s",
  2522. "1m",
  2523. "5m",
  2524. "15m",
  2525. "30m",
  2526. "1h",
  2527. "2h",
  2528. "1d"
  2529. ],
  2530. "time_options": [
  2531. "5m",
  2532. "15m",
  2533. "1h",
  2534. "6h",
  2535. "12h",
  2536. "24h",
  2537. "2d",
  2538. "7d",
  2539. "30d"
  2540. ]
  2541. },
  2542. "timezone": "",
  2543. "title": "Datasource tests - MSSQL (unit test)",
  2544. "uid": "GlAqcPgmz",
  2545. "version": 3
  2546. }