datasource_tests_mysql_unittest.json 55 KB

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