datasource_tests_mssql_unittest.json 61 KB

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