dashboard.json 61 KB

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