dashboard.json 59 KB

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