dashboard.json 47 KB

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