datasource_tests_mssql_unittest.json 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902
  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": [
  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": 6,
  342. "w": 6,
  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 $__timeGroupAlias(time, '5m'), 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": 6,
  425. "w": 6,
  426. "x": 6,
  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 $__timeGroupAlias(time, '5m', NULL), 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": 6,
  508. "w": 6,
  509. "x": 12,
  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 $__timeGroupAlias(time, '5m', 10.0), 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": false,
  585. "dashLength": 10,
  586. "dashes": false,
  587. "datasource": "gdev-mssql-ds-tests",
  588. "fill": 2,
  589. "gridPos": {
  590. "h": 6,
  591. "w": 6,
  592. "x": 18,
  593. "y": 7
  594. },
  595. "id": 36,
  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": true,
  606. "linewidth": 2,
  607. "links": [],
  608. "nullPointMode": "null as zero",
  609. "percentage": false,
  610. "pointradius": 3,
  611. "points": true,
  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 $__timeGroupAlias(time, '5m', previous), avg(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '5m') ORDER BY 1",
  622. "refId": "A"
  623. }
  624. ],
  625. "thresholds": [],
  626. "timeFrom": null,
  627. "timeShift": null,
  628. "title": "timeGroup macro 5m with fill(previous) and null as zero",
  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": "0",
  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": 6,
  674. "w": 6,
  675. "x": 0,
  676. "y": 13
  677. },
  678. "id": 16,
  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",
  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 $__timeGroupAlias(time, '$summarize'), avg(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 without fill",
  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": 6,
  757. "w": 6,
  758. "x": 6,
  759. "y": 13
  760. },
  761. "id": 12,
  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 as zero",
  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 $__timeGroupAlias(time, '$summarize', NULL), 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(NULL)",
  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": true,
  834. "dashLength": 10,
  835. "dashes": false,
  836. "datasource": "gdev-mssql-ds-tests",
  837. "fill": 2,
  838. "gridPos": {
  839. "h": 6,
  840. "w": 6,
  841. "x": 12,
  842. "y": 13
  843. },
  844. "id": 13,
  845. "legend": {
  846. "avg": false,
  847. "current": false,
  848. "max": false,
  849. "min": false,
  850. "show": true,
  851. "total": false,
  852. "values": false
  853. },
  854. "lines": false,
  855. "linewidth": 2,
  856. "links": [],
  857. "nullPointMode": "null",
  858. "percentage": false,
  859. "pointradius": 3,
  860. "points": false,
  861. "renderer": "flot",
  862. "seriesOverrides": [],
  863. "spaceLength": 10,
  864. "stack": false,
  865. "steppedLine": true,
  866. "targets": [
  867. {
  868. "alias": "",
  869. "format": "time_series",
  870. "rawSql": "SELECT $__timeGroupAlias(time, '$summarize', 100.0), sum(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '$summarize') ORDER BY 1",
  871. "refId": "A"
  872. }
  873. ],
  874. "thresholds": [],
  875. "timeFrom": null,
  876. "timeShift": null,
  877. "title": "Metrics - timeGroup macro $summarize with fill(100.0)",
  878. "tooltip": {
  879. "shared": true,
  880. "sort": 0,
  881. "value_type": "individual"
  882. },
  883. "type": "graph",
  884. "xaxis": {
  885. "buckets": null,
  886. "mode": "time",
  887. "name": null,
  888. "show": true,
  889. "values": []
  890. },
  891. "yaxes": [
  892. {
  893. "format": "short",
  894. "label": null,
  895. "logBase": 1,
  896. "max": null,
  897. "min": null,
  898. "show": true
  899. },
  900. {
  901. "format": "short",
  902. "label": null,
  903. "logBase": 1,
  904. "max": null,
  905. "min": null,
  906. "show": true
  907. }
  908. ],
  909. "yaxis": {
  910. "align": false,
  911. "alignLevel": null
  912. }
  913. },
  914. {
  915. "aliasColors": {},
  916. "bars": true,
  917. "dashLength": 10,
  918. "dashes": false,
  919. "datasource": "gdev-mssql-ds-tests",
  920. "fill": 2,
  921. "gridPos": {
  922. "h": 6,
  923. "w": 6,
  924. "x": 18,
  925. "y": 13
  926. },
  927. "id": 37,
  928. "legend": {
  929. "avg": false,
  930. "current": false,
  931. "max": false,
  932. "min": false,
  933. "show": true,
  934. "total": false,
  935. "values": false
  936. },
  937. "lines": false,
  938. "linewidth": 2,
  939. "links": [],
  940. "nullPointMode": "null",
  941. "percentage": false,
  942. "pointradius": 3,
  943. "points": false,
  944. "renderer": "flot",
  945. "seriesOverrides": [],
  946. "spaceLength": 10,
  947. "stack": false,
  948. "steppedLine": true,
  949. "targets": [
  950. {
  951. "alias": "",
  952. "format": "time_series",
  953. "rawSql": "SELECT $__timeGroupAlias(time, '$summarize', previous), sum(value) as value FROM metric WHERE $__timeFilter(time) GROUP BY $__timeGroup(time, '$summarize') ORDER BY 1",
  954. "refId": "A"
  955. }
  956. ],
  957. "thresholds": [],
  958. "timeFrom": null,
  959. "timeShift": null,
  960. "title": "Metrics - timeGroup macro $summarize with fill(previous)",
  961. "tooltip": {
  962. "shared": true,
  963. "sort": 0,
  964. "value_type": "individual"
  965. },
  966. "type": "graph",
  967. "xaxis": {
  968. "buckets": null,
  969. "mode": "time",
  970. "name": null,
  971. "show": true,
  972. "values": []
  973. },
  974. "yaxes": [
  975. {
  976. "format": "short",
  977. "label": null,
  978. "logBase": 1,
  979. "max": null,
  980. "min": null,
  981. "show": true
  982. },
  983. {
  984. "format": "short",
  985. "label": null,
  986. "logBase": 1,
  987. "max": null,
  988. "min": null,
  989. "show": true
  990. }
  991. ],
  992. "yaxis": {
  993. "align": false,
  994. "alignLevel": null
  995. }
  996. },
  997. {
  998. "aliasColors": {},
  999. "bars": false,
  1000. "dashLength": 10,
  1001. "dashes": false,
  1002. "datasource": "gdev-mssql-ds-tests",
  1003. "fill": 2,
  1004. "gridPos": {
  1005. "h": 8,
  1006. "w": 12,
  1007. "x": 0,
  1008. "y": 19
  1009. },
  1010. "id": 27,
  1011. "legend": {
  1012. "alignAsTable": true,
  1013. "avg": true,
  1014. "current": true,
  1015. "hideEmpty": false,
  1016. "hideZero": false,
  1017. "max": true,
  1018. "min": true,
  1019. "rightSide": true,
  1020. "show": true,
  1021. "total": true,
  1022. "values": true
  1023. },
  1024. "lines": true,
  1025. "linewidth": 2,
  1026. "links": [],
  1027. "nullPointMode": "null",
  1028. "percentage": false,
  1029. "pointradius": 3,
  1030. "points": false,
  1031. "renderer": "flot",
  1032. "seriesOverrides": [],
  1033. "spaceLength": 10,
  1034. "stack": false,
  1035. "steppedLine": false,
  1036. "targets": [
  1037. {
  1038. "alias": "",
  1039. "format": "time_series",
  1040. "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",
  1041. "refId": "A"
  1042. }
  1043. ],
  1044. "thresholds": [],
  1045. "timeFrom": null,
  1046. "timeShift": null,
  1047. "title": "Multiple series with metric column using timeGroup macro ($summarize)",
  1048. "tooltip": {
  1049. "shared": true,
  1050. "sort": 0,
  1051. "value_type": "individual"
  1052. },
  1053. "type": "graph",
  1054. "xaxis": {
  1055. "buckets": null,
  1056. "mode": "time",
  1057. "name": null,
  1058. "show": true,
  1059. "values": []
  1060. },
  1061. "yaxes": [
  1062. {
  1063. "format": "short",
  1064. "label": null,
  1065. "logBase": 1,
  1066. "max": null,
  1067. "min": "0",
  1068. "show": true
  1069. },
  1070. {
  1071. "format": "short",
  1072. "label": null,
  1073. "logBase": 1,
  1074. "max": null,
  1075. "min": null,
  1076. "show": true
  1077. }
  1078. ],
  1079. "yaxis": {
  1080. "align": false,
  1081. "alignLevel": null
  1082. }
  1083. },
  1084. {
  1085. "aliasColors": {},
  1086. "bars": false,
  1087. "dashLength": 10,
  1088. "dashes": false,
  1089. "datasource": "gdev-mssql-ds-tests",
  1090. "fill": 2,
  1091. "gridPos": {
  1092. "h": 8,
  1093. "w": 12,
  1094. "x": 12,
  1095. "y": 19
  1096. },
  1097. "id": 5,
  1098. "legend": {
  1099. "alignAsTable": true,
  1100. "avg": true,
  1101. "current": true,
  1102. "max": true,
  1103. "min": true,
  1104. "rightSide": true,
  1105. "show": true,
  1106. "total": true,
  1107. "values": true
  1108. },
  1109. "lines": true,
  1110. "linewidth": 2,
  1111. "links": [],
  1112. "nullPointMode": "null",
  1113. "percentage": false,
  1114. "pointradius": 3,
  1115. "points": false,
  1116. "renderer": "flot",
  1117. "seriesOverrides": [
  1118. {
  1119. "alias": "MovingAverageValueOne",
  1120. "dashes": true,
  1121. "lines": false
  1122. },
  1123. {
  1124. "alias": "MovingAverageValueTwo",
  1125. "dashes": true,
  1126. "lines": false,
  1127. "yaxis": 1
  1128. }
  1129. ],
  1130. "spaceLength": 10,
  1131. "stack": false,
  1132. "steppedLine": false,
  1133. "targets": [
  1134. {
  1135. "alias": "",
  1136. "format": "time_series",
  1137. "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",
  1138. "refId": "A"
  1139. },
  1140. {
  1141. "alias": "",
  1142. "format": "time_series",
  1143. "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",
  1144. "refId": "B"
  1145. }
  1146. ],
  1147. "thresholds": [],
  1148. "timeFrom": null,
  1149. "timeShift": null,
  1150. "title": "Multiple series without metric column using timeGroup macro ($summarize)",
  1151. "tooltip": {
  1152. "shared": true,
  1153. "sort": 0,
  1154. "value_type": "individual"
  1155. },
  1156. "type": "graph",
  1157. "xaxis": {
  1158. "buckets": null,
  1159. "mode": "time",
  1160. "name": null,
  1161. "show": true,
  1162. "values": []
  1163. },
  1164. "yaxes": [
  1165. {
  1166. "format": "short",
  1167. "label": null,
  1168. "logBase": 1,
  1169. "max": null,
  1170. "min": "0",
  1171. "show": true
  1172. },
  1173. {
  1174. "format": "short",
  1175. "label": null,
  1176. "logBase": 1,
  1177. "max": null,
  1178. "min": null,
  1179. "show": true
  1180. }
  1181. ],
  1182. "yaxis": {
  1183. "align": false,
  1184. "alignLevel": null
  1185. }
  1186. },
  1187. {
  1188. "aliasColors": {},
  1189. "bars": false,
  1190. "dashLength": 10,
  1191. "dashes": false,
  1192. "datasource": "gdev-mssql-ds-tests",
  1193. "fill": 2,
  1194. "gridPos": {
  1195. "h": 8,
  1196. "w": 12,
  1197. "x": 0,
  1198. "y": 27
  1199. },
  1200. "id": 38,
  1201. "legend": {
  1202. "alignAsTable": true,
  1203. "avg": true,
  1204. "current": true,
  1205. "hideEmpty": false,
  1206. "hideZero": false,
  1207. "max": true,
  1208. "min": true,
  1209. "rightSide": true,
  1210. "show": true,
  1211. "total": true,
  1212. "values": true
  1213. },
  1214. "lines": true,
  1215. "linewidth": 2,
  1216. "links": [],
  1217. "nullPointMode": "null",
  1218. "percentage": false,
  1219. "pointradius": 3,
  1220. "points": false,
  1221. "renderer": "flot",
  1222. "seriesOverrides": [],
  1223. "spaceLength": 10,
  1224. "stack": false,
  1225. "steppedLine": false,
  1226. "targets": [
  1227. {
  1228. "alias": "",
  1229. "format": "time_series",
  1230. "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",
  1231. "refId": "A"
  1232. }
  1233. ],
  1234. "thresholds": [],
  1235. "timeFrom": null,
  1236. "timeShift": null,
  1237. "title": "Multiple series with metric column using unixEpochGroup macro ($summarize)",
  1238. "tooltip": {
  1239. "shared": true,
  1240. "sort": 0,
  1241. "value_type": "individual"
  1242. },
  1243. "type": "graph",
  1244. "xaxis": {
  1245. "buckets": null,
  1246. "mode": "time",
  1247. "name": null,
  1248. "show": true,
  1249. "values": []
  1250. },
  1251. "yaxes": [
  1252. {
  1253. "format": "short",
  1254. "label": null,
  1255. "logBase": 1,
  1256. "max": null,
  1257. "min": "0",
  1258. "show": true
  1259. },
  1260. {
  1261. "format": "short",
  1262. "label": null,
  1263. "logBase": 1,
  1264. "max": null,
  1265. "min": null,
  1266. "show": true
  1267. }
  1268. ],
  1269. "yaxis": {
  1270. "align": false,
  1271. "alignLevel": null
  1272. }
  1273. },
  1274. {
  1275. "aliasColors": {},
  1276. "bars": false,
  1277. "dashLength": 10,
  1278. "dashes": false,
  1279. "datasource": "gdev-mssql-ds-tests",
  1280. "fill": 2,
  1281. "gridPos": {
  1282. "h": 8,
  1283. "w": 12,
  1284. "x": 12,
  1285. "y": 27
  1286. },
  1287. "id": 39,
  1288. "legend": {
  1289. "alignAsTable": true,
  1290. "avg": true,
  1291. "current": true,
  1292. "max": true,
  1293. "min": true,
  1294. "rightSide": true,
  1295. "show": true,
  1296. "total": true,
  1297. "values": true
  1298. },
  1299. "lines": true,
  1300. "linewidth": 2,
  1301. "links": [],
  1302. "nullPointMode": "null",
  1303. "percentage": false,
  1304. "pointradius": 3,
  1305. "points": false,
  1306. "renderer": "flot",
  1307. "seriesOverrides": [
  1308. {
  1309. "alias": "MovingAverageValueOne",
  1310. "dashes": true,
  1311. "lines": false
  1312. },
  1313. {
  1314. "alias": "MovingAverageValueTwo",
  1315. "dashes": true,
  1316. "lines": false,
  1317. "yaxis": 1
  1318. }
  1319. ],
  1320. "spaceLength": 10,
  1321. "stack": false,
  1322. "steppedLine": false,
  1323. "targets": [
  1324. {
  1325. "alias": "",
  1326. "format": "time_series",
  1327. "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",
  1328. "refId": "A"
  1329. },
  1330. {
  1331. "alias": "",
  1332. "format": "time_series",
  1333. "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",
  1334. "refId": "B"
  1335. }
  1336. ],
  1337. "thresholds": [],
  1338. "timeFrom": null,
  1339. "timeShift": null,
  1340. "title": "Multiple series without metric column using unixEpochGroup macro ($summarize)",
  1341. "tooltip": {
  1342. "shared": true,
  1343. "sort": 0,
  1344. "value_type": "individual"
  1345. },
  1346. "type": "graph",
  1347. "xaxis": {
  1348. "buckets": null,
  1349. "mode": "time",
  1350. "name": null,
  1351. "show": true,
  1352. "values": []
  1353. },
  1354. "yaxes": [
  1355. {
  1356. "format": "short",
  1357. "label": null,
  1358. "logBase": 1,
  1359. "max": null,
  1360. "min": "0",
  1361. "show": true
  1362. },
  1363. {
  1364. "format": "short",
  1365. "label": null,
  1366. "logBase": 1,
  1367. "max": null,
  1368. "min": null,
  1369. "show": true
  1370. }
  1371. ],
  1372. "yaxis": {
  1373. "align": false,
  1374. "alignLevel": null
  1375. }
  1376. },
  1377. {
  1378. "aliasColors": {},
  1379. "bars": false,
  1380. "dashLength": 10,
  1381. "dashes": false,
  1382. "datasource": "gdev-mssql-ds-tests",
  1383. "fill": 2,
  1384. "gridPos": {
  1385. "h": 8,
  1386. "w": 12,
  1387. "x": 0,
  1388. "y": 35
  1389. },
  1390. "id": 4,
  1391. "legend": {
  1392. "alignAsTable": true,
  1393. "avg": true,
  1394. "current": true,
  1395. "hideEmpty": false,
  1396. "hideZero": false,
  1397. "max": true,
  1398. "min": true,
  1399. "rightSide": true,
  1400. "show": true,
  1401. "total": true,
  1402. "values": true
  1403. },
  1404. "lines": true,
  1405. "linewidth": 2,
  1406. "links": [],
  1407. "nullPointMode": "null",
  1408. "percentage": false,
  1409. "pointradius": 3,
  1410. "points": false,
  1411. "renderer": "flot",
  1412. "seriesOverrides": [],
  1413. "spaceLength": 10,
  1414. "stack": false,
  1415. "steppedLine": false,
  1416. "targets": [
  1417. {
  1418. "alias": "",
  1419. "format": "time_series",
  1420. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1421. "refId": "A"
  1422. }
  1423. ],
  1424. "thresholds": [],
  1425. "timeFrom": null,
  1426. "timeShift": null,
  1427. "title": "Multiple series with metric column",
  1428. "tooltip": {
  1429. "shared": true,
  1430. "sort": 0,
  1431. "value_type": "individual"
  1432. },
  1433. "type": "graph",
  1434. "xaxis": {
  1435. "buckets": null,
  1436. "mode": "time",
  1437. "name": null,
  1438. "show": true,
  1439. "values": []
  1440. },
  1441. "yaxes": [
  1442. {
  1443. "format": "short",
  1444. "label": null,
  1445. "logBase": 1,
  1446. "max": null,
  1447. "min": "0",
  1448. "show": true
  1449. },
  1450. {
  1451. "format": "short",
  1452. "label": null,
  1453. "logBase": 1,
  1454. "max": null,
  1455. "min": null,
  1456. "show": true
  1457. }
  1458. ],
  1459. "yaxis": {
  1460. "align": false,
  1461. "alignLevel": null
  1462. }
  1463. },
  1464. {
  1465. "aliasColors": {},
  1466. "bars": false,
  1467. "dashLength": 10,
  1468. "dashes": false,
  1469. "datasource": "gdev-mssql-ds-tests",
  1470. "fill": 2,
  1471. "gridPos": {
  1472. "h": 8,
  1473. "w": 12,
  1474. "x": 12,
  1475. "y": 35
  1476. },
  1477. "id": 28,
  1478. "legend": {
  1479. "alignAsTable": true,
  1480. "avg": true,
  1481. "current": true,
  1482. "max": true,
  1483. "min": true,
  1484. "rightSide": true,
  1485. "show": true,
  1486. "total": true,
  1487. "values": true
  1488. },
  1489. "lines": true,
  1490. "linewidth": 2,
  1491. "links": [],
  1492. "nullPointMode": "null",
  1493. "percentage": false,
  1494. "pointradius": 3,
  1495. "points": false,
  1496. "renderer": "flot",
  1497. "seriesOverrides": [],
  1498. "spaceLength": 10,
  1499. "stack": false,
  1500. "steppedLine": false,
  1501. "targets": [
  1502. {
  1503. "alias": "",
  1504. "format": "time_series",
  1505. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values ORDER BY 1",
  1506. "refId": "A"
  1507. }
  1508. ],
  1509. "thresholds": [],
  1510. "timeFrom": null,
  1511. "timeShift": null,
  1512. "title": "Multiple series without metric column",
  1513. "tooltip": {
  1514. "shared": true,
  1515. "sort": 0,
  1516. "value_type": "individual"
  1517. },
  1518. "type": "graph",
  1519. "xaxis": {
  1520. "buckets": null,
  1521. "mode": "time",
  1522. "name": null,
  1523. "show": true,
  1524. "values": []
  1525. },
  1526. "yaxes": [
  1527. {
  1528. "format": "short",
  1529. "label": null,
  1530. "logBase": 1,
  1531. "max": null,
  1532. "min": "0",
  1533. "show": true
  1534. },
  1535. {
  1536. "format": "short",
  1537. "label": null,
  1538. "logBase": 1,
  1539. "max": null,
  1540. "min": null,
  1541. "show": true
  1542. }
  1543. ],
  1544. "yaxis": {
  1545. "align": false,
  1546. "alignLevel": null
  1547. }
  1548. },
  1549. {
  1550. "aliasColors": {},
  1551. "bars": false,
  1552. "dashLength": 10,
  1553. "dashes": false,
  1554. "datasource": "gdev-mssql-ds-tests",
  1555. "fill": 2,
  1556. "gridPos": {
  1557. "h": 8,
  1558. "w": 12,
  1559. "x": 0,
  1560. "y": 43
  1561. },
  1562. "id": 19,
  1563. "legend": {
  1564. "alignAsTable": true,
  1565. "avg": true,
  1566. "current": true,
  1567. "hideEmpty": false,
  1568. "hideZero": false,
  1569. "max": true,
  1570. "min": true,
  1571. "rightSide": true,
  1572. "show": true,
  1573. "total": true,
  1574. "values": true
  1575. },
  1576. "lines": true,
  1577. "linewidth": 2,
  1578. "links": [],
  1579. "nullPointMode": "null",
  1580. "percentage": false,
  1581. "pointradius": 3,
  1582. "points": false,
  1583. "renderer": "flot",
  1584. "seriesOverrides": [],
  1585. "spaceLength": 10,
  1586. "stack": true,
  1587. "steppedLine": false,
  1588. "targets": [
  1589. {
  1590. "alias": "",
  1591. "format": "time_series",
  1592. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1593. "refId": "A"
  1594. }
  1595. ],
  1596. "thresholds": [],
  1597. "timeFrom": null,
  1598. "timeShift": null,
  1599. "title": "Multiple series with metric column - stacked",
  1600. "tooltip": {
  1601. "shared": true,
  1602. "sort": 0,
  1603. "value_type": "individual"
  1604. },
  1605. "type": "graph",
  1606. "xaxis": {
  1607. "buckets": null,
  1608. "mode": "time",
  1609. "name": null,
  1610. "show": true,
  1611. "values": []
  1612. },
  1613. "yaxes": [
  1614. {
  1615. "format": "short",
  1616. "label": null,
  1617. "logBase": 1,
  1618. "max": null,
  1619. "min": "0",
  1620. "show": true
  1621. },
  1622. {
  1623. "format": "short",
  1624. "label": null,
  1625. "logBase": 1,
  1626. "max": null,
  1627. "min": null,
  1628. "show": true
  1629. }
  1630. ],
  1631. "yaxis": {
  1632. "align": false,
  1633. "alignLevel": null
  1634. }
  1635. },
  1636. {
  1637. "aliasColors": {},
  1638. "bars": false,
  1639. "dashLength": 10,
  1640. "dashes": false,
  1641. "datasource": "gdev-mssql-ds-tests",
  1642. "fill": 2,
  1643. "gridPos": {
  1644. "h": 8,
  1645. "w": 12,
  1646. "x": 12,
  1647. "y": 43
  1648. },
  1649. "id": 18,
  1650. "legend": {
  1651. "alignAsTable": true,
  1652. "avg": true,
  1653. "current": true,
  1654. "max": true,
  1655. "min": true,
  1656. "rightSide": true,
  1657. "show": true,
  1658. "total": true,
  1659. "values": true
  1660. },
  1661. "lines": true,
  1662. "linewidth": 2,
  1663. "links": [],
  1664. "nullPointMode": "null",
  1665. "percentage": false,
  1666. "pointradius": 3,
  1667. "points": false,
  1668. "renderer": "flot",
  1669. "seriesOverrides": [],
  1670. "spaceLength": 10,
  1671. "stack": true,
  1672. "steppedLine": false,
  1673. "targets": [
  1674. {
  1675. "alias": "",
  1676. "format": "time_series",
  1677. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1678. "refId": "A"
  1679. }
  1680. ],
  1681. "thresholds": [],
  1682. "timeFrom": null,
  1683. "timeShift": null,
  1684. "title": "Multiple series without metric column - stacked",
  1685. "tooltip": {
  1686. "shared": true,
  1687. "sort": 0,
  1688. "value_type": "individual"
  1689. },
  1690. "type": "graph",
  1691. "xaxis": {
  1692. "buckets": null,
  1693. "mode": "time",
  1694. "name": null,
  1695. "show": true,
  1696. "values": []
  1697. },
  1698. "yaxes": [
  1699. {
  1700. "format": "short",
  1701. "label": null,
  1702. "logBase": 1,
  1703. "max": null,
  1704. "min": "0",
  1705. "show": true
  1706. },
  1707. {
  1708. "format": "short",
  1709. "label": null,
  1710. "logBase": 1,
  1711. "max": null,
  1712. "min": null,
  1713. "show": true
  1714. }
  1715. ],
  1716. "yaxis": {
  1717. "align": false,
  1718. "alignLevel": null
  1719. }
  1720. },
  1721. {
  1722. "aliasColors": {},
  1723. "bars": false,
  1724. "dashLength": 10,
  1725. "dashes": false,
  1726. "datasource": "gdev-mssql-ds-tests",
  1727. "fill": 2,
  1728. "gridPos": {
  1729. "h": 8,
  1730. "w": 12,
  1731. "x": 0,
  1732. "y": 51
  1733. },
  1734. "id": 17,
  1735. "legend": {
  1736. "alignAsTable": true,
  1737. "avg": true,
  1738. "current": true,
  1739. "hideEmpty": false,
  1740. "hideZero": false,
  1741. "max": true,
  1742. "min": true,
  1743. "rightSide": true,
  1744. "show": true,
  1745. "total": true,
  1746. "values": true
  1747. },
  1748. "lines": true,
  1749. "linewidth": 2,
  1750. "links": [],
  1751. "nullPointMode": "null",
  1752. "percentage": true,
  1753. "pointradius": 3,
  1754. "points": false,
  1755. "renderer": "flot",
  1756. "seriesOverrides": [],
  1757. "spaceLength": 10,
  1758. "stack": true,
  1759. "steppedLine": false,
  1760. "targets": [
  1761. {
  1762. "alias": "",
  1763. "format": "time_series",
  1764. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1765. "refId": "A"
  1766. }
  1767. ],
  1768. "thresholds": [],
  1769. "timeFrom": null,
  1770. "timeShift": null,
  1771. "title": "Multiple series with metric column - stacked percent",
  1772. "tooltip": {
  1773. "shared": true,
  1774. "sort": 0,
  1775. "value_type": "individual"
  1776. },
  1777. "type": "graph",
  1778. "xaxis": {
  1779. "buckets": null,
  1780. "mode": "time",
  1781. "name": null,
  1782. "show": true,
  1783. "values": []
  1784. },
  1785. "yaxes": [
  1786. {
  1787. "format": "short",
  1788. "label": null,
  1789. "logBase": 1,
  1790. "max": null,
  1791. "min": "0",
  1792. "show": true
  1793. },
  1794. {
  1795. "format": "short",
  1796. "label": null,
  1797. "logBase": 1,
  1798. "max": null,
  1799. "min": null,
  1800. "show": true
  1801. }
  1802. ],
  1803. "yaxis": {
  1804. "align": false,
  1805. "alignLevel": null
  1806. }
  1807. },
  1808. {
  1809. "aliasColors": {},
  1810. "bars": false,
  1811. "dashLength": 10,
  1812. "dashes": false,
  1813. "datasource": "gdev-mssql-ds-tests",
  1814. "fill": 2,
  1815. "gridPos": {
  1816. "h": 8,
  1817. "w": 12,
  1818. "x": 12,
  1819. "y": 51
  1820. },
  1821. "id": 20,
  1822. "legend": {
  1823. "alignAsTable": true,
  1824. "avg": true,
  1825. "current": true,
  1826. "max": true,
  1827. "min": true,
  1828. "rightSide": true,
  1829. "show": true,
  1830. "total": true,
  1831. "values": true
  1832. },
  1833. "lines": true,
  1834. "linewidth": 2,
  1835. "links": [],
  1836. "nullPointMode": "null",
  1837. "percentage": true,
  1838. "pointradius": 3,
  1839. "points": false,
  1840. "renderer": "flot",
  1841. "seriesOverrides": [],
  1842. "spaceLength": 10,
  1843. "stack": true,
  1844. "steppedLine": false,
  1845. "targets": [
  1846. {
  1847. "alias": "",
  1848. "format": "time_series",
  1849. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1850. "refId": "A"
  1851. }
  1852. ],
  1853. "thresholds": [],
  1854. "timeFrom": null,
  1855. "timeShift": null,
  1856. "title": "Multiple series without metric column - stacked percent",
  1857. "tooltip": {
  1858. "shared": true,
  1859. "sort": 0,
  1860. "value_type": "individual"
  1861. },
  1862. "type": "graph",
  1863. "xaxis": {
  1864. "buckets": null,
  1865. "mode": "time",
  1866. "name": null,
  1867. "show": true,
  1868. "values": []
  1869. },
  1870. "yaxes": [
  1871. {
  1872. "format": "short",
  1873. "label": null,
  1874. "logBase": 1,
  1875. "max": null,
  1876. "min": "0",
  1877. "show": true
  1878. },
  1879. {
  1880. "format": "short",
  1881. "label": null,
  1882. "logBase": 1,
  1883. "max": null,
  1884. "min": null,
  1885. "show": true
  1886. }
  1887. ],
  1888. "yaxis": {
  1889. "align": false,
  1890. "alignLevel": null
  1891. }
  1892. },
  1893. {
  1894. "aliasColors": {},
  1895. "bars": false,
  1896. "dashLength": 10,
  1897. "dashes": false,
  1898. "datasource": "gdev-mssql-ds-tests",
  1899. "fill": 2,
  1900. "gridPos": {
  1901. "h": 8,
  1902. "w": 12,
  1903. "x": 0,
  1904. "y": 59
  1905. },
  1906. "id": 29,
  1907. "legend": {
  1908. "alignAsTable": true,
  1909. "avg": true,
  1910. "current": true,
  1911. "hideEmpty": false,
  1912. "hideZero": false,
  1913. "max": true,
  1914. "min": true,
  1915. "rightSide": true,
  1916. "show": true,
  1917. "total": true,
  1918. "values": true
  1919. },
  1920. "lines": true,
  1921. "linewidth": 2,
  1922. "links": [],
  1923. "nullPointMode": "null",
  1924. "percentage": false,
  1925. "pointradius": 3,
  1926. "points": false,
  1927. "renderer": "flot",
  1928. "seriesOverrides": [],
  1929. "spaceLength": 10,
  1930. "stack": false,
  1931. "steppedLine": false,
  1932. "targets": [
  1933. {
  1934. "alias": "",
  1935. "format": "time_series",
  1936. "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",
  1937. "refId": "A"
  1938. }
  1939. ],
  1940. "thresholds": [],
  1941. "timeFrom": null,
  1942. "timeShift": null,
  1943. "title": "Stored procedure support using epoch",
  1944. "tooltip": {
  1945. "shared": true,
  1946. "sort": 0,
  1947. "value_type": "individual"
  1948. },
  1949. "type": "graph",
  1950. "xaxis": {
  1951. "buckets": null,
  1952. "mode": "time",
  1953. "name": null,
  1954. "show": true,
  1955. "values": []
  1956. },
  1957. "yaxes": [
  1958. {
  1959. "format": "short",
  1960. "label": null,
  1961. "logBase": 1,
  1962. "max": null,
  1963. "min": "0",
  1964. "show": true
  1965. },
  1966. {
  1967. "format": "short",
  1968. "label": null,
  1969. "logBase": 1,
  1970. "max": null,
  1971. "min": null,
  1972. "show": true
  1973. }
  1974. ],
  1975. "yaxis": {
  1976. "align": false,
  1977. "alignLevel": null
  1978. }
  1979. },
  1980. {
  1981. "aliasColors": {},
  1982. "bars": false,
  1983. "dashLength": 10,
  1984. "dashes": false,
  1985. "datasource": "gdev-mssql-ds-tests",
  1986. "fill": 2,
  1987. "gridPos": {
  1988. "h": 8,
  1989. "w": 12,
  1990. "x": 12,
  1991. "y": 59
  1992. },
  1993. "id": 30,
  1994. "legend": {
  1995. "alignAsTable": true,
  1996. "avg": true,
  1997. "current": true,
  1998. "hideEmpty": false,
  1999. "hideZero": false,
  2000. "max": true,
  2001. "min": true,
  2002. "rightSide": true,
  2003. "show": true,
  2004. "total": true,
  2005. "values": true
  2006. },
  2007. "lines": true,
  2008. "linewidth": 2,
  2009. "links": [],
  2010. "nullPointMode": "null",
  2011. "percentage": false,
  2012. "pointradius": 3,
  2013. "points": false,
  2014. "renderer": "flot",
  2015. "seriesOverrides": [],
  2016. "spaceLength": 10,
  2017. "stack": false,
  2018. "steppedLine": false,
  2019. "targets": [
  2020. {
  2021. "alias": "",
  2022. "format": "time_series",
  2023. "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",
  2024. "refId": "A"
  2025. }
  2026. ],
  2027. "thresholds": [],
  2028. "timeFrom": null,
  2029. "timeShift": null,
  2030. "title": "Stored procedure support using datetime",
  2031. "tooltip": {
  2032. "shared": true,
  2033. "sort": 0,
  2034. "value_type": "individual"
  2035. },
  2036. "type": "graph",
  2037. "xaxis": {
  2038. "buckets": null,
  2039. "mode": "time",
  2040. "name": null,
  2041. "show": true,
  2042. "values": []
  2043. },
  2044. "yaxes": [
  2045. {
  2046. "format": "short",
  2047. "label": null,
  2048. "logBase": 1,
  2049. "max": null,
  2050. "min": "0",
  2051. "show": true
  2052. },
  2053. {
  2054. "format": "short",
  2055. "label": null,
  2056. "logBase": 1,
  2057. "max": null,
  2058. "min": null,
  2059. "show": true
  2060. }
  2061. ],
  2062. "yaxis": {
  2063. "align": false,
  2064. "alignLevel": null
  2065. }
  2066. },
  2067. {
  2068. "aliasColors": {},
  2069. "bars": true,
  2070. "dashLength": 10,
  2071. "dashes": false,
  2072. "datasource": "gdev-mssql-ds-tests",
  2073. "fill": 1,
  2074. "gridPos": {
  2075. "h": 8,
  2076. "w": 12,
  2077. "x": 0,
  2078. "y": 67
  2079. },
  2080. "id": 14,
  2081. "legend": {
  2082. "alignAsTable": true,
  2083. "avg": true,
  2084. "current": true,
  2085. "max": true,
  2086. "min": true,
  2087. "rightSide": true,
  2088. "show": true,
  2089. "total": true,
  2090. "values": true
  2091. },
  2092. "lines": false,
  2093. "linewidth": 1,
  2094. "links": [],
  2095. "nullPointMode": "null",
  2096. "percentage": false,
  2097. "pointradius": 5,
  2098. "points": false,
  2099. "renderer": "flot",
  2100. "seriesOverrides": [],
  2101. "spaceLength": 10,
  2102. "stack": false,
  2103. "steppedLine": false,
  2104. "targets": [
  2105. {
  2106. "alias": "",
  2107. "format": "time_series",
  2108. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2109. "refId": "A"
  2110. }
  2111. ],
  2112. "thresholds": [],
  2113. "timeFrom": null,
  2114. "timeShift": null,
  2115. "title": "Multiple series with metric column - series mode",
  2116. "tooltip": {
  2117. "shared": false,
  2118. "sort": 0,
  2119. "value_type": "individual"
  2120. },
  2121. "type": "graph",
  2122. "xaxis": {
  2123. "buckets": null,
  2124. "mode": "series",
  2125. "name": null,
  2126. "show": true,
  2127. "values": [
  2128. "total"
  2129. ]
  2130. },
  2131. "yaxes": [
  2132. {
  2133. "decimals": null,
  2134. "format": "short",
  2135. "label": null,
  2136. "logBase": 1,
  2137. "max": null,
  2138. "min": "0",
  2139. "show": true
  2140. },
  2141. {
  2142. "format": "short",
  2143. "label": null,
  2144. "logBase": 1,
  2145. "max": null,
  2146. "min": null,
  2147. "show": true
  2148. }
  2149. ],
  2150. "yaxis": {
  2151. "align": false,
  2152. "alignLevel": null
  2153. }
  2154. },
  2155. {
  2156. "aliasColors": {},
  2157. "bars": true,
  2158. "dashLength": 10,
  2159. "dashes": false,
  2160. "datasource": "gdev-mssql-ds-tests",
  2161. "fill": 1,
  2162. "gridPos": {
  2163. "h": 8,
  2164. "w": 12,
  2165. "x": 12,
  2166. "y": 67
  2167. },
  2168. "id": 15,
  2169. "legend": {
  2170. "alignAsTable": true,
  2171. "avg": true,
  2172. "current": true,
  2173. "max": true,
  2174. "min": true,
  2175. "rightSide": true,
  2176. "show": true,
  2177. "total": true,
  2178. "values": true
  2179. },
  2180. "lines": false,
  2181. "linewidth": 1,
  2182. "links": [],
  2183. "nullPointMode": "null",
  2184. "percentage": false,
  2185. "pointradius": 5,
  2186. "points": false,
  2187. "renderer": "flot",
  2188. "seriesOverrides": [],
  2189. "spaceLength": 10,
  2190. "stack": false,
  2191. "steppedLine": false,
  2192. "targets": [
  2193. {
  2194. "alias": "",
  2195. "format": "time_series",
  2196. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2197. "refId": "A"
  2198. }
  2199. ],
  2200. "thresholds": [],
  2201. "timeFrom": null,
  2202. "timeShift": null,
  2203. "title": "Multiple series without metric column - series mode",
  2204. "tooltip": {
  2205. "shared": false,
  2206. "sort": 0,
  2207. "value_type": "individual"
  2208. },
  2209. "type": "graph",
  2210. "xaxis": {
  2211. "buckets": null,
  2212. "mode": "series",
  2213. "name": null,
  2214. "show": true,
  2215. "values": [
  2216. "total"
  2217. ]
  2218. },
  2219. "yaxes": [
  2220. {
  2221. "format": "short",
  2222. "label": null,
  2223. "logBase": 1,
  2224. "max": null,
  2225. "min": "0",
  2226. "show": true
  2227. },
  2228. {
  2229. "format": "short",
  2230. "label": null,
  2231. "logBase": 1,
  2232. "max": null,
  2233. "min": null,
  2234. "show": true
  2235. }
  2236. ],
  2237. "yaxis": {
  2238. "align": false,
  2239. "alignLevel": null
  2240. }
  2241. },
  2242. {
  2243. "aliasColors": {},
  2244. "bars": true,
  2245. "dashLength": 10,
  2246. "dashes": false,
  2247. "datasource": "gdev-mssql-ds-tests",
  2248. "fill": 1,
  2249. "gridPos": {
  2250. "h": 8,
  2251. "w": 12,
  2252. "x": 0,
  2253. "y": 75
  2254. },
  2255. "id": 25,
  2256. "legend": {
  2257. "alignAsTable": true,
  2258. "avg": true,
  2259. "current": true,
  2260. "max": true,
  2261. "min": true,
  2262. "rightSide": true,
  2263. "show": false,
  2264. "total": true,
  2265. "values": true
  2266. },
  2267. "lines": false,
  2268. "linewidth": 1,
  2269. "links": [],
  2270. "nullPointMode": "null",
  2271. "percentage": false,
  2272. "pointradius": 5,
  2273. "points": false,
  2274. "renderer": "flot",
  2275. "seriesOverrides": [],
  2276. "spaceLength": 10,
  2277. "stack": false,
  2278. "steppedLine": false,
  2279. "targets": [
  2280. {
  2281. "alias": "",
  2282. "format": "time_series",
  2283. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2284. "refId": "A"
  2285. }
  2286. ],
  2287. "thresholds": [],
  2288. "timeFrom": null,
  2289. "timeShift": null,
  2290. "title": "Multiple series with metric column - histogram",
  2291. "tooltip": {
  2292. "shared": true,
  2293. "sort": 0,
  2294. "value_type": "individual"
  2295. },
  2296. "type": "graph",
  2297. "xaxis": {
  2298. "buckets": 50,
  2299. "mode": "histogram",
  2300. "name": null,
  2301. "show": true,
  2302. "values": [
  2303. "current"
  2304. ]
  2305. },
  2306. "yaxes": [
  2307. {
  2308. "decimals": null,
  2309. "format": "short",
  2310. "label": null,
  2311. "logBase": 1,
  2312. "max": null,
  2313. "min": "0",
  2314. "show": true
  2315. },
  2316. {
  2317. "format": "short",
  2318. "label": null,
  2319. "logBase": 1,
  2320. "max": null,
  2321. "min": null,
  2322. "show": true
  2323. }
  2324. ],
  2325. "yaxis": {
  2326. "align": false,
  2327. "alignLevel": null
  2328. }
  2329. },
  2330. {
  2331. "aliasColors": {},
  2332. "bars": true,
  2333. "dashLength": 10,
  2334. "dashes": false,
  2335. "datasource": "gdev-mssql-ds-tests",
  2336. "fill": 1,
  2337. "gridPos": {
  2338. "h": 8,
  2339. "w": 12,
  2340. "x": 12,
  2341. "y": 75
  2342. },
  2343. "id": 22,
  2344. "legend": {
  2345. "alignAsTable": true,
  2346. "avg": true,
  2347. "current": true,
  2348. "max": true,
  2349. "min": true,
  2350. "rightSide": true,
  2351. "show": false,
  2352. "total": true,
  2353. "values": true
  2354. },
  2355. "lines": false,
  2356. "linewidth": 1,
  2357. "links": [],
  2358. "nullPointMode": "null",
  2359. "percentage": false,
  2360. "pointradius": 5,
  2361. "points": false,
  2362. "renderer": "flot",
  2363. "seriesOverrides": [],
  2364. "spaceLength": 10,
  2365. "stack": false,
  2366. "steppedLine": false,
  2367. "targets": [
  2368. {
  2369. "alias": "",
  2370. "format": "time_series",
  2371. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2372. "refId": "A"
  2373. }
  2374. ],
  2375. "thresholds": [],
  2376. "timeFrom": null,
  2377. "timeShift": null,
  2378. "title": "Multiple series without metric column - histogram",
  2379. "tooltip": {
  2380. "shared": true,
  2381. "sort": 0,
  2382. "value_type": "individual"
  2383. },
  2384. "type": "graph",
  2385. "xaxis": {
  2386. "buckets": 100,
  2387. "mode": "histogram",
  2388. "name": null,
  2389. "show": true,
  2390. "values": [
  2391. "total"
  2392. ]
  2393. },
  2394. "yaxes": [
  2395. {
  2396. "format": "short",
  2397. "label": null,
  2398. "logBase": 1,
  2399. "max": null,
  2400. "min": "0",
  2401. "show": true
  2402. },
  2403. {
  2404. "format": "short",
  2405. "label": null,
  2406. "logBase": 1,
  2407. "max": null,
  2408. "min": null,
  2409. "show": true
  2410. }
  2411. ],
  2412. "yaxis": {
  2413. "align": false,
  2414. "alignLevel": null
  2415. }
  2416. },
  2417. {
  2418. "aliasColors": {},
  2419. "bars": true,
  2420. "dashLength": 10,
  2421. "dashes": false,
  2422. "datasource": "gdev-mssql-ds-tests",
  2423. "fill": 1,
  2424. "gridPos": {
  2425. "h": 8,
  2426. "w": 12,
  2427. "x": 0,
  2428. "y": 83
  2429. },
  2430. "id": 21,
  2431. "legend": {
  2432. "alignAsTable": true,
  2433. "avg": true,
  2434. "current": true,
  2435. "max": true,
  2436. "min": true,
  2437. "rightSide": true,
  2438. "show": false,
  2439. "total": true,
  2440. "values": true
  2441. },
  2442. "lines": false,
  2443. "linewidth": 1,
  2444. "links": [],
  2445. "nullPointMode": "null",
  2446. "percentage": false,
  2447. "pointradius": 5,
  2448. "points": false,
  2449. "renderer": "flot",
  2450. "seriesOverrides": [],
  2451. "spaceLength": 10,
  2452. "stack": true,
  2453. "steppedLine": false,
  2454. "targets": [
  2455. {
  2456. "alias": "",
  2457. "format": "time_series",
  2458. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2459. "refId": "A"
  2460. }
  2461. ],
  2462. "thresholds": [],
  2463. "timeFrom": null,
  2464. "timeShift": null,
  2465. "title": "Multiple series with metric column - histogram stacked",
  2466. "tooltip": {
  2467. "shared": true,
  2468. "sort": 0,
  2469. "value_type": "individual"
  2470. },
  2471. "type": "graph",
  2472. "xaxis": {
  2473. "buckets": 20,
  2474. "mode": "histogram",
  2475. "name": null,
  2476. "show": true,
  2477. "values": [
  2478. "current"
  2479. ]
  2480. },
  2481. "yaxes": [
  2482. {
  2483. "decimals": null,
  2484. "format": "short",
  2485. "label": null,
  2486. "logBase": 1,
  2487. "max": null,
  2488. "min": "0",
  2489. "show": true
  2490. },
  2491. {
  2492. "format": "short",
  2493. "label": null,
  2494. "logBase": 1,
  2495. "max": null,
  2496. "min": null,
  2497. "show": true
  2498. }
  2499. ],
  2500. "yaxis": {
  2501. "align": false,
  2502. "alignLevel": null
  2503. }
  2504. },
  2505. {
  2506. "aliasColors": {},
  2507. "bars": true,
  2508. "dashLength": 10,
  2509. "dashes": false,
  2510. "datasource": "gdev-mssql-ds-tests",
  2511. "fill": 1,
  2512. "gridPos": {
  2513. "h": 8,
  2514. "w": 12,
  2515. "x": 12,
  2516. "y": 83
  2517. },
  2518. "id": 26,
  2519. "legend": {
  2520. "alignAsTable": true,
  2521. "avg": true,
  2522. "current": true,
  2523. "max": true,
  2524. "min": true,
  2525. "rightSide": true,
  2526. "show": false,
  2527. "total": true,
  2528. "values": true
  2529. },
  2530. "lines": false,
  2531. "linewidth": 1,
  2532. "links": [],
  2533. "nullPointMode": "null",
  2534. "percentage": false,
  2535. "pointradius": 5,
  2536. "points": false,
  2537. "renderer": "flot",
  2538. "seriesOverrides": [],
  2539. "spaceLength": 10,
  2540. "stack": true,
  2541. "steppedLine": false,
  2542. "targets": [
  2543. {
  2544. "alias": "",
  2545. "format": "time_series",
  2546. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values \nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2547. "refId": "A"
  2548. }
  2549. ],
  2550. "thresholds": [],
  2551. "timeFrom": null,
  2552. "timeShift": null,
  2553. "title": "Multiple series without metric column - histogram stacked",
  2554. "tooltip": {
  2555. "shared": true,
  2556. "sort": 0,
  2557. "value_type": "individual"
  2558. },
  2559. "type": "graph",
  2560. "xaxis": {
  2561. "buckets": 20,
  2562. "mode": "histogram",
  2563. "name": null,
  2564. "show": true,
  2565. "values": [
  2566. "total"
  2567. ]
  2568. },
  2569. "yaxes": [
  2570. {
  2571. "format": "short",
  2572. "label": null,
  2573. "logBase": 1,
  2574. "max": null,
  2575. "min": "0",
  2576. "show": true
  2577. },
  2578. {
  2579. "format": "short",
  2580. "label": null,
  2581. "logBase": 1,
  2582. "max": null,
  2583. "min": null,
  2584. "show": true
  2585. }
  2586. ],
  2587. "yaxis": {
  2588. "align": false,
  2589. "alignLevel": null
  2590. }
  2591. },
  2592. {
  2593. "aliasColors": {},
  2594. "bars": true,
  2595. "dashLength": 10,
  2596. "dashes": false,
  2597. "datasource": "gdev-mssql-ds-tests",
  2598. "fill": 1,
  2599. "gridPos": {
  2600. "h": 8,
  2601. "w": 12,
  2602. "x": 0,
  2603. "y": 91
  2604. },
  2605. "id": 23,
  2606. "legend": {
  2607. "alignAsTable": true,
  2608. "avg": true,
  2609. "current": true,
  2610. "max": true,
  2611. "min": true,
  2612. "rightSide": true,
  2613. "show": false,
  2614. "total": true,
  2615. "values": true
  2616. },
  2617. "lines": false,
  2618. "linewidth": 1,
  2619. "links": [],
  2620. "nullPointMode": "null",
  2621. "percentage": true,
  2622. "pointradius": 5,
  2623. "points": false,
  2624. "renderer": "flot",
  2625. "seriesOverrides": [],
  2626. "spaceLength": 10,
  2627. "stack": true,
  2628. "steppedLine": false,
  2629. "targets": [
  2630. {
  2631. "alias": "",
  2632. "format": "time_series",
  2633. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2634. "refId": "A"
  2635. }
  2636. ],
  2637. "thresholds": [],
  2638. "timeFrom": null,
  2639. "timeShift": null,
  2640. "title": "Multiple series with metric column - histogram stacked percent",
  2641. "tooltip": {
  2642. "shared": true,
  2643. "sort": 0,
  2644. "value_type": "individual"
  2645. },
  2646. "type": "graph",
  2647. "xaxis": {
  2648. "buckets": 20,
  2649. "mode": "histogram",
  2650. "name": null,
  2651. "show": true,
  2652. "values": [
  2653. "current"
  2654. ]
  2655. },
  2656. "yaxes": [
  2657. {
  2658. "decimals": null,
  2659. "format": "short",
  2660. "label": null,
  2661. "logBase": 1,
  2662. "max": null,
  2663. "min": "0",
  2664. "show": true
  2665. },
  2666. {
  2667. "format": "short",
  2668. "label": null,
  2669. "logBase": 1,
  2670. "max": null,
  2671. "min": null,
  2672. "show": true
  2673. }
  2674. ],
  2675. "yaxis": {
  2676. "align": false,
  2677. "alignLevel": null
  2678. }
  2679. },
  2680. {
  2681. "aliasColors": {},
  2682. "bars": true,
  2683. "dashLength": 10,
  2684. "dashes": false,
  2685. "datasource": "gdev-mssql-ds-tests",
  2686. "fill": 1,
  2687. "gridPos": {
  2688. "h": 8,
  2689. "w": 12,
  2690. "x": 12,
  2691. "y": 91
  2692. },
  2693. "id": 24,
  2694. "legend": {
  2695. "alignAsTable": true,
  2696. "avg": true,
  2697. "current": true,
  2698. "max": true,
  2699. "min": true,
  2700. "rightSide": true,
  2701. "show": false,
  2702. "total": true,
  2703. "values": true
  2704. },
  2705. "lines": false,
  2706. "linewidth": 1,
  2707. "links": [],
  2708. "nullPointMode": "null",
  2709. "percentage": true,
  2710. "pointradius": 5,
  2711. "points": false,
  2712. "renderer": "flot",
  2713. "seriesOverrides": [],
  2714. "spaceLength": 10,
  2715. "stack": true,
  2716. "steppedLine": false,
  2717. "targets": [
  2718. {
  2719. "alias": "",
  2720. "format": "time_series",
  2721. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values \nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2722. "refId": "A"
  2723. }
  2724. ],
  2725. "thresholds": [],
  2726. "timeFrom": null,
  2727. "timeShift": null,
  2728. "title": "Multiple series without metric column - histogram stacked percent",
  2729. "tooltip": {
  2730. "shared": true,
  2731. "sort": 0,
  2732. "value_type": "individual"
  2733. },
  2734. "type": "graph",
  2735. "xaxis": {
  2736. "buckets": 20,
  2737. "mode": "histogram",
  2738. "name": null,
  2739. "show": true,
  2740. "values": [
  2741. "total"
  2742. ]
  2743. },
  2744. "yaxes": [
  2745. {
  2746. "format": "short",
  2747. "label": null,
  2748. "logBase": 1,
  2749. "max": null,
  2750. "min": "0",
  2751. "show": true
  2752. },
  2753. {
  2754. "format": "short",
  2755. "label": null,
  2756. "logBase": 1,
  2757. "max": null,
  2758. "min": null,
  2759. "show": true
  2760. }
  2761. ],
  2762. "yaxis": {
  2763. "align": false,
  2764. "alignLevel": null
  2765. }
  2766. }
  2767. ],
  2768. "refresh": false,
  2769. "schemaVersion": 16,
  2770. "style": "dark",
  2771. "tags": [
  2772. "gdev",
  2773. "mssql"
  2774. ],
  2775. "templating": {
  2776. "list": [
  2777. {
  2778. "allValue": "'ALL'",
  2779. "current": {
  2780. "selected": true,
  2781. "tags": [],
  2782. "text": "All",
  2783. "value": "$__all"
  2784. },
  2785. "datasource": "gdev-mssql-ds-tests",
  2786. "hide": 0,
  2787. "includeAll": true,
  2788. "label": "Metric",
  2789. "multi": false,
  2790. "name": "metric",
  2791. "options": [
  2792. {
  2793. "selected": true,
  2794. "text": "All",
  2795. "value": "$__all"
  2796. },
  2797. {
  2798. "selected": false,
  2799. "text": "Metric A",
  2800. "value": "Metric A"
  2801. },
  2802. {
  2803. "selected": false,
  2804. "text": "Metric B",
  2805. "value": "Metric B"
  2806. }
  2807. ],
  2808. "query": "SELECT DISTINCT measurement FROM metric_values",
  2809. "refresh": 0,
  2810. "regex": "",
  2811. "skipUrlSync": false,
  2812. "sort": 0,
  2813. "tagValuesQuery": "",
  2814. "tags": [],
  2815. "tagsQuery": "",
  2816. "type": "query",
  2817. "useTags": false
  2818. },
  2819. {
  2820. "auto": false,
  2821. "auto_count": 30,
  2822. "auto_min": "10s",
  2823. "current": {
  2824. "text": "10m",
  2825. "value": "10m"
  2826. },
  2827. "hide": 0,
  2828. "label": "Interval",
  2829. "name": "summarize",
  2830. "options": [
  2831. {
  2832. "selected": false,
  2833. "text": "1s",
  2834. "value": "1s"
  2835. },
  2836. {
  2837. "selected": false,
  2838. "text": "10s",
  2839. "value": "10s"
  2840. },
  2841. {
  2842. "selected": false,
  2843. "text": "30s",
  2844. "value": "30s"
  2845. },
  2846. {
  2847. "selected": false,
  2848. "text": "1m",
  2849. "value": "1m"
  2850. },
  2851. {
  2852. "selected": false,
  2853. "text": "5m",
  2854. "value": "5m"
  2855. },
  2856. {
  2857. "selected": true,
  2858. "text": "10m",
  2859. "value": "10m"
  2860. }
  2861. ],
  2862. "query": "1s,10s,30s,1m,5m,10m",
  2863. "refresh": 2,
  2864. "skipUrlSync": false,
  2865. "type": "interval"
  2866. }
  2867. ]
  2868. },
  2869. "time": {
  2870. "from": "2018-03-15T12:30:00.000Z",
  2871. "to": "2018-03-15T13:55:01.000Z"
  2872. },
  2873. "timepicker": {
  2874. "refresh_intervals": [
  2875. "5s",
  2876. "10s",
  2877. "30s",
  2878. "1m",
  2879. "5m",
  2880. "15m",
  2881. "30m",
  2882. "1h",
  2883. "2h",
  2884. "1d"
  2885. ],
  2886. "time_options": [
  2887. "5m",
  2888. "15m",
  2889. "1h",
  2890. "6h",
  2891. "12h",
  2892. "24h",
  2893. "2d",
  2894. "7d",
  2895. "30d"
  2896. ]
  2897. },
  2898. "timezone": "",
  2899. "title": "Datasource tests - MSSQL (unit test)",
  2900. "uid": "GlAqcPgmz",
  2901. "version": 2
  2902. }