datasource_tests_mssql_unittest.json 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712
  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": 1533713720618,
  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": 4,
  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 $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1231. "refId": "A"
  1232. }
  1233. ],
  1234. "thresholds": [],
  1235. "timeFrom": null,
  1236. "timeShift": null,
  1237. "title": "Multiple series with metric column",
  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": 28,
  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. "spaceLength": 10,
  1309. "stack": false,
  1310. "steppedLine": false,
  1311. "targets": [
  1312. {
  1313. "alias": "",
  1314. "format": "time_series",
  1315. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values ORDER BY 1",
  1316. "refId": "A"
  1317. }
  1318. ],
  1319. "thresholds": [],
  1320. "timeFrom": null,
  1321. "timeShift": null,
  1322. "title": "Multiple series without metric column",
  1323. "tooltip": {
  1324. "shared": true,
  1325. "sort": 0,
  1326. "value_type": "individual"
  1327. },
  1328. "type": "graph",
  1329. "xaxis": {
  1330. "buckets": null,
  1331. "mode": "time",
  1332. "name": null,
  1333. "show": true,
  1334. "values": []
  1335. },
  1336. "yaxes": [
  1337. {
  1338. "format": "short",
  1339. "label": null,
  1340. "logBase": 1,
  1341. "max": null,
  1342. "min": "0",
  1343. "show": true
  1344. },
  1345. {
  1346. "format": "short",
  1347. "label": null,
  1348. "logBase": 1,
  1349. "max": null,
  1350. "min": null,
  1351. "show": true
  1352. }
  1353. ],
  1354. "yaxis": {
  1355. "align": false,
  1356. "alignLevel": null
  1357. }
  1358. },
  1359. {
  1360. "aliasColors": {},
  1361. "bars": false,
  1362. "dashLength": 10,
  1363. "dashes": false,
  1364. "datasource": "gdev-mssql-ds-tests",
  1365. "fill": 2,
  1366. "gridPos": {
  1367. "h": 8,
  1368. "w": 12,
  1369. "x": 0,
  1370. "y": 35
  1371. },
  1372. "id": 19,
  1373. "legend": {
  1374. "alignAsTable": true,
  1375. "avg": true,
  1376. "current": true,
  1377. "hideEmpty": false,
  1378. "hideZero": false,
  1379. "max": true,
  1380. "min": true,
  1381. "rightSide": true,
  1382. "show": true,
  1383. "total": true,
  1384. "values": true
  1385. },
  1386. "lines": true,
  1387. "linewidth": 2,
  1388. "links": [],
  1389. "nullPointMode": "null",
  1390. "percentage": false,
  1391. "pointradius": 3,
  1392. "points": false,
  1393. "renderer": "flot",
  1394. "seriesOverrides": [],
  1395. "spaceLength": 10,
  1396. "stack": true,
  1397. "steppedLine": false,
  1398. "targets": [
  1399. {
  1400. "alias": "",
  1401. "format": "time_series",
  1402. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1403. "refId": "A"
  1404. }
  1405. ],
  1406. "thresholds": [],
  1407. "timeFrom": null,
  1408. "timeShift": null,
  1409. "title": "Multiple series with metric column - stacked",
  1410. "tooltip": {
  1411. "shared": true,
  1412. "sort": 0,
  1413. "value_type": "individual"
  1414. },
  1415. "type": "graph",
  1416. "xaxis": {
  1417. "buckets": null,
  1418. "mode": "time",
  1419. "name": null,
  1420. "show": true,
  1421. "values": []
  1422. },
  1423. "yaxes": [
  1424. {
  1425. "format": "short",
  1426. "label": null,
  1427. "logBase": 1,
  1428. "max": null,
  1429. "min": "0",
  1430. "show": true
  1431. },
  1432. {
  1433. "format": "short",
  1434. "label": null,
  1435. "logBase": 1,
  1436. "max": null,
  1437. "min": null,
  1438. "show": true
  1439. }
  1440. ],
  1441. "yaxis": {
  1442. "align": false,
  1443. "alignLevel": null
  1444. }
  1445. },
  1446. {
  1447. "aliasColors": {},
  1448. "bars": false,
  1449. "dashLength": 10,
  1450. "dashes": false,
  1451. "datasource": "gdev-mssql-ds-tests",
  1452. "fill": 2,
  1453. "gridPos": {
  1454. "h": 8,
  1455. "w": 12,
  1456. "x": 12,
  1457. "y": 35
  1458. },
  1459. "id": 18,
  1460. "legend": {
  1461. "alignAsTable": true,
  1462. "avg": true,
  1463. "current": true,
  1464. "max": true,
  1465. "min": true,
  1466. "rightSide": true,
  1467. "show": true,
  1468. "total": true,
  1469. "values": true
  1470. },
  1471. "lines": true,
  1472. "linewidth": 2,
  1473. "links": [],
  1474. "nullPointMode": "null",
  1475. "percentage": false,
  1476. "pointradius": 3,
  1477. "points": false,
  1478. "renderer": "flot",
  1479. "seriesOverrides": [],
  1480. "spaceLength": 10,
  1481. "stack": true,
  1482. "steppedLine": false,
  1483. "targets": [
  1484. {
  1485. "alias": "",
  1486. "format": "time_series",
  1487. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1488. "refId": "A"
  1489. }
  1490. ],
  1491. "thresholds": [],
  1492. "timeFrom": null,
  1493. "timeShift": null,
  1494. "title": "Multiple series without metric column - stacked",
  1495. "tooltip": {
  1496. "shared": true,
  1497. "sort": 0,
  1498. "value_type": "individual"
  1499. },
  1500. "type": "graph",
  1501. "xaxis": {
  1502. "buckets": null,
  1503. "mode": "time",
  1504. "name": null,
  1505. "show": true,
  1506. "values": []
  1507. },
  1508. "yaxes": [
  1509. {
  1510. "format": "short",
  1511. "label": null,
  1512. "logBase": 1,
  1513. "max": null,
  1514. "min": "0",
  1515. "show": true
  1516. },
  1517. {
  1518. "format": "short",
  1519. "label": null,
  1520. "logBase": 1,
  1521. "max": null,
  1522. "min": null,
  1523. "show": true
  1524. }
  1525. ],
  1526. "yaxis": {
  1527. "align": false,
  1528. "alignLevel": null
  1529. }
  1530. },
  1531. {
  1532. "aliasColors": {},
  1533. "bars": false,
  1534. "dashLength": 10,
  1535. "dashes": false,
  1536. "datasource": "gdev-mssql-ds-tests",
  1537. "fill": 2,
  1538. "gridPos": {
  1539. "h": 8,
  1540. "w": 12,
  1541. "x": 0,
  1542. "y": 43
  1543. },
  1544. "id": 17,
  1545. "legend": {
  1546. "alignAsTable": true,
  1547. "avg": true,
  1548. "current": true,
  1549. "hideEmpty": false,
  1550. "hideZero": false,
  1551. "max": true,
  1552. "min": true,
  1553. "rightSide": true,
  1554. "show": true,
  1555. "total": true,
  1556. "values": true
  1557. },
  1558. "lines": true,
  1559. "linewidth": 2,
  1560. "links": [],
  1561. "nullPointMode": "null",
  1562. "percentage": true,
  1563. "pointradius": 3,
  1564. "points": false,
  1565. "renderer": "flot",
  1566. "seriesOverrides": [],
  1567. "spaceLength": 10,
  1568. "stack": true,
  1569. "steppedLine": false,
  1570. "targets": [
  1571. {
  1572. "alias": "",
  1573. "format": "time_series",
  1574. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1575. "refId": "A"
  1576. }
  1577. ],
  1578. "thresholds": [],
  1579. "timeFrom": null,
  1580. "timeShift": null,
  1581. "title": "Multiple series with metric column - stacked percent",
  1582. "tooltip": {
  1583. "shared": true,
  1584. "sort": 0,
  1585. "value_type": "individual"
  1586. },
  1587. "type": "graph",
  1588. "xaxis": {
  1589. "buckets": null,
  1590. "mode": "time",
  1591. "name": null,
  1592. "show": true,
  1593. "values": []
  1594. },
  1595. "yaxes": [
  1596. {
  1597. "format": "short",
  1598. "label": null,
  1599. "logBase": 1,
  1600. "max": null,
  1601. "min": "0",
  1602. "show": true
  1603. },
  1604. {
  1605. "format": "short",
  1606. "label": null,
  1607. "logBase": 1,
  1608. "max": null,
  1609. "min": null,
  1610. "show": true
  1611. }
  1612. ],
  1613. "yaxis": {
  1614. "align": false,
  1615. "alignLevel": null
  1616. }
  1617. },
  1618. {
  1619. "aliasColors": {},
  1620. "bars": false,
  1621. "dashLength": 10,
  1622. "dashes": false,
  1623. "datasource": "gdev-mssql-ds-tests",
  1624. "fill": 2,
  1625. "gridPos": {
  1626. "h": 8,
  1627. "w": 12,
  1628. "x": 12,
  1629. "y": 43
  1630. },
  1631. "id": 20,
  1632. "legend": {
  1633. "alignAsTable": true,
  1634. "avg": true,
  1635. "current": true,
  1636. "max": true,
  1637. "min": true,
  1638. "rightSide": true,
  1639. "show": true,
  1640. "total": true,
  1641. "values": true
  1642. },
  1643. "lines": true,
  1644. "linewidth": 2,
  1645. "links": [],
  1646. "nullPointMode": "null",
  1647. "percentage": true,
  1648. "pointradius": 3,
  1649. "points": false,
  1650. "renderer": "flot",
  1651. "seriesOverrides": [],
  1652. "spaceLength": 10,
  1653. "stack": true,
  1654. "steppedLine": false,
  1655. "targets": [
  1656. {
  1657. "alias": "",
  1658. "format": "time_series",
  1659. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1660. "refId": "A"
  1661. }
  1662. ],
  1663. "thresholds": [],
  1664. "timeFrom": null,
  1665. "timeShift": null,
  1666. "title": "Multiple series without metric column - stacked percent",
  1667. "tooltip": {
  1668. "shared": true,
  1669. "sort": 0,
  1670. "value_type": "individual"
  1671. },
  1672. "type": "graph",
  1673. "xaxis": {
  1674. "buckets": null,
  1675. "mode": "time",
  1676. "name": null,
  1677. "show": true,
  1678. "values": []
  1679. },
  1680. "yaxes": [
  1681. {
  1682. "format": "short",
  1683. "label": null,
  1684. "logBase": 1,
  1685. "max": null,
  1686. "min": "0",
  1687. "show": true
  1688. },
  1689. {
  1690. "format": "short",
  1691. "label": null,
  1692. "logBase": 1,
  1693. "max": null,
  1694. "min": null,
  1695. "show": true
  1696. }
  1697. ],
  1698. "yaxis": {
  1699. "align": false,
  1700. "alignLevel": null
  1701. }
  1702. },
  1703. {
  1704. "aliasColors": {},
  1705. "bars": false,
  1706. "dashLength": 10,
  1707. "dashes": false,
  1708. "datasource": "gdev-mssql-ds-tests",
  1709. "fill": 2,
  1710. "gridPos": {
  1711. "h": 8,
  1712. "w": 12,
  1713. "x": 0,
  1714. "y": 51
  1715. },
  1716. "id": 29,
  1717. "legend": {
  1718. "alignAsTable": true,
  1719. "avg": true,
  1720. "current": true,
  1721. "hideEmpty": false,
  1722. "hideZero": false,
  1723. "max": true,
  1724. "min": true,
  1725. "rightSide": true,
  1726. "show": true,
  1727. "total": true,
  1728. "values": true
  1729. },
  1730. "lines": true,
  1731. "linewidth": 2,
  1732. "links": [],
  1733. "nullPointMode": "null",
  1734. "percentage": false,
  1735. "pointradius": 3,
  1736. "points": false,
  1737. "renderer": "flot",
  1738. "seriesOverrides": [],
  1739. "spaceLength": 10,
  1740. "stack": false,
  1741. "steppedLine": false,
  1742. "targets": [
  1743. {
  1744. "alias": "",
  1745. "format": "time_series",
  1746. "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",
  1747. "refId": "A"
  1748. }
  1749. ],
  1750. "thresholds": [],
  1751. "timeFrom": null,
  1752. "timeShift": null,
  1753. "title": "Stored procedure support using epoch",
  1754. "tooltip": {
  1755. "shared": true,
  1756. "sort": 0,
  1757. "value_type": "individual"
  1758. },
  1759. "type": "graph",
  1760. "xaxis": {
  1761. "buckets": null,
  1762. "mode": "time",
  1763. "name": null,
  1764. "show": true,
  1765. "values": []
  1766. },
  1767. "yaxes": [
  1768. {
  1769. "format": "short",
  1770. "label": null,
  1771. "logBase": 1,
  1772. "max": null,
  1773. "min": "0",
  1774. "show": true
  1775. },
  1776. {
  1777. "format": "short",
  1778. "label": null,
  1779. "logBase": 1,
  1780. "max": null,
  1781. "min": null,
  1782. "show": true
  1783. }
  1784. ],
  1785. "yaxis": {
  1786. "align": false,
  1787. "alignLevel": null
  1788. }
  1789. },
  1790. {
  1791. "aliasColors": {},
  1792. "bars": false,
  1793. "dashLength": 10,
  1794. "dashes": false,
  1795. "datasource": "gdev-mssql-ds-tests",
  1796. "fill": 2,
  1797. "gridPos": {
  1798. "h": 8,
  1799. "w": 12,
  1800. "x": 12,
  1801. "y": 51
  1802. },
  1803. "id": 30,
  1804. "legend": {
  1805. "alignAsTable": true,
  1806. "avg": true,
  1807. "current": true,
  1808. "hideEmpty": false,
  1809. "hideZero": false,
  1810. "max": true,
  1811. "min": true,
  1812. "rightSide": true,
  1813. "show": true,
  1814. "total": true,
  1815. "values": true
  1816. },
  1817. "lines": true,
  1818. "linewidth": 2,
  1819. "links": [],
  1820. "nullPointMode": "null",
  1821. "percentage": false,
  1822. "pointradius": 3,
  1823. "points": false,
  1824. "renderer": "flot",
  1825. "seriesOverrides": [],
  1826. "spaceLength": 10,
  1827. "stack": false,
  1828. "steppedLine": false,
  1829. "targets": [
  1830. {
  1831. "alias": "",
  1832. "format": "time_series",
  1833. "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",
  1834. "refId": "A"
  1835. }
  1836. ],
  1837. "thresholds": [],
  1838. "timeFrom": null,
  1839. "timeShift": null,
  1840. "title": "Stored procedure support using datetime",
  1841. "tooltip": {
  1842. "shared": true,
  1843. "sort": 0,
  1844. "value_type": "individual"
  1845. },
  1846. "type": "graph",
  1847. "xaxis": {
  1848. "buckets": null,
  1849. "mode": "time",
  1850. "name": null,
  1851. "show": true,
  1852. "values": []
  1853. },
  1854. "yaxes": [
  1855. {
  1856. "format": "short",
  1857. "label": null,
  1858. "logBase": 1,
  1859. "max": null,
  1860. "min": "0",
  1861. "show": true
  1862. },
  1863. {
  1864. "format": "short",
  1865. "label": null,
  1866. "logBase": 1,
  1867. "max": null,
  1868. "min": null,
  1869. "show": true
  1870. }
  1871. ],
  1872. "yaxis": {
  1873. "align": false,
  1874. "alignLevel": null
  1875. }
  1876. },
  1877. {
  1878. "aliasColors": {},
  1879. "bars": true,
  1880. "dashLength": 10,
  1881. "dashes": false,
  1882. "datasource": "gdev-mssql-ds-tests",
  1883. "fill": 1,
  1884. "gridPos": {
  1885. "h": 8,
  1886. "w": 12,
  1887. "x": 0,
  1888. "y": 59
  1889. },
  1890. "id": 14,
  1891. "legend": {
  1892. "alignAsTable": true,
  1893. "avg": true,
  1894. "current": true,
  1895. "max": true,
  1896. "min": true,
  1897. "rightSide": true,
  1898. "show": true,
  1899. "total": true,
  1900. "values": true
  1901. },
  1902. "lines": false,
  1903. "linewidth": 1,
  1904. "links": [],
  1905. "nullPointMode": "null",
  1906. "percentage": false,
  1907. "pointradius": 5,
  1908. "points": false,
  1909. "renderer": "flot",
  1910. "seriesOverrides": [],
  1911. "spaceLength": 10,
  1912. "stack": false,
  1913. "steppedLine": false,
  1914. "targets": [
  1915. {
  1916. "alias": "",
  1917. "format": "time_series",
  1918. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  1919. "refId": "A"
  1920. }
  1921. ],
  1922. "thresholds": [],
  1923. "timeFrom": null,
  1924. "timeShift": null,
  1925. "title": "Multiple series with metric column - series mode",
  1926. "tooltip": {
  1927. "shared": false,
  1928. "sort": 0,
  1929. "value_type": "individual"
  1930. },
  1931. "type": "graph",
  1932. "xaxis": {
  1933. "buckets": null,
  1934. "mode": "series",
  1935. "name": null,
  1936. "show": true,
  1937. "values": [
  1938. "total"
  1939. ]
  1940. },
  1941. "yaxes": [
  1942. {
  1943. "decimals": null,
  1944. "format": "short",
  1945. "label": null,
  1946. "logBase": 1,
  1947. "max": null,
  1948. "min": "0",
  1949. "show": true
  1950. },
  1951. {
  1952. "format": "short",
  1953. "label": null,
  1954. "logBase": 1,
  1955. "max": null,
  1956. "min": null,
  1957. "show": true
  1958. }
  1959. ],
  1960. "yaxis": {
  1961. "align": false,
  1962. "alignLevel": null
  1963. }
  1964. },
  1965. {
  1966. "aliasColors": {},
  1967. "bars": true,
  1968. "dashLength": 10,
  1969. "dashes": false,
  1970. "datasource": "gdev-mssql-ds-tests",
  1971. "fill": 1,
  1972. "gridPos": {
  1973. "h": 8,
  1974. "w": 12,
  1975. "x": 12,
  1976. "y": 59
  1977. },
  1978. "id": 15,
  1979. "legend": {
  1980. "alignAsTable": true,
  1981. "avg": true,
  1982. "current": true,
  1983. "max": true,
  1984. "min": true,
  1985. "rightSide": true,
  1986. "show": true,
  1987. "total": true,
  1988. "values": true
  1989. },
  1990. "lines": false,
  1991. "linewidth": 1,
  1992. "links": [],
  1993. "nullPointMode": "null",
  1994. "percentage": false,
  1995. "pointradius": 5,
  1996. "points": false,
  1997. "renderer": "flot",
  1998. "seriesOverrides": [],
  1999. "spaceLength": 10,
  2000. "stack": false,
  2001. "steppedLine": false,
  2002. "targets": [
  2003. {
  2004. "alias": "",
  2005. "format": "time_series",
  2006. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2007. "refId": "A"
  2008. }
  2009. ],
  2010. "thresholds": [],
  2011. "timeFrom": null,
  2012. "timeShift": null,
  2013. "title": "Multiple series without metric column - series mode",
  2014. "tooltip": {
  2015. "shared": false,
  2016. "sort": 0,
  2017. "value_type": "individual"
  2018. },
  2019. "type": "graph",
  2020. "xaxis": {
  2021. "buckets": null,
  2022. "mode": "series",
  2023. "name": null,
  2024. "show": true,
  2025. "values": [
  2026. "total"
  2027. ]
  2028. },
  2029. "yaxes": [
  2030. {
  2031. "format": "short",
  2032. "label": null,
  2033. "logBase": 1,
  2034. "max": null,
  2035. "min": "0",
  2036. "show": true
  2037. },
  2038. {
  2039. "format": "short",
  2040. "label": null,
  2041. "logBase": 1,
  2042. "max": null,
  2043. "min": null,
  2044. "show": true
  2045. }
  2046. ],
  2047. "yaxis": {
  2048. "align": false,
  2049. "alignLevel": null
  2050. }
  2051. },
  2052. {
  2053. "aliasColors": {},
  2054. "bars": true,
  2055. "dashLength": 10,
  2056. "dashes": false,
  2057. "datasource": "gdev-mssql-ds-tests",
  2058. "fill": 1,
  2059. "gridPos": {
  2060. "h": 8,
  2061. "w": 12,
  2062. "x": 0,
  2063. "y": 67
  2064. },
  2065. "id": 25,
  2066. "legend": {
  2067. "alignAsTable": true,
  2068. "avg": true,
  2069. "current": true,
  2070. "max": true,
  2071. "min": true,
  2072. "rightSide": true,
  2073. "show": false,
  2074. "total": true,
  2075. "values": true
  2076. },
  2077. "lines": false,
  2078. "linewidth": 1,
  2079. "links": [],
  2080. "nullPointMode": "null",
  2081. "percentage": false,
  2082. "pointradius": 5,
  2083. "points": false,
  2084. "renderer": "flot",
  2085. "seriesOverrides": [],
  2086. "spaceLength": 10,
  2087. "stack": false,
  2088. "steppedLine": false,
  2089. "targets": [
  2090. {
  2091. "alias": "",
  2092. "format": "time_series",
  2093. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2094. "refId": "A"
  2095. }
  2096. ],
  2097. "thresholds": [],
  2098. "timeFrom": null,
  2099. "timeShift": null,
  2100. "title": "Multiple series with metric column - histogram",
  2101. "tooltip": {
  2102. "shared": true,
  2103. "sort": 0,
  2104. "value_type": "individual"
  2105. },
  2106. "type": "graph",
  2107. "xaxis": {
  2108. "buckets": 50,
  2109. "mode": "histogram",
  2110. "name": null,
  2111. "show": true,
  2112. "values": [
  2113. "current"
  2114. ]
  2115. },
  2116. "yaxes": [
  2117. {
  2118. "decimals": null,
  2119. "format": "short",
  2120. "label": null,
  2121. "logBase": 1,
  2122. "max": null,
  2123. "min": "0",
  2124. "show": true
  2125. },
  2126. {
  2127. "format": "short",
  2128. "label": null,
  2129. "logBase": 1,
  2130. "max": null,
  2131. "min": null,
  2132. "show": true
  2133. }
  2134. ],
  2135. "yaxis": {
  2136. "align": false,
  2137. "alignLevel": null
  2138. }
  2139. },
  2140. {
  2141. "aliasColors": {},
  2142. "bars": true,
  2143. "dashLength": 10,
  2144. "dashes": false,
  2145. "datasource": "gdev-mssql-ds-tests",
  2146. "fill": 1,
  2147. "gridPos": {
  2148. "h": 8,
  2149. "w": 12,
  2150. "x": 12,
  2151. "y": 67
  2152. },
  2153. "id": 22,
  2154. "legend": {
  2155. "alignAsTable": true,
  2156. "avg": true,
  2157. "current": true,
  2158. "max": true,
  2159. "min": true,
  2160. "rightSide": true,
  2161. "show": false,
  2162. "total": true,
  2163. "values": true
  2164. },
  2165. "lines": false,
  2166. "linewidth": 1,
  2167. "links": [],
  2168. "nullPointMode": "null",
  2169. "percentage": false,
  2170. "pointradius": 5,
  2171. "points": false,
  2172. "renderer": "flot",
  2173. "seriesOverrides": [],
  2174. "spaceLength": 10,
  2175. "stack": false,
  2176. "steppedLine": false,
  2177. "targets": [
  2178. {
  2179. "alias": "",
  2180. "format": "time_series",
  2181. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2182. "refId": "A"
  2183. }
  2184. ],
  2185. "thresholds": [],
  2186. "timeFrom": null,
  2187. "timeShift": null,
  2188. "title": "Multiple series without metric column - histogram",
  2189. "tooltip": {
  2190. "shared": true,
  2191. "sort": 0,
  2192. "value_type": "individual"
  2193. },
  2194. "type": "graph",
  2195. "xaxis": {
  2196. "buckets": 100,
  2197. "mode": "histogram",
  2198. "name": null,
  2199. "show": true,
  2200. "values": [
  2201. "total"
  2202. ]
  2203. },
  2204. "yaxes": [
  2205. {
  2206. "format": "short",
  2207. "label": null,
  2208. "logBase": 1,
  2209. "max": null,
  2210. "min": "0",
  2211. "show": true
  2212. },
  2213. {
  2214. "format": "short",
  2215. "label": null,
  2216. "logBase": 1,
  2217. "max": null,
  2218. "min": null,
  2219. "show": true
  2220. }
  2221. ],
  2222. "yaxis": {
  2223. "align": false,
  2224. "alignLevel": null
  2225. }
  2226. },
  2227. {
  2228. "aliasColors": {},
  2229. "bars": true,
  2230. "dashLength": 10,
  2231. "dashes": false,
  2232. "datasource": "gdev-mssql-ds-tests",
  2233. "fill": 1,
  2234. "gridPos": {
  2235. "h": 8,
  2236. "w": 12,
  2237. "x": 0,
  2238. "y": 75
  2239. },
  2240. "id": 21,
  2241. "legend": {
  2242. "alignAsTable": true,
  2243. "avg": true,
  2244. "current": true,
  2245. "max": true,
  2246. "min": true,
  2247. "rightSide": true,
  2248. "show": false,
  2249. "total": true,
  2250. "values": true
  2251. },
  2252. "lines": false,
  2253. "linewidth": 1,
  2254. "links": [],
  2255. "nullPointMode": "null",
  2256. "percentage": false,
  2257. "pointradius": 5,
  2258. "points": false,
  2259. "renderer": "flot",
  2260. "seriesOverrides": [],
  2261. "spaceLength": 10,
  2262. "stack": true,
  2263. "steppedLine": false,
  2264. "targets": [
  2265. {
  2266. "alias": "",
  2267. "format": "time_series",
  2268. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2269. "refId": "A"
  2270. }
  2271. ],
  2272. "thresholds": [],
  2273. "timeFrom": null,
  2274. "timeShift": null,
  2275. "title": "Multiple series with metric column - histogram stacked",
  2276. "tooltip": {
  2277. "shared": true,
  2278. "sort": 0,
  2279. "value_type": "individual"
  2280. },
  2281. "type": "graph",
  2282. "xaxis": {
  2283. "buckets": 20,
  2284. "mode": "histogram",
  2285. "name": null,
  2286. "show": true,
  2287. "values": [
  2288. "current"
  2289. ]
  2290. },
  2291. "yaxes": [
  2292. {
  2293. "decimals": null,
  2294. "format": "short",
  2295. "label": null,
  2296. "logBase": 1,
  2297. "max": null,
  2298. "min": "0",
  2299. "show": true
  2300. },
  2301. {
  2302. "format": "short",
  2303. "label": null,
  2304. "logBase": 1,
  2305. "max": null,
  2306. "min": null,
  2307. "show": true
  2308. }
  2309. ],
  2310. "yaxis": {
  2311. "align": false,
  2312. "alignLevel": null
  2313. }
  2314. },
  2315. {
  2316. "aliasColors": {},
  2317. "bars": true,
  2318. "dashLength": 10,
  2319. "dashes": false,
  2320. "datasource": "gdev-mssql-ds-tests",
  2321. "fill": 1,
  2322. "gridPos": {
  2323. "h": 8,
  2324. "w": 12,
  2325. "x": 12,
  2326. "y": 75
  2327. },
  2328. "id": 26,
  2329. "legend": {
  2330. "alignAsTable": true,
  2331. "avg": true,
  2332. "current": true,
  2333. "max": true,
  2334. "min": true,
  2335. "rightSide": true,
  2336. "show": false,
  2337. "total": true,
  2338. "values": true
  2339. },
  2340. "lines": false,
  2341. "linewidth": 1,
  2342. "links": [],
  2343. "nullPointMode": "null",
  2344. "percentage": false,
  2345. "pointradius": 5,
  2346. "points": false,
  2347. "renderer": "flot",
  2348. "seriesOverrides": [],
  2349. "spaceLength": 10,
  2350. "stack": true,
  2351. "steppedLine": false,
  2352. "targets": [
  2353. {
  2354. "alias": "",
  2355. "format": "time_series",
  2356. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values \nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2357. "refId": "A"
  2358. }
  2359. ],
  2360. "thresholds": [],
  2361. "timeFrom": null,
  2362. "timeShift": null,
  2363. "title": "Multiple series without metric column - histogram stacked",
  2364. "tooltip": {
  2365. "shared": true,
  2366. "sort": 0,
  2367. "value_type": "individual"
  2368. },
  2369. "type": "graph",
  2370. "xaxis": {
  2371. "buckets": 20,
  2372. "mode": "histogram",
  2373. "name": null,
  2374. "show": true,
  2375. "values": [
  2376. "total"
  2377. ]
  2378. },
  2379. "yaxes": [
  2380. {
  2381. "format": "short",
  2382. "label": null,
  2383. "logBase": 1,
  2384. "max": null,
  2385. "min": "0",
  2386. "show": true
  2387. },
  2388. {
  2389. "format": "short",
  2390. "label": null,
  2391. "logBase": 1,
  2392. "max": null,
  2393. "min": null,
  2394. "show": true
  2395. }
  2396. ],
  2397. "yaxis": {
  2398. "align": false,
  2399. "alignLevel": null
  2400. }
  2401. },
  2402. {
  2403. "aliasColors": {},
  2404. "bars": true,
  2405. "dashLength": 10,
  2406. "dashes": false,
  2407. "datasource": "gdev-mssql-ds-tests",
  2408. "fill": 1,
  2409. "gridPos": {
  2410. "h": 8,
  2411. "w": 12,
  2412. "x": 0,
  2413. "y": 83
  2414. },
  2415. "id": 23,
  2416. "legend": {
  2417. "alignAsTable": true,
  2418. "avg": true,
  2419. "current": true,
  2420. "max": true,
  2421. "min": true,
  2422. "rightSide": true,
  2423. "show": false,
  2424. "total": true,
  2425. "values": true
  2426. },
  2427. "lines": false,
  2428. "linewidth": 1,
  2429. "links": [],
  2430. "nullPointMode": "null",
  2431. "percentage": true,
  2432. "pointradius": 5,
  2433. "points": false,
  2434. "renderer": "flot",
  2435. "seriesOverrides": [],
  2436. "spaceLength": 10,
  2437. "stack": true,
  2438. "steppedLine": false,
  2439. "targets": [
  2440. {
  2441. "alias": "",
  2442. "format": "time_series",
  2443. "rawSql": "SELECT $__timeEpoch(time), measurement as metric, valueOne, valueTwo FROM metric_values WHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2444. "refId": "A"
  2445. }
  2446. ],
  2447. "thresholds": [],
  2448. "timeFrom": null,
  2449. "timeShift": null,
  2450. "title": "Multiple series with metric column - histogram stacked percent",
  2451. "tooltip": {
  2452. "shared": true,
  2453. "sort": 0,
  2454. "value_type": "individual"
  2455. },
  2456. "type": "graph",
  2457. "xaxis": {
  2458. "buckets": 20,
  2459. "mode": "histogram",
  2460. "name": null,
  2461. "show": true,
  2462. "values": [
  2463. "current"
  2464. ]
  2465. },
  2466. "yaxes": [
  2467. {
  2468. "decimals": null,
  2469. "format": "short",
  2470. "label": null,
  2471. "logBase": 1,
  2472. "max": null,
  2473. "min": "0",
  2474. "show": true
  2475. },
  2476. {
  2477. "format": "short",
  2478. "label": null,
  2479. "logBase": 1,
  2480. "max": null,
  2481. "min": null,
  2482. "show": true
  2483. }
  2484. ],
  2485. "yaxis": {
  2486. "align": false,
  2487. "alignLevel": null
  2488. }
  2489. },
  2490. {
  2491. "aliasColors": {},
  2492. "bars": true,
  2493. "dashLength": 10,
  2494. "dashes": false,
  2495. "datasource": "gdev-mssql-ds-tests",
  2496. "fill": 1,
  2497. "gridPos": {
  2498. "h": 8,
  2499. "w": 12,
  2500. "x": 12,
  2501. "y": 83
  2502. },
  2503. "id": 24,
  2504. "legend": {
  2505. "alignAsTable": true,
  2506. "avg": true,
  2507. "current": true,
  2508. "max": true,
  2509. "min": true,
  2510. "rightSide": true,
  2511. "show": false,
  2512. "total": true,
  2513. "values": true
  2514. },
  2515. "lines": false,
  2516. "linewidth": 1,
  2517. "links": [],
  2518. "nullPointMode": "null",
  2519. "percentage": true,
  2520. "pointradius": 5,
  2521. "points": false,
  2522. "renderer": "flot",
  2523. "seriesOverrides": [],
  2524. "spaceLength": 10,
  2525. "stack": true,
  2526. "steppedLine": false,
  2527. "targets": [
  2528. {
  2529. "alias": "",
  2530. "format": "time_series",
  2531. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values \nWHERE $__timeFilter(time) AND ($metric = 'ALL' OR measurement = $metric) ORDER BY 1",
  2532. "refId": "A"
  2533. }
  2534. ],
  2535. "thresholds": [],
  2536. "timeFrom": null,
  2537. "timeShift": null,
  2538. "title": "Multiple series without metric column - histogram stacked percent",
  2539. "tooltip": {
  2540. "shared": true,
  2541. "sort": 0,
  2542. "value_type": "individual"
  2543. },
  2544. "type": "graph",
  2545. "xaxis": {
  2546. "buckets": 20,
  2547. "mode": "histogram",
  2548. "name": null,
  2549. "show": true,
  2550. "values": [
  2551. "total"
  2552. ]
  2553. },
  2554. "yaxes": [
  2555. {
  2556. "format": "short",
  2557. "label": null,
  2558. "logBase": 1,
  2559. "max": null,
  2560. "min": "0",
  2561. "show": true
  2562. },
  2563. {
  2564. "format": "short",
  2565. "label": null,
  2566. "logBase": 1,
  2567. "max": null,
  2568. "min": null,
  2569. "show": true
  2570. }
  2571. ],
  2572. "yaxis": {
  2573. "align": false,
  2574. "alignLevel": null
  2575. }
  2576. }
  2577. ],
  2578. "refresh": false,
  2579. "schemaVersion": 16,
  2580. "style": "dark",
  2581. "tags": [
  2582. "gdev",
  2583. "mssql"
  2584. ],
  2585. "templating": {
  2586. "list": [
  2587. {
  2588. "allValue": "'ALL'",
  2589. "current": {
  2590. "selected": true,
  2591. "tags": [],
  2592. "text": "All",
  2593. "value": "$__all"
  2594. },
  2595. "datasource": "gdev-mssql-ds-tests",
  2596. "hide": 0,
  2597. "includeAll": true,
  2598. "label": "Metric",
  2599. "multi": false,
  2600. "name": "metric",
  2601. "options": [
  2602. {
  2603. "selected": true,
  2604. "text": "All",
  2605. "value": "$__all"
  2606. },
  2607. {
  2608. "selected": false,
  2609. "text": "Metric A",
  2610. "value": "Metric A"
  2611. },
  2612. {
  2613. "selected": false,
  2614. "text": "Metric B",
  2615. "value": "Metric B"
  2616. }
  2617. ],
  2618. "query": "SELECT DISTINCT measurement FROM metric_values",
  2619. "refresh": 0,
  2620. "regex": "",
  2621. "skipUrlSync": false,
  2622. "sort": 0,
  2623. "tagValuesQuery": "",
  2624. "tags": [],
  2625. "tagsQuery": "",
  2626. "type": "query",
  2627. "useTags": false
  2628. },
  2629. {
  2630. "auto": false,
  2631. "auto_count": 30,
  2632. "auto_min": "10s",
  2633. "current": {
  2634. "text": "10m",
  2635. "value": "10m"
  2636. },
  2637. "hide": 0,
  2638. "label": "Interval",
  2639. "name": "summarize",
  2640. "options": [
  2641. {
  2642. "selected": false,
  2643. "text": "1s",
  2644. "value": "1s"
  2645. },
  2646. {
  2647. "selected": false,
  2648. "text": "10s",
  2649. "value": "10s"
  2650. },
  2651. {
  2652. "selected": false,
  2653. "text": "30s",
  2654. "value": "30s"
  2655. },
  2656. {
  2657. "selected": false,
  2658. "text": "1m",
  2659. "value": "1m"
  2660. },
  2661. {
  2662. "selected": false,
  2663. "text": "5m",
  2664. "value": "5m"
  2665. },
  2666. {
  2667. "selected": true,
  2668. "text": "10m",
  2669. "value": "10m"
  2670. }
  2671. ],
  2672. "query": "1s,10s,30s,1m,5m,10m",
  2673. "refresh": 2,
  2674. "skipUrlSync": false,
  2675. "type": "interval"
  2676. }
  2677. ]
  2678. },
  2679. "time": {
  2680. "from": "2018-03-15T12:30:00.000Z",
  2681. "to": "2018-03-15T13:55:01.000Z"
  2682. },
  2683. "timepicker": {
  2684. "refresh_intervals": [
  2685. "5s",
  2686. "10s",
  2687. "30s",
  2688. "1m",
  2689. "5m",
  2690. "15m",
  2691. "30m",
  2692. "1h",
  2693. "2h",
  2694. "1d"
  2695. ],
  2696. "time_options": [
  2697. "5m",
  2698. "15m",
  2699. "1h",
  2700. "6h",
  2701. "12h",
  2702. "24h",
  2703. "2d",
  2704. "7d",
  2705. "30d"
  2706. ]
  2707. },
  2708. "timezone": "",
  2709. "title": "Datasource tests - MSSQL (unit test)",
  2710. "uid": "GlAqcPgmz",
  2711. "version": 10
  2712. }