datasource_tests_mysql_unittest.json 57 KB

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