datasource_tests_mysql_unittest.json 61 KB

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