mysql_unittest.json 61 KB

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