datasource_tests_mysql_unittest.json 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409
  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": 1532620354037,
  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": 9,
  342. "w": 8,
  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 $__timeGroup(time, '5m') AS time, 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": 9,
  425. "w": 8,
  426. "x": 8,
  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 $__timeGroup(time, '5m', NULL) AS time, 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": 9,
  508. "w": 8,
  509. "x": 16,
  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 $__timeGroup(time, '5m', 10.0) AS time, 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": true,
  585. "dashLength": 10,
  586. "dashes": false,
  587. "datasource": "gdev-mysql-ds-tests",
  588. "fill": 2,
  589. "gridPos": {
  590. "h": 9,
  591. "w": 8,
  592. "x": 0,
  593. "y": 16
  594. },
  595. "id": 16,
  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": false,
  606. "linewidth": 2,
  607. "links": [],
  608. "nullPointMode": "null",
  609. "percentage": false,
  610. "pointradius": 3,
  611. "points": false,
  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 $__timeGroup(time, '$summarize') AS time, 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": "Metrics - timeGroup macro $summarize without fill",
  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": null,
  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": 9,
  674. "w": 8,
  675. "x": 8,
  676. "y": 16
  677. },
  678. "id": 12,
  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 as zero",
  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 $__timeGroup(time, '$summarize', NULL) AS time, sum(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 with fill(NULL)",
  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": 9,
  757. "w": 8,
  758. "x": 16,
  759. "y": 16
  760. },
  761. "id": 13,
  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",
  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 $__timeGroup(time, '$summarize', 100.0) AS time, 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(100.0)",
  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": false,
  834. "dashLength": 10,
  835. "dashes": false,
  836. "datasource": "gdev-mysql-ds-tests",
  837. "fill": 2,
  838. "gridPos": {
  839. "h": 8,
  840. "w": 12,
  841. "x": 0,
  842. "y": 25
  843. },
  844. "id": 27,
  845. "legend": {
  846. "alignAsTable": true,
  847. "avg": true,
  848. "current": true,
  849. "hideEmpty": false,
  850. "hideZero": false,
  851. "max": true,
  852. "min": true,
  853. "rightSide": true,
  854. "show": true,
  855. "total": true,
  856. "values": true
  857. },
  858. "lines": true,
  859. "linewidth": 2,
  860. "links": [],
  861. "nullPointMode": "null",
  862. "percentage": false,
  863. "pointradius": 3,
  864. "points": false,
  865. "renderer": "flot",
  866. "seriesOverrides": [],
  867. "spaceLength": 10,
  868. "stack": false,
  869. "steppedLine": false,
  870. "targets": [
  871. {
  872. "alias": "",
  873. "format": "time_series",
  874. "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",
  875. "refId": "A"
  876. },
  877. {
  878. "alias": "",
  879. "format": "time_series",
  880. "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",
  881. "refId": "B"
  882. }
  883. ],
  884. "thresholds": [],
  885. "timeFrom": null,
  886. "timeShift": null,
  887. "title": "Multiple series with metric column using timeGroup macro ($summarize)",
  888. "tooltip": {
  889. "shared": true,
  890. "sort": 0,
  891. "value_type": "individual"
  892. },
  893. "type": "graph",
  894. "xaxis": {
  895. "buckets": null,
  896. "mode": "time",
  897. "name": null,
  898. "show": true,
  899. "values": []
  900. },
  901. "yaxes": [
  902. {
  903. "format": "short",
  904. "label": null,
  905. "logBase": 1,
  906. "max": null,
  907. "min": "0",
  908. "show": true
  909. },
  910. {
  911. "format": "short",
  912. "label": null,
  913. "logBase": 1,
  914. "max": null,
  915. "min": null,
  916. "show": true
  917. }
  918. ],
  919. "yaxis": {
  920. "align": false,
  921. "alignLevel": null
  922. }
  923. },
  924. {
  925. "aliasColors": {},
  926. "bars": false,
  927. "dashLength": 10,
  928. "dashes": false,
  929. "datasource": "gdev-mysql-ds-tests",
  930. "fill": 2,
  931. "gridPos": {
  932. "h": 8,
  933. "w": 12,
  934. "x": 12,
  935. "y": 25
  936. },
  937. "id": 5,
  938. "legend": {
  939. "alignAsTable": true,
  940. "avg": true,
  941. "current": true,
  942. "max": true,
  943. "min": true,
  944. "rightSide": true,
  945. "show": true,
  946. "total": true,
  947. "values": true
  948. },
  949. "lines": true,
  950. "linewidth": 2,
  951. "links": [],
  952. "nullPointMode": "null",
  953. "percentage": false,
  954. "pointradius": 3,
  955. "points": false,
  956. "renderer": "flot",
  957. "seriesOverrides": [
  958. {
  959. "alias": "MovingAverageValueOne",
  960. "dashes": true,
  961. "lines": false
  962. },
  963. {
  964. "alias": "MovingAverageValueTwo",
  965. "dashes": true,
  966. "lines": false,
  967. "yaxis": 1
  968. }
  969. ],
  970. "spaceLength": 10,
  971. "stack": false,
  972. "steppedLine": false,
  973. "targets": [
  974. {
  975. "alias": "",
  976. "format": "time_series",
  977. "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",
  978. "refId": "A"
  979. }
  980. ],
  981. "thresholds": [],
  982. "timeFrom": null,
  983. "timeShift": null,
  984. "title": "Multiple series without metric column using timeGroup macro ($summarize)",
  985. "tooltip": {
  986. "shared": true,
  987. "sort": 0,
  988. "value_type": "individual"
  989. },
  990. "type": "graph",
  991. "xaxis": {
  992. "buckets": null,
  993. "mode": "time",
  994. "name": null,
  995. "show": true,
  996. "values": []
  997. },
  998. "yaxes": [
  999. {
  1000. "format": "short",
  1001. "label": null,
  1002. "logBase": 1,
  1003. "max": null,
  1004. "min": "0",
  1005. "show": true
  1006. },
  1007. {
  1008. "format": "short",
  1009. "label": null,
  1010. "logBase": 1,
  1011. "max": null,
  1012. "min": null,
  1013. "show": true
  1014. }
  1015. ],
  1016. "yaxis": {
  1017. "align": false,
  1018. "alignLevel": null
  1019. }
  1020. },
  1021. {
  1022. "aliasColors": {},
  1023. "bars": false,
  1024. "dashLength": 10,
  1025. "dashes": false,
  1026. "datasource": "gdev-mysql-ds-tests",
  1027. "fill": 2,
  1028. "gridPos": {
  1029. "h": 8,
  1030. "w": 12,
  1031. "x": 0,
  1032. "y": 33
  1033. },
  1034. "id": 4,
  1035. "legend": {
  1036. "alignAsTable": true,
  1037. "avg": true,
  1038. "current": true,
  1039. "hideEmpty": false,
  1040. "hideZero": false,
  1041. "max": true,
  1042. "min": true,
  1043. "rightSide": true,
  1044. "show": true,
  1045. "total": true,
  1046. "values": true
  1047. },
  1048. "lines": true,
  1049. "linewidth": 2,
  1050. "links": [],
  1051. "nullPointMode": "null",
  1052. "percentage": false,
  1053. "pointradius": 3,
  1054. "points": false,
  1055. "renderer": "flot",
  1056. "seriesOverrides": [],
  1057. "spaceLength": 10,
  1058. "stack": false,
  1059. "steppedLine": false,
  1060. "targets": [
  1061. {
  1062. "alias": "",
  1063. "format": "time_series",
  1064. "rawSql": "SELECT $__time(time), CONCAT(measurement, ' - value one') as metric, valueOne FROM metric_values WHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1065. "refId": "A"
  1066. },
  1067. {
  1068. "alias": "",
  1069. "format": "time_series",
  1070. "rawSql": "SELECT $__time(time), CONCAT(measurement, ' - value two') as metric, valueTwo FROM metric_values WHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1071. "refId": "B"
  1072. }
  1073. ],
  1074. "thresholds": [],
  1075. "timeFrom": null,
  1076. "timeShift": null,
  1077. "title": "Multiple series with metric column",
  1078. "tooltip": {
  1079. "shared": true,
  1080. "sort": 0,
  1081. "value_type": "individual"
  1082. },
  1083. "type": "graph",
  1084. "xaxis": {
  1085. "buckets": null,
  1086. "mode": "time",
  1087. "name": null,
  1088. "show": true,
  1089. "values": []
  1090. },
  1091. "yaxes": [
  1092. {
  1093. "format": "short",
  1094. "label": null,
  1095. "logBase": 1,
  1096. "max": null,
  1097. "min": "0",
  1098. "show": true
  1099. },
  1100. {
  1101. "format": "short",
  1102. "label": null,
  1103. "logBase": 1,
  1104. "max": null,
  1105. "min": null,
  1106. "show": true
  1107. }
  1108. ],
  1109. "yaxis": {
  1110. "align": false,
  1111. "alignLevel": null
  1112. }
  1113. },
  1114. {
  1115. "aliasColors": {},
  1116. "bars": false,
  1117. "dashLength": 10,
  1118. "dashes": false,
  1119. "datasource": "gdev-mysql-ds-tests",
  1120. "fill": 2,
  1121. "gridPos": {
  1122. "h": 8,
  1123. "w": 12,
  1124. "x": 12,
  1125. "y": 33
  1126. },
  1127. "id": 28,
  1128. "legend": {
  1129. "alignAsTable": true,
  1130. "avg": true,
  1131. "current": true,
  1132. "max": true,
  1133. "min": true,
  1134. "rightSide": true,
  1135. "show": true,
  1136. "total": true,
  1137. "values": true
  1138. },
  1139. "lines": true,
  1140. "linewidth": 2,
  1141. "links": [],
  1142. "nullPointMode": "null",
  1143. "percentage": false,
  1144. "pointradius": 3,
  1145. "points": false,
  1146. "renderer": "flot",
  1147. "seriesOverrides": [],
  1148. "spaceLength": 10,
  1149. "stack": false,
  1150. "steppedLine": false,
  1151. "targets": [
  1152. {
  1153. "alias": "",
  1154. "format": "time_series",
  1155. "rawSql": "SELECT $__time(time), valueOne, valueTwo FROM metric_values ORDER BY 1",
  1156. "refId": "A"
  1157. }
  1158. ],
  1159. "thresholds": [],
  1160. "timeFrom": null,
  1161. "timeShift": null,
  1162. "title": "Multiple series without metric column",
  1163. "tooltip": {
  1164. "shared": true,
  1165. "sort": 0,
  1166. "value_type": "individual"
  1167. },
  1168. "type": "graph",
  1169. "xaxis": {
  1170. "buckets": null,
  1171. "mode": "time",
  1172. "name": null,
  1173. "show": true,
  1174. "values": []
  1175. },
  1176. "yaxes": [
  1177. {
  1178. "format": "short",
  1179. "label": null,
  1180. "logBase": 1,
  1181. "max": null,
  1182. "min": "0",
  1183. "show": true
  1184. },
  1185. {
  1186. "format": "short",
  1187. "label": null,
  1188. "logBase": 1,
  1189. "max": null,
  1190. "min": null,
  1191. "show": true
  1192. }
  1193. ],
  1194. "yaxis": {
  1195. "align": false,
  1196. "alignLevel": null
  1197. }
  1198. },
  1199. {
  1200. "aliasColors": {},
  1201. "bars": false,
  1202. "dashLength": 10,
  1203. "dashes": false,
  1204. "datasource": "gdev-mysql-ds-tests",
  1205. "fill": 2,
  1206. "gridPos": {
  1207. "h": 8,
  1208. "w": 12,
  1209. "x": 0,
  1210. "y": 41
  1211. },
  1212. "id": 19,
  1213. "legend": {
  1214. "alignAsTable": true,
  1215. "avg": true,
  1216. "current": true,
  1217. "hideEmpty": false,
  1218. "hideZero": false,
  1219. "max": true,
  1220. "min": true,
  1221. "rightSide": true,
  1222. "show": true,
  1223. "total": true,
  1224. "values": true
  1225. },
  1226. "lines": true,
  1227. "linewidth": 2,
  1228. "links": [],
  1229. "nullPointMode": "null",
  1230. "percentage": false,
  1231. "pointradius": 3,
  1232. "points": false,
  1233. "renderer": "flot",
  1234. "seriesOverrides": [],
  1235. "spaceLength": 10,
  1236. "stack": true,
  1237. "steppedLine": false,
  1238. "targets": [
  1239. {
  1240. "alias": "",
  1241. "format": "time_series",
  1242. "rawSql": "SELECT $__time(time), CONCAT(measurement, ' - value one') as metric, valueOne FROM metric_values WHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1243. "refId": "A"
  1244. },
  1245. {
  1246. "alias": "",
  1247. "format": "time_series",
  1248. "rawSql": "SELECT $__time(time), CONCAT(measurement, ' - value two') as metric, valueTwo FROM metric_values WHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1249. "refId": "B"
  1250. }
  1251. ],
  1252. "thresholds": [],
  1253. "timeFrom": null,
  1254. "timeShift": null,
  1255. "title": "Multiple series with metric column - stacked",
  1256. "tooltip": {
  1257. "shared": true,
  1258. "sort": 0,
  1259. "value_type": "individual"
  1260. },
  1261. "type": "graph",
  1262. "xaxis": {
  1263. "buckets": null,
  1264. "mode": "time",
  1265. "name": null,
  1266. "show": true,
  1267. "values": []
  1268. },
  1269. "yaxes": [
  1270. {
  1271. "format": "short",
  1272. "label": null,
  1273. "logBase": 1,
  1274. "max": null,
  1275. "min": "0",
  1276. "show": true
  1277. },
  1278. {
  1279. "format": "short",
  1280. "label": null,
  1281. "logBase": 1,
  1282. "max": null,
  1283. "min": null,
  1284. "show": true
  1285. }
  1286. ],
  1287. "yaxis": {
  1288. "align": false,
  1289. "alignLevel": null
  1290. }
  1291. },
  1292. {
  1293. "aliasColors": {},
  1294. "bars": false,
  1295. "dashLength": 10,
  1296. "dashes": false,
  1297. "datasource": "gdev-mysql-ds-tests",
  1298. "fill": 2,
  1299. "gridPos": {
  1300. "h": 8,
  1301. "w": 12,
  1302. "x": 12,
  1303. "y": 41
  1304. },
  1305. "id": 18,
  1306. "legend": {
  1307. "alignAsTable": true,
  1308. "avg": true,
  1309. "current": true,
  1310. "max": true,
  1311. "min": true,
  1312. "rightSide": true,
  1313. "show": true,
  1314. "total": true,
  1315. "values": true
  1316. },
  1317. "lines": true,
  1318. "linewidth": 2,
  1319. "links": [],
  1320. "nullPointMode": "null",
  1321. "percentage": false,
  1322. "pointradius": 3,
  1323. "points": false,
  1324. "renderer": "flot",
  1325. "seriesOverrides": [],
  1326. "spaceLength": 10,
  1327. "stack": true,
  1328. "steppedLine": false,
  1329. "targets": [
  1330. {
  1331. "alias": "",
  1332. "format": "time_series",
  1333. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1334. "refId": "A"
  1335. }
  1336. ],
  1337. "thresholds": [],
  1338. "timeFrom": null,
  1339. "timeShift": null,
  1340. "title": "Multiple series without metric column - stacked",
  1341. "tooltip": {
  1342. "shared": true,
  1343. "sort": 0,
  1344. "value_type": "individual"
  1345. },
  1346. "type": "graph",
  1347. "xaxis": {
  1348. "buckets": null,
  1349. "mode": "time",
  1350. "name": null,
  1351. "show": true,
  1352. "values": []
  1353. },
  1354. "yaxes": [
  1355. {
  1356. "format": "short",
  1357. "label": null,
  1358. "logBase": 1,
  1359. "max": null,
  1360. "min": "0",
  1361. "show": true
  1362. },
  1363. {
  1364. "format": "short",
  1365. "label": null,
  1366. "logBase": 1,
  1367. "max": null,
  1368. "min": null,
  1369. "show": true
  1370. }
  1371. ],
  1372. "yaxis": {
  1373. "align": false,
  1374. "alignLevel": null
  1375. }
  1376. },
  1377. {
  1378. "aliasColors": {},
  1379. "bars": false,
  1380. "dashLength": 10,
  1381. "dashes": false,
  1382. "datasource": "gdev-mysql-ds-tests",
  1383. "fill": 2,
  1384. "gridPos": {
  1385. "h": 8,
  1386. "w": 12,
  1387. "x": 0,
  1388. "y": 49
  1389. },
  1390. "id": 17,
  1391. "legend": {
  1392. "alignAsTable": true,
  1393. "avg": true,
  1394. "current": true,
  1395. "hideEmpty": false,
  1396. "hideZero": false,
  1397. "max": true,
  1398. "min": true,
  1399. "rightSide": true,
  1400. "show": true,
  1401. "total": true,
  1402. "values": true
  1403. },
  1404. "lines": true,
  1405. "linewidth": 2,
  1406. "links": [],
  1407. "nullPointMode": "null",
  1408. "percentage": true,
  1409. "pointradius": 3,
  1410. "points": false,
  1411. "renderer": "flot",
  1412. "seriesOverrides": [],
  1413. "spaceLength": 10,
  1414. "stack": true,
  1415. "steppedLine": false,
  1416. "targets": [
  1417. {
  1418. "alias": "",
  1419. "format": "time_series",
  1420. "rawSql": "SELECT $__time(time), CONCAT(measurement, ' - value one') as metric, valueOne FROM metric_values WHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1421. "refId": "A"
  1422. },
  1423. {
  1424. "alias": "",
  1425. "format": "time_series",
  1426. "rawSql": "SELECT $__time(time), CONCAT(measurement, ' - value two') as metric, valueTwo FROM metric_values WHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1427. "refId": "B"
  1428. }
  1429. ],
  1430. "thresholds": [],
  1431. "timeFrom": null,
  1432. "timeShift": null,
  1433. "title": "Multiple series with metric column - stacked percent",
  1434. "tooltip": {
  1435. "shared": true,
  1436. "sort": 0,
  1437. "value_type": "individual"
  1438. },
  1439. "type": "graph",
  1440. "xaxis": {
  1441. "buckets": null,
  1442. "mode": "time",
  1443. "name": null,
  1444. "show": true,
  1445. "values": []
  1446. },
  1447. "yaxes": [
  1448. {
  1449. "format": "short",
  1450. "label": null,
  1451. "logBase": 1,
  1452. "max": null,
  1453. "min": "0",
  1454. "show": true
  1455. },
  1456. {
  1457. "format": "short",
  1458. "label": null,
  1459. "logBase": 1,
  1460. "max": null,
  1461. "min": null,
  1462. "show": true
  1463. }
  1464. ],
  1465. "yaxis": {
  1466. "align": false,
  1467. "alignLevel": null
  1468. }
  1469. },
  1470. {
  1471. "aliasColors": {},
  1472. "bars": false,
  1473. "dashLength": 10,
  1474. "dashes": false,
  1475. "datasource": "gdev-mysql-ds-tests",
  1476. "fill": 2,
  1477. "gridPos": {
  1478. "h": 8,
  1479. "w": 12,
  1480. "x": 12,
  1481. "y": 49
  1482. },
  1483. "id": 20,
  1484. "legend": {
  1485. "alignAsTable": true,
  1486. "avg": true,
  1487. "current": true,
  1488. "max": true,
  1489. "min": true,
  1490. "rightSide": true,
  1491. "show": true,
  1492. "total": true,
  1493. "values": true
  1494. },
  1495. "lines": true,
  1496. "linewidth": 2,
  1497. "links": [],
  1498. "nullPointMode": "null",
  1499. "percentage": true,
  1500. "pointradius": 3,
  1501. "points": false,
  1502. "renderer": "flot",
  1503. "seriesOverrides": [],
  1504. "spaceLength": 10,
  1505. "stack": true,
  1506. "steppedLine": false,
  1507. "targets": [
  1508. {
  1509. "alias": "",
  1510. "format": "time_series",
  1511. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1512. "refId": "A"
  1513. }
  1514. ],
  1515. "thresholds": [],
  1516. "timeFrom": null,
  1517. "timeShift": null,
  1518. "title": "Multiple series without metric column - stacked percent",
  1519. "tooltip": {
  1520. "shared": true,
  1521. "sort": 0,
  1522. "value_type": "individual"
  1523. },
  1524. "type": "graph",
  1525. "xaxis": {
  1526. "buckets": null,
  1527. "mode": "time",
  1528. "name": null,
  1529. "show": true,
  1530. "values": []
  1531. },
  1532. "yaxes": [
  1533. {
  1534. "format": "short",
  1535. "label": null,
  1536. "logBase": 1,
  1537. "max": null,
  1538. "min": "0",
  1539. "show": true
  1540. },
  1541. {
  1542. "format": "short",
  1543. "label": null,
  1544. "logBase": 1,
  1545. "max": null,
  1546. "min": null,
  1547. "show": true
  1548. }
  1549. ],
  1550. "yaxis": {
  1551. "align": false,
  1552. "alignLevel": null
  1553. }
  1554. },
  1555. {
  1556. "aliasColors": {},
  1557. "bars": true,
  1558. "dashLength": 10,
  1559. "dashes": false,
  1560. "datasource": "gdev-mysql-ds-tests",
  1561. "fill": 1,
  1562. "gridPos": {
  1563. "h": 8,
  1564. "w": 12,
  1565. "x": 0,
  1566. "y": 57
  1567. },
  1568. "id": 14,
  1569. "legend": {
  1570. "alignAsTable": true,
  1571. "avg": true,
  1572. "current": true,
  1573. "max": true,
  1574. "min": true,
  1575. "rightSide": true,
  1576. "show": true,
  1577. "total": true,
  1578. "values": true
  1579. },
  1580. "lines": false,
  1581. "linewidth": 1,
  1582. "links": [],
  1583. "nullPointMode": "null",
  1584. "percentage": false,
  1585. "pointradius": 5,
  1586. "points": false,
  1587. "renderer": "flot",
  1588. "seriesOverrides": [],
  1589. "spaceLength": 10,
  1590. "stack": false,
  1591. "steppedLine": false,
  1592. "targets": [
  1593. {
  1594. "alias": "",
  1595. "format": "time_series",
  1596. "rawSql": "SELECT $__timeEpoch(time), CONCAT(measurement, ' - value one') as metric, valueOne FROM metric_values \nWHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1597. "refId": "A"
  1598. },
  1599. {
  1600. "alias": "",
  1601. "format": "time_series",
  1602. "rawSql": "SELECT $__timeEpoch(time), CONCAT(measurement, ' - value two') as metric, valueTwo FROM metric_values \nWHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1603. "refId": "B"
  1604. }
  1605. ],
  1606. "thresholds": [],
  1607. "timeFrom": null,
  1608. "timeShift": null,
  1609. "title": "Multiple series with metric column - series mode",
  1610. "tooltip": {
  1611. "shared": false,
  1612. "sort": 0,
  1613. "value_type": "individual"
  1614. },
  1615. "type": "graph",
  1616. "xaxis": {
  1617. "buckets": null,
  1618. "mode": "series",
  1619. "name": null,
  1620. "show": true,
  1621. "values": [
  1622. "total"
  1623. ]
  1624. },
  1625. "yaxes": [
  1626. {
  1627. "decimals": null,
  1628. "format": "short",
  1629. "label": null,
  1630. "logBase": 1,
  1631. "max": null,
  1632. "min": "0",
  1633. "show": true
  1634. },
  1635. {
  1636. "format": "short",
  1637. "label": null,
  1638. "logBase": 1,
  1639. "max": null,
  1640. "min": null,
  1641. "show": true
  1642. }
  1643. ],
  1644. "yaxis": {
  1645. "align": false,
  1646. "alignLevel": null
  1647. }
  1648. },
  1649. {
  1650. "aliasColors": {},
  1651. "bars": true,
  1652. "dashLength": 10,
  1653. "dashes": false,
  1654. "datasource": "gdev-mysql-ds-tests",
  1655. "fill": 1,
  1656. "gridPos": {
  1657. "h": 8,
  1658. "w": 12,
  1659. "x": 12,
  1660. "y": 57
  1661. },
  1662. "id": 15,
  1663. "legend": {
  1664. "alignAsTable": true,
  1665. "avg": true,
  1666. "current": true,
  1667. "max": true,
  1668. "min": true,
  1669. "rightSide": true,
  1670. "show": true,
  1671. "total": true,
  1672. "values": true
  1673. },
  1674. "lines": false,
  1675. "linewidth": 1,
  1676. "links": [],
  1677. "nullPointMode": "null",
  1678. "percentage": false,
  1679. "pointradius": 5,
  1680. "points": false,
  1681. "renderer": "flot",
  1682. "seriesOverrides": [],
  1683. "spaceLength": 10,
  1684. "stack": false,
  1685. "steppedLine": false,
  1686. "targets": [
  1687. {
  1688. "alias": "",
  1689. "format": "time_series",
  1690. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1691. "refId": "A"
  1692. }
  1693. ],
  1694. "thresholds": [],
  1695. "timeFrom": null,
  1696. "timeShift": null,
  1697. "title": "Multiple series without metric column - series mode",
  1698. "tooltip": {
  1699. "shared": false,
  1700. "sort": 0,
  1701. "value_type": "individual"
  1702. },
  1703. "type": "graph",
  1704. "xaxis": {
  1705. "buckets": null,
  1706. "mode": "series",
  1707. "name": null,
  1708. "show": true,
  1709. "values": [
  1710. "total"
  1711. ]
  1712. },
  1713. "yaxes": [
  1714. {
  1715. "format": "short",
  1716. "label": null,
  1717. "logBase": 1,
  1718. "max": null,
  1719. "min": "0",
  1720. "show": true
  1721. },
  1722. {
  1723. "format": "short",
  1724. "label": null,
  1725. "logBase": 1,
  1726. "max": null,
  1727. "min": null,
  1728. "show": true
  1729. }
  1730. ],
  1731. "yaxis": {
  1732. "align": false,
  1733. "alignLevel": null
  1734. }
  1735. },
  1736. {
  1737. "aliasColors": {},
  1738. "bars": true,
  1739. "dashLength": 10,
  1740. "dashes": false,
  1741. "datasource": "gdev-mysql-ds-tests",
  1742. "fill": 1,
  1743. "gridPos": {
  1744. "h": 8,
  1745. "w": 12,
  1746. "x": 0,
  1747. "y": 65
  1748. },
  1749. "id": 25,
  1750. "legend": {
  1751. "alignAsTable": true,
  1752. "avg": true,
  1753. "current": true,
  1754. "max": true,
  1755. "min": true,
  1756. "rightSide": true,
  1757. "show": false,
  1758. "total": true,
  1759. "values": true
  1760. },
  1761. "lines": false,
  1762. "linewidth": 1,
  1763. "links": [],
  1764. "nullPointMode": "null",
  1765. "percentage": false,
  1766. "pointradius": 5,
  1767. "points": false,
  1768. "renderer": "flot",
  1769. "seriesOverrides": [],
  1770. "spaceLength": 10,
  1771. "stack": false,
  1772. "steppedLine": false,
  1773. "targets": [
  1774. {
  1775. "alias": "",
  1776. "format": "time_series",
  1777. "rawSql": "SELECT $__timeEpoch(time), CONCAT(measurement, ' - value one') as metric, valueOne FROM metric_values \nWHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1778. "refId": "A"
  1779. },
  1780. {
  1781. "alias": "",
  1782. "format": "time_series",
  1783. "rawSql": "SELECT $__timeEpoch(time), CONCAT(measurement, ' - value two') as metric, valueTwo FROM metric_values \nWHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1784. "refId": "B"
  1785. }
  1786. ],
  1787. "thresholds": [],
  1788. "timeFrom": null,
  1789. "timeShift": null,
  1790. "title": "Multiple series with metric column - histogram",
  1791. "tooltip": {
  1792. "shared": true,
  1793. "sort": 0,
  1794. "value_type": "individual"
  1795. },
  1796. "type": "graph",
  1797. "xaxis": {
  1798. "buckets": 50,
  1799. "mode": "histogram",
  1800. "name": null,
  1801. "show": true,
  1802. "values": [
  1803. "current"
  1804. ]
  1805. },
  1806. "yaxes": [
  1807. {
  1808. "decimals": null,
  1809. "format": "short",
  1810. "label": null,
  1811. "logBase": 1,
  1812. "max": null,
  1813. "min": "0",
  1814. "show": true
  1815. },
  1816. {
  1817. "format": "short",
  1818. "label": null,
  1819. "logBase": 1,
  1820. "max": null,
  1821. "min": null,
  1822. "show": true
  1823. }
  1824. ],
  1825. "yaxis": {
  1826. "align": false,
  1827. "alignLevel": null
  1828. }
  1829. },
  1830. {
  1831. "aliasColors": {},
  1832. "bars": true,
  1833. "dashLength": 10,
  1834. "dashes": false,
  1835. "datasource": "gdev-mysql-ds-tests",
  1836. "fill": 1,
  1837. "gridPos": {
  1838. "h": 8,
  1839. "w": 12,
  1840. "x": 12,
  1841. "y": 65
  1842. },
  1843. "id": 22,
  1844. "legend": {
  1845. "alignAsTable": true,
  1846. "avg": true,
  1847. "current": true,
  1848. "max": true,
  1849. "min": true,
  1850. "rightSide": true,
  1851. "show": false,
  1852. "total": true,
  1853. "values": true
  1854. },
  1855. "lines": false,
  1856. "linewidth": 1,
  1857. "links": [],
  1858. "nullPointMode": "null",
  1859. "percentage": false,
  1860. "pointradius": 5,
  1861. "points": false,
  1862. "renderer": "flot",
  1863. "seriesOverrides": [],
  1864. "spaceLength": 10,
  1865. "stack": false,
  1866. "steppedLine": false,
  1867. "targets": [
  1868. {
  1869. "alias": "",
  1870. "format": "time_series",
  1871. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1872. "refId": "A"
  1873. }
  1874. ],
  1875. "thresholds": [],
  1876. "timeFrom": null,
  1877. "timeShift": null,
  1878. "title": "Multiple series without metric column - histogram",
  1879. "tooltip": {
  1880. "shared": true,
  1881. "sort": 0,
  1882. "value_type": "individual"
  1883. },
  1884. "type": "graph",
  1885. "xaxis": {
  1886. "buckets": 100,
  1887. "mode": "histogram",
  1888. "name": null,
  1889. "show": true,
  1890. "values": [
  1891. "total"
  1892. ]
  1893. },
  1894. "yaxes": [
  1895. {
  1896. "format": "short",
  1897. "label": null,
  1898. "logBase": 1,
  1899. "max": null,
  1900. "min": "0",
  1901. "show": true
  1902. },
  1903. {
  1904. "format": "short",
  1905. "label": null,
  1906. "logBase": 1,
  1907. "max": null,
  1908. "min": null,
  1909. "show": true
  1910. }
  1911. ],
  1912. "yaxis": {
  1913. "align": false,
  1914. "alignLevel": null
  1915. }
  1916. },
  1917. {
  1918. "aliasColors": {},
  1919. "bars": true,
  1920. "dashLength": 10,
  1921. "dashes": false,
  1922. "datasource": "gdev-mysql-ds-tests",
  1923. "fill": 1,
  1924. "gridPos": {
  1925. "h": 8,
  1926. "w": 12,
  1927. "x": 0,
  1928. "y": 73
  1929. },
  1930. "id": 21,
  1931. "legend": {
  1932. "alignAsTable": true,
  1933. "avg": true,
  1934. "current": true,
  1935. "max": true,
  1936. "min": true,
  1937. "rightSide": true,
  1938. "show": false,
  1939. "total": true,
  1940. "values": true
  1941. },
  1942. "lines": false,
  1943. "linewidth": 1,
  1944. "links": [],
  1945. "nullPointMode": "null",
  1946. "percentage": false,
  1947. "pointradius": 5,
  1948. "points": false,
  1949. "renderer": "flot",
  1950. "seriesOverrides": [],
  1951. "spaceLength": 10,
  1952. "stack": true,
  1953. "steppedLine": false,
  1954. "targets": [
  1955. {
  1956. "alias": "",
  1957. "format": "time_series",
  1958. "rawSql": "SELECT $__timeEpoch(time), CONCAT(measurement, ' - value one') as metric, valueOne FROM metric_values \nWHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1959. "refId": "A"
  1960. },
  1961. {
  1962. "alias": "",
  1963. "format": "time_series",
  1964. "rawSql": "SELECT $__timeEpoch(time), CONCAT(measurement, ' - value two') as metric, valueTwo FROM metric_values \nWHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  1965. "refId": "B"
  1966. }
  1967. ],
  1968. "thresholds": [],
  1969. "timeFrom": null,
  1970. "timeShift": null,
  1971. "title": "Multiple series with metric column - histogram stacked",
  1972. "tooltip": {
  1973. "shared": true,
  1974. "sort": 0,
  1975. "value_type": "individual"
  1976. },
  1977. "type": "graph",
  1978. "xaxis": {
  1979. "buckets": 20,
  1980. "mode": "histogram",
  1981. "name": null,
  1982. "show": true,
  1983. "values": [
  1984. "current"
  1985. ]
  1986. },
  1987. "yaxes": [
  1988. {
  1989. "decimals": null,
  1990. "format": "short",
  1991. "label": null,
  1992. "logBase": 1,
  1993. "max": null,
  1994. "min": "0",
  1995. "show": true
  1996. },
  1997. {
  1998. "format": "short",
  1999. "label": null,
  2000. "logBase": 1,
  2001. "max": null,
  2002. "min": null,
  2003. "show": true
  2004. }
  2005. ],
  2006. "yaxis": {
  2007. "align": false,
  2008. "alignLevel": null
  2009. }
  2010. },
  2011. {
  2012. "aliasColors": {},
  2013. "bars": true,
  2014. "dashLength": 10,
  2015. "dashes": false,
  2016. "datasource": "gdev-mysql-ds-tests",
  2017. "fill": 1,
  2018. "gridPos": {
  2019. "h": 8,
  2020. "w": 12,
  2021. "x": 12,
  2022. "y": 73
  2023. },
  2024. "id": 26,
  2025. "legend": {
  2026. "alignAsTable": true,
  2027. "avg": true,
  2028. "current": true,
  2029. "max": true,
  2030. "min": true,
  2031. "rightSide": true,
  2032. "show": false,
  2033. "total": true,
  2034. "values": true
  2035. },
  2036. "lines": false,
  2037. "linewidth": 1,
  2038. "links": [],
  2039. "nullPointMode": "null",
  2040. "percentage": false,
  2041. "pointradius": 5,
  2042. "points": false,
  2043. "renderer": "flot",
  2044. "seriesOverrides": [],
  2045. "spaceLength": 10,
  2046. "stack": true,
  2047. "steppedLine": false,
  2048. "targets": [
  2049. {
  2050. "alias": "",
  2051. "format": "time_series",
  2052. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  2053. "refId": "A"
  2054. }
  2055. ],
  2056. "thresholds": [],
  2057. "timeFrom": null,
  2058. "timeShift": null,
  2059. "title": "Multiple series without metric column - histogram stacked",
  2060. "tooltip": {
  2061. "shared": true,
  2062. "sort": 0,
  2063. "value_type": "individual"
  2064. },
  2065. "type": "graph",
  2066. "xaxis": {
  2067. "buckets": 20,
  2068. "mode": "histogram",
  2069. "name": null,
  2070. "show": true,
  2071. "values": [
  2072. "total"
  2073. ]
  2074. },
  2075. "yaxes": [
  2076. {
  2077. "format": "short",
  2078. "label": null,
  2079. "logBase": 1,
  2080. "max": null,
  2081. "min": "0",
  2082. "show": true
  2083. },
  2084. {
  2085. "format": "short",
  2086. "label": null,
  2087. "logBase": 1,
  2088. "max": null,
  2089. "min": null,
  2090. "show": true
  2091. }
  2092. ],
  2093. "yaxis": {
  2094. "align": false,
  2095. "alignLevel": null
  2096. }
  2097. },
  2098. {
  2099. "aliasColors": {},
  2100. "bars": true,
  2101. "dashLength": 10,
  2102. "dashes": false,
  2103. "datasource": "gdev-mysql-ds-tests",
  2104. "fill": 1,
  2105. "gridPos": {
  2106. "h": 8,
  2107. "w": 12,
  2108. "x": 0,
  2109. "y": 81
  2110. },
  2111. "id": 23,
  2112. "legend": {
  2113. "alignAsTable": true,
  2114. "avg": true,
  2115. "current": true,
  2116. "max": true,
  2117. "min": true,
  2118. "rightSide": true,
  2119. "show": false,
  2120. "total": true,
  2121. "values": true
  2122. },
  2123. "lines": false,
  2124. "linewidth": 1,
  2125. "links": [],
  2126. "nullPointMode": "null",
  2127. "percentage": true,
  2128. "pointradius": 5,
  2129. "points": false,
  2130. "renderer": "flot",
  2131. "seriesOverrides": [],
  2132. "spaceLength": 10,
  2133. "stack": true,
  2134. "steppedLine": false,
  2135. "targets": [
  2136. {
  2137. "alias": "",
  2138. "format": "time_series",
  2139. "rawSql": "SELECT $__timeEpoch(time), CONCAT(measurement, ' - value one') as metric, valueOne FROM metric_values \nWHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  2140. "refId": "A"
  2141. },
  2142. {
  2143. "alias": "",
  2144. "format": "time_series",
  2145. "rawSql": "SELECT $__timeEpoch(time), CONCAT(measurement, ' - value two') as metric, valueTwo FROM metric_values \nWHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  2146. "refId": "B"
  2147. }
  2148. ],
  2149. "thresholds": [],
  2150. "timeFrom": null,
  2151. "timeShift": null,
  2152. "title": "Multiple series with metric column - histogram stacked percent",
  2153. "tooltip": {
  2154. "shared": true,
  2155. "sort": 0,
  2156. "value_type": "individual"
  2157. },
  2158. "type": "graph",
  2159. "xaxis": {
  2160. "buckets": 20,
  2161. "mode": "histogram",
  2162. "name": null,
  2163. "show": true,
  2164. "values": [
  2165. "current"
  2166. ]
  2167. },
  2168. "yaxes": [
  2169. {
  2170. "decimals": null,
  2171. "format": "short",
  2172. "label": null,
  2173. "logBase": 1,
  2174. "max": null,
  2175. "min": "0",
  2176. "show": true
  2177. },
  2178. {
  2179. "format": "short",
  2180. "label": null,
  2181. "logBase": 1,
  2182. "max": null,
  2183. "min": null,
  2184. "show": true
  2185. }
  2186. ],
  2187. "yaxis": {
  2188. "align": false,
  2189. "alignLevel": null
  2190. }
  2191. },
  2192. {
  2193. "aliasColors": {},
  2194. "bars": true,
  2195. "dashLength": 10,
  2196. "dashes": false,
  2197. "datasource": "gdev-mysql-ds-tests",
  2198. "fill": 1,
  2199. "gridPos": {
  2200. "h": 8,
  2201. "w": 12,
  2202. "x": 12,
  2203. "y": 81
  2204. },
  2205. "id": 24,
  2206. "legend": {
  2207. "alignAsTable": true,
  2208. "avg": true,
  2209. "current": true,
  2210. "max": true,
  2211. "min": true,
  2212. "rightSide": true,
  2213. "show": false,
  2214. "total": true,
  2215. "values": true
  2216. },
  2217. "lines": false,
  2218. "linewidth": 1,
  2219. "links": [],
  2220. "nullPointMode": "null",
  2221. "percentage": true,
  2222. "pointradius": 5,
  2223. "points": false,
  2224. "renderer": "flot",
  2225. "seriesOverrides": [],
  2226. "spaceLength": 10,
  2227. "stack": true,
  2228. "steppedLine": false,
  2229. "targets": [
  2230. {
  2231. "alias": "",
  2232. "format": "time_series",
  2233. "rawSql": "SELECT $__timeEpoch(time), valueOne, valueTwo FROM metric_values\nWHERE $__timeFilter(time) AND measurement IN($metric) ORDER BY 1",
  2234. "refId": "A"
  2235. }
  2236. ],
  2237. "thresholds": [],
  2238. "timeFrom": null,
  2239. "timeShift": null,
  2240. "title": "Multiple series without metric column - histogram stacked percent",
  2241. "tooltip": {
  2242. "shared": true,
  2243. "sort": 0,
  2244. "value_type": "individual"
  2245. },
  2246. "type": "graph",
  2247. "xaxis": {
  2248. "buckets": 20,
  2249. "mode": "histogram",
  2250. "name": null,
  2251. "show": true,
  2252. "values": [
  2253. "total"
  2254. ]
  2255. },
  2256. "yaxes": [
  2257. {
  2258. "format": "short",
  2259. "label": null,
  2260. "logBase": 1,
  2261. "max": null,
  2262. "min": "0",
  2263. "show": true
  2264. },
  2265. {
  2266. "format": "short",
  2267. "label": null,
  2268. "logBase": 1,
  2269. "max": null,
  2270. "min": null,
  2271. "show": true
  2272. }
  2273. ],
  2274. "yaxis": {
  2275. "align": false,
  2276. "alignLevel": null
  2277. }
  2278. }
  2279. ],
  2280. "refresh": false,
  2281. "schemaVersion": 16,
  2282. "style": "dark",
  2283. "tags": ["gdev", "mysql"],
  2284. "templating": {
  2285. "list": [
  2286. {
  2287. "allValue": "",
  2288. "current": {
  2289. "text": "All",
  2290. "value": "$__all"
  2291. },
  2292. "datasource": "gdev-mysql-ds-tests",
  2293. "hide": 0,
  2294. "includeAll": true,
  2295. "label": "Metric",
  2296. "multi": true,
  2297. "name": "metric",
  2298. "options": [
  2299. {
  2300. "selected": true,
  2301. "text": "All",
  2302. "value": "$__all"
  2303. },
  2304. {
  2305. "selected": false,
  2306. "text": "Metric A",
  2307. "value": "Metric A"
  2308. },
  2309. {
  2310. "selected": false,
  2311. "text": "Metric B",
  2312. "value": "Metric B"
  2313. }
  2314. ],
  2315. "query": "SELECT DISTINCT measurement FROM metric_values",
  2316. "refresh": 0,
  2317. "regex": "",
  2318. "skipUrlSync": false,
  2319. "sort": 0,
  2320. "tagValuesQuery": "",
  2321. "tags": [],
  2322. "tagsQuery": "",
  2323. "type": "query",
  2324. "useTags": false
  2325. },
  2326. {
  2327. "auto": false,
  2328. "auto_count": 30,
  2329. "auto_min": "10s",
  2330. "current": {
  2331. "text": "10m",
  2332. "value": "10m"
  2333. },
  2334. "hide": 0,
  2335. "label": "Interval",
  2336. "name": "summarize",
  2337. "options": [
  2338. {
  2339. "selected": false,
  2340. "text": "1s",
  2341. "value": "1s"
  2342. },
  2343. {
  2344. "selected": false,
  2345. "text": "10s",
  2346. "value": "10s"
  2347. },
  2348. {
  2349. "selected": false,
  2350. "text": "30s",
  2351. "value": "30s"
  2352. },
  2353. {
  2354. "selected": false,
  2355. "text": "1m",
  2356. "value": "1m"
  2357. },
  2358. {
  2359. "selected": false,
  2360. "text": "5m",
  2361. "value": "5m"
  2362. },
  2363. {
  2364. "selected": true,
  2365. "text": "10m",
  2366. "value": "10m"
  2367. }
  2368. ],
  2369. "query": "1s,10s,30s,1m,5m,10m",
  2370. "refresh": 2,
  2371. "skipUrlSync": false,
  2372. "type": "interval"
  2373. }
  2374. ]
  2375. },
  2376. "time": {
  2377. "from": "2018-03-15T12:30:00.000Z",
  2378. "to": "2018-03-15T13:55:01.000Z"
  2379. },
  2380. "timepicker": {
  2381. "refresh_intervals": [
  2382. "5s",
  2383. "10s",
  2384. "30s",
  2385. "1m",
  2386. "5m",
  2387. "15m",
  2388. "30m",
  2389. "1h",
  2390. "2h",
  2391. "1d"
  2392. ],
  2393. "time_options": [
  2394. "5m",
  2395. "15m",
  2396. "1h",
  2397. "6h",
  2398. "12h",
  2399. "24h",
  2400. "2d",
  2401. "7d",
  2402. "30d"
  2403. ]
  2404. },
  2405. "timezone": "",
  2406. "title": "Datasource tests - MySQL (unittest)",
  2407. "uid": "Hmf8FDkmz",
  2408. "version": 12
  2409. }