mssql_unittest.json 66 KB

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