datasource_tests_mysql_unittest.json 53 KB

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