datasource_tests_postgres_unittest.json 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522
  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-postgres-ds-tests",
  15. "enable": false,
  16. "hide": false,
  17. "iconColor": "#6ed0e0",
  18. "limit": 100,
  19. "name": "Deploys",
  20. "rawQuery": "SELECT \"time_sec\" as time, description as text, tags FROM event WHERE $__unixEpochFilter(time_sec) AND tags='deploy' ORDER BY 1 ASC",
  21. "showIn": 0,
  22. "tags": [],
  23. "type": "tags"
  24. },
  25. {
  26. "datasource": "gdev-postgres-ds-tests",
  27. "enable": false,
  28. "hide": false,
  29. "iconColor": "rgba(255, 96, 96, 1)",
  30. "limit": 100,
  31. "name": "Tickets",
  32. "rawQuery": "SELECT \"time_sec\" as time, description as text, tags FROM event WHERE $__unixEpochFilter(time_sec) AND tags='ticket' ORDER BY 1 ASC",
  33. "showIn": 0,
  34. "tags": [],
  35. "type": "tags"
  36. },
  37. {
  38. "datasource": "gdev-postgres-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-postgres-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 postgres unit tests to generate the data backing this dashboard",
  64. "editable": true,
  65. "gnetId": null,
  66. "graphTooltip": 0,
  67. "iteration": 1533714184500,
  68. "links": [],
  69. "panels": [
  70. {
  71. "columns": [],
  72. "datasource": "gdev-postgres-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": 1,
  87. "desc": false
  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 postgres_types",
  110. "refId": "A"
  111. }
  112. ],
  113. "title": "Data types",
  114. "transform": "table",
  115. "type": "table"
  116. },
  117. {
  118. "columns": [],
  119. "datasource": "gdev-postgres-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",
  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 bigint) as time",
  163. "refId": "A",
  164. "target": ""
  165. }
  166. ],
  167. "title": "cast(null as bigint) as time",
  168. "transform": "table",
  169. "type": "table"
  170. },
  171. {
  172. "columns": [],
  173. "datasource": "gdev-postgres-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",
  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 timestamp) as time",
  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-postgres-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",
  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 localtimestamp as time",
  271. "refId": "A",
  272. "target": ""
  273. }
  274. ],
  275. "title": "localtimestamp as time",
  276. "transform": "table",
  277. "type": "table"
  278. },
  279. {
  280. "columns": [],
  281. "datasource": "gdev-postgres-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-postgres-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-postgres-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-postgres-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-postgres-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-postgres-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-postgres-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-postgres-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-postgres-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-postgres-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, \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-postgres-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. "spaceLength": 10,
  1119. "stack": false,
  1120. "steppedLine": false,
  1121. "targets": [
  1122. {
  1123. "alias": "",
  1124. "format": "time_series",
  1125. "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",
  1126. "refId": "A"
  1127. }
  1128. ],
  1129. "thresholds": [],
  1130. "timeFrom": null,
  1131. "timeShift": null,
  1132. "title": "Multiple series without metric column using timeGroup macro ($summarize)",
  1133. "tooltip": {
  1134. "shared": true,
  1135. "sort": 0,
  1136. "value_type": "individual"
  1137. },
  1138. "type": "graph",
  1139. "xaxis": {
  1140. "buckets": null,
  1141. "mode": "time",
  1142. "name": null,
  1143. "show": true,
  1144. "values": []
  1145. },
  1146. "yaxes": [
  1147. {
  1148. "format": "short",
  1149. "label": null,
  1150. "logBase": 1,
  1151. "max": null,
  1152. "min": "0",
  1153. "show": true
  1154. },
  1155. {
  1156. "format": "short",
  1157. "label": null,
  1158. "logBase": 1,
  1159. "max": null,
  1160. "min": null,
  1161. "show": true
  1162. }
  1163. ],
  1164. "yaxis": {
  1165. "align": false,
  1166. "alignLevel": null
  1167. }
  1168. },
  1169. {
  1170. "aliasColors": {},
  1171. "bars": false,
  1172. "dashLength": 10,
  1173. "dashes": false,
  1174. "datasource": "gdev-postgres-ds-tests",
  1175. "fill": 2,
  1176. "gridPos": {
  1177. "h": 8,
  1178. "w": 12,
  1179. "x": 0,
  1180. "y": 27
  1181. },
  1182. "id": 4,
  1183. "legend": {
  1184. "alignAsTable": true,
  1185. "avg": true,
  1186. "current": true,
  1187. "hideEmpty": false,
  1188. "hideZero": false,
  1189. "max": true,
  1190. "min": true,
  1191. "rightSide": true,
  1192. "show": true,
  1193. "total": true,
  1194. "values": true
  1195. },
  1196. "lines": true,
  1197. "linewidth": 2,
  1198. "links": [],
  1199. "nullPointMode": "null",
  1200. "percentage": false,
  1201. "pointradius": 3,
  1202. "points": false,
  1203. "renderer": "flot",
  1204. "seriesOverrides": [],
  1205. "spaceLength": 10,
  1206. "stack": false,
  1207. "steppedLine": false,
  1208. "targets": [
  1209. {
  1210. "alias": "",
  1211. "format": "time_series",
  1212. "rawSql": "SELECT $__timeEpoch(time), measurement, \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1",
  1213. "refId": "A"
  1214. }
  1215. ],
  1216. "thresholds": [],
  1217. "timeFrom": null,
  1218. "timeShift": null,
  1219. "title": "Multiple series with metric column",
  1220. "tooltip": {
  1221. "shared": true,
  1222. "sort": 0,
  1223. "value_type": "individual"
  1224. },
  1225. "type": "graph",
  1226. "xaxis": {
  1227. "buckets": null,
  1228. "mode": "time",
  1229. "name": null,
  1230. "show": true,
  1231. "values": []
  1232. },
  1233. "yaxes": [
  1234. {
  1235. "format": "short",
  1236. "label": null,
  1237. "logBase": 1,
  1238. "max": null,
  1239. "min": "0",
  1240. "show": true
  1241. },
  1242. {
  1243. "format": "short",
  1244. "label": null,
  1245. "logBase": 1,
  1246. "max": null,
  1247. "min": null,
  1248. "show": true
  1249. }
  1250. ],
  1251. "yaxis": {
  1252. "align": false,
  1253. "alignLevel": null
  1254. }
  1255. },
  1256. {
  1257. "aliasColors": {},
  1258. "bars": false,
  1259. "dashLength": 10,
  1260. "dashes": false,
  1261. "datasource": "gdev-postgres-ds-tests",
  1262. "fill": 2,
  1263. "gridPos": {
  1264. "h": 8,
  1265. "w": 12,
  1266. "x": 12,
  1267. "y": 27
  1268. },
  1269. "id": 28,
  1270. "legend": {
  1271. "alignAsTable": true,
  1272. "avg": true,
  1273. "current": true,
  1274. "max": true,
  1275. "min": true,
  1276. "rightSide": true,
  1277. "show": true,
  1278. "total": true,
  1279. "values": true
  1280. },
  1281. "lines": true,
  1282. "linewidth": 2,
  1283. "links": [],
  1284. "nullPointMode": "null",
  1285. "percentage": false,
  1286. "pointradius": 3,
  1287. "points": false,
  1288. "renderer": "flot",
  1289. "seriesOverrides": [],
  1290. "spaceLength": 10,
  1291. "stack": false,
  1292. "steppedLine": false,
  1293. "targets": [
  1294. {
  1295. "alias": "",
  1296. "format": "time_series",
  1297. "rawSql": "SELECT $__timeEpoch(time), \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1",
  1298. "refId": "A"
  1299. }
  1300. ],
  1301. "thresholds": [],
  1302. "timeFrom": null,
  1303. "timeShift": null,
  1304. "title": "Multiple series without metric column",
  1305. "tooltip": {
  1306. "shared": true,
  1307. "sort": 0,
  1308. "value_type": "individual"
  1309. },
  1310. "type": "graph",
  1311. "xaxis": {
  1312. "buckets": null,
  1313. "mode": "time",
  1314. "name": null,
  1315. "show": true,
  1316. "values": []
  1317. },
  1318. "yaxes": [
  1319. {
  1320. "format": "short",
  1321. "label": null,
  1322. "logBase": 1,
  1323. "max": null,
  1324. "min": "0",
  1325. "show": true
  1326. },
  1327. {
  1328. "format": "short",
  1329. "label": null,
  1330. "logBase": 1,
  1331. "max": null,
  1332. "min": null,
  1333. "show": true
  1334. }
  1335. ],
  1336. "yaxis": {
  1337. "align": false,
  1338. "alignLevel": null
  1339. }
  1340. },
  1341. {
  1342. "aliasColors": {},
  1343. "bars": false,
  1344. "dashLength": 10,
  1345. "dashes": false,
  1346. "datasource": "gdev-postgres-ds-tests",
  1347. "fill": 2,
  1348. "gridPos": {
  1349. "h": 8,
  1350. "w": 12,
  1351. "x": 0,
  1352. "y": 35
  1353. },
  1354. "id": 19,
  1355. "legend": {
  1356. "alignAsTable": true,
  1357. "avg": true,
  1358. "current": true,
  1359. "hideEmpty": false,
  1360. "hideZero": false,
  1361. "max": true,
  1362. "min": true,
  1363. "rightSide": true,
  1364. "show": true,
  1365. "total": true,
  1366. "values": true
  1367. },
  1368. "lines": true,
  1369. "linewidth": 2,
  1370. "links": [],
  1371. "nullPointMode": "null",
  1372. "percentage": false,
  1373. "pointradius": 3,
  1374. "points": false,
  1375. "renderer": "flot",
  1376. "seriesOverrides": [],
  1377. "spaceLength": 10,
  1378. "stack": true,
  1379. "steppedLine": false,
  1380. "targets": [
  1381. {
  1382. "alias": "",
  1383. "format": "time_series",
  1384. "rawSql": "SELECT $__timeEpoch(time), measurement, \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1",
  1385. "refId": "A"
  1386. }
  1387. ],
  1388. "thresholds": [],
  1389. "timeFrom": null,
  1390. "timeShift": null,
  1391. "title": "Multiple series with metric column - stacked",
  1392. "tooltip": {
  1393. "shared": true,
  1394. "sort": 0,
  1395. "value_type": "individual"
  1396. },
  1397. "type": "graph",
  1398. "xaxis": {
  1399. "buckets": null,
  1400. "mode": "time",
  1401. "name": null,
  1402. "show": true,
  1403. "values": []
  1404. },
  1405. "yaxes": [
  1406. {
  1407. "format": "short",
  1408. "label": null,
  1409. "logBase": 1,
  1410. "max": null,
  1411. "min": "0",
  1412. "show": true
  1413. },
  1414. {
  1415. "format": "short",
  1416. "label": null,
  1417. "logBase": 1,
  1418. "max": null,
  1419. "min": null,
  1420. "show": true
  1421. }
  1422. ],
  1423. "yaxis": {
  1424. "align": false,
  1425. "alignLevel": null
  1426. }
  1427. },
  1428. {
  1429. "aliasColors": {},
  1430. "bars": false,
  1431. "dashLength": 10,
  1432. "dashes": false,
  1433. "datasource": "gdev-postgres-ds-tests",
  1434. "fill": 2,
  1435. "gridPos": {
  1436. "h": 8,
  1437. "w": 12,
  1438. "x": 12,
  1439. "y": 35
  1440. },
  1441. "id": 18,
  1442. "legend": {
  1443. "alignAsTable": true,
  1444. "avg": true,
  1445. "current": true,
  1446. "max": true,
  1447. "min": true,
  1448. "rightSide": true,
  1449. "show": true,
  1450. "total": true,
  1451. "values": true
  1452. },
  1453. "lines": true,
  1454. "linewidth": 2,
  1455. "links": [],
  1456. "nullPointMode": "null",
  1457. "percentage": false,
  1458. "pointradius": 3,
  1459. "points": false,
  1460. "renderer": "flot",
  1461. "seriesOverrides": [],
  1462. "spaceLength": 10,
  1463. "stack": true,
  1464. "steppedLine": false,
  1465. "targets": [
  1466. {
  1467. "alias": "",
  1468. "format": "time_series",
  1469. "rawSql": "SELECT $__timeEpoch(time), \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1",
  1470. "refId": "A"
  1471. }
  1472. ],
  1473. "thresholds": [],
  1474. "timeFrom": null,
  1475. "timeShift": null,
  1476. "title": "Multiple series without metric column - stacked",
  1477. "tooltip": {
  1478. "shared": true,
  1479. "sort": 0,
  1480. "value_type": "individual"
  1481. },
  1482. "type": "graph",
  1483. "xaxis": {
  1484. "buckets": null,
  1485. "mode": "time",
  1486. "name": null,
  1487. "show": true,
  1488. "values": []
  1489. },
  1490. "yaxes": [
  1491. {
  1492. "format": "short",
  1493. "label": null,
  1494. "logBase": 1,
  1495. "max": null,
  1496. "min": "0",
  1497. "show": true
  1498. },
  1499. {
  1500. "format": "short",
  1501. "label": null,
  1502. "logBase": 1,
  1503. "max": null,
  1504. "min": null,
  1505. "show": true
  1506. }
  1507. ],
  1508. "yaxis": {
  1509. "align": false,
  1510. "alignLevel": null
  1511. }
  1512. },
  1513. {
  1514. "aliasColors": {},
  1515. "bars": false,
  1516. "dashLength": 10,
  1517. "dashes": false,
  1518. "datasource": "gdev-postgres-ds-tests",
  1519. "fill": 2,
  1520. "gridPos": {
  1521. "h": 8,
  1522. "w": 12,
  1523. "x": 0,
  1524. "y": 43
  1525. },
  1526. "id": 17,
  1527. "legend": {
  1528. "alignAsTable": true,
  1529. "avg": true,
  1530. "current": true,
  1531. "hideEmpty": false,
  1532. "hideZero": false,
  1533. "max": true,
  1534. "min": true,
  1535. "rightSide": true,
  1536. "show": true,
  1537. "total": true,
  1538. "values": true
  1539. },
  1540. "lines": true,
  1541. "linewidth": 2,
  1542. "links": [],
  1543. "nullPointMode": "null",
  1544. "percentage": true,
  1545. "pointradius": 3,
  1546. "points": false,
  1547. "renderer": "flot",
  1548. "seriesOverrides": [],
  1549. "spaceLength": 10,
  1550. "stack": true,
  1551. "steppedLine": false,
  1552. "targets": [
  1553. {
  1554. "alias": "",
  1555. "format": "time_series",
  1556. "rawSql": "SELECT $__timeEpoch(time), measurement, \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1",
  1557. "refId": "A"
  1558. }
  1559. ],
  1560. "thresholds": [],
  1561. "timeFrom": null,
  1562. "timeShift": null,
  1563. "title": "Multiple series with metric column - stacked percent",
  1564. "tooltip": {
  1565. "shared": true,
  1566. "sort": 0,
  1567. "value_type": "individual"
  1568. },
  1569. "type": "graph",
  1570. "xaxis": {
  1571. "buckets": null,
  1572. "mode": "time",
  1573. "name": null,
  1574. "show": true,
  1575. "values": []
  1576. },
  1577. "yaxes": [
  1578. {
  1579. "format": "short",
  1580. "label": null,
  1581. "logBase": 1,
  1582. "max": null,
  1583. "min": "0",
  1584. "show": true
  1585. },
  1586. {
  1587. "format": "short",
  1588. "label": null,
  1589. "logBase": 1,
  1590. "max": null,
  1591. "min": null,
  1592. "show": true
  1593. }
  1594. ],
  1595. "yaxis": {
  1596. "align": false,
  1597. "alignLevel": null
  1598. }
  1599. },
  1600. {
  1601. "aliasColors": {},
  1602. "bars": false,
  1603. "dashLength": 10,
  1604. "dashes": false,
  1605. "datasource": "gdev-postgres-ds-tests",
  1606. "fill": 2,
  1607. "gridPos": {
  1608. "h": 8,
  1609. "w": 12,
  1610. "x": 12,
  1611. "y": 43
  1612. },
  1613. "id": 20,
  1614. "legend": {
  1615. "alignAsTable": true,
  1616. "avg": true,
  1617. "current": true,
  1618. "max": true,
  1619. "min": true,
  1620. "rightSide": true,
  1621. "show": true,
  1622. "total": true,
  1623. "values": true
  1624. },
  1625. "lines": true,
  1626. "linewidth": 2,
  1627. "links": [],
  1628. "nullPointMode": "null",
  1629. "percentage": true,
  1630. "pointradius": 3,
  1631. "points": false,
  1632. "renderer": "flot",
  1633. "seriesOverrides": [],
  1634. "spaceLength": 10,
  1635. "stack": true,
  1636. "steppedLine": false,
  1637. "targets": [
  1638. {
  1639. "alias": "",
  1640. "format": "time_series",
  1641. "rawSql": "SELECT $__timeEpoch(time), \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1",
  1642. "refId": "A"
  1643. }
  1644. ],
  1645. "thresholds": [],
  1646. "timeFrom": null,
  1647. "timeShift": null,
  1648. "title": "Multiple series without metric column - stacked percent",
  1649. "tooltip": {
  1650. "shared": true,
  1651. "sort": 0,
  1652. "value_type": "individual"
  1653. },
  1654. "type": "graph",
  1655. "xaxis": {
  1656. "buckets": null,
  1657. "mode": "time",
  1658. "name": null,
  1659. "show": true,
  1660. "values": []
  1661. },
  1662. "yaxes": [
  1663. {
  1664. "format": "short",
  1665. "label": null,
  1666. "logBase": 1,
  1667. "max": null,
  1668. "min": "0",
  1669. "show": true
  1670. },
  1671. {
  1672. "format": "short",
  1673. "label": null,
  1674. "logBase": 1,
  1675. "max": null,
  1676. "min": null,
  1677. "show": true
  1678. }
  1679. ],
  1680. "yaxis": {
  1681. "align": false,
  1682. "alignLevel": null
  1683. }
  1684. },
  1685. {
  1686. "aliasColors": {},
  1687. "bars": true,
  1688. "dashLength": 10,
  1689. "dashes": false,
  1690. "datasource": "gdev-postgres-ds-tests",
  1691. "fill": 1,
  1692. "gridPos": {
  1693. "h": 8,
  1694. "w": 12,
  1695. "x": 0,
  1696. "y": 51
  1697. },
  1698. "id": 14,
  1699. "legend": {
  1700. "alignAsTable": true,
  1701. "avg": true,
  1702. "current": true,
  1703. "max": true,
  1704. "min": true,
  1705. "rightSide": true,
  1706. "show": true,
  1707. "total": true,
  1708. "values": true
  1709. },
  1710. "lines": false,
  1711. "linewidth": 1,
  1712. "links": [],
  1713. "nullPointMode": "null",
  1714. "percentage": false,
  1715. "pointradius": 5,
  1716. "points": false,
  1717. "renderer": "flot",
  1718. "seriesOverrides": [],
  1719. "spaceLength": 10,
  1720. "stack": false,
  1721. "steppedLine": false,
  1722. "targets": [
  1723. {
  1724. "alias": "",
  1725. "format": "time_series",
  1726. "rawSql": "SELECT $__timeEpoch(time), measurement, \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1",
  1727. "refId": "A"
  1728. }
  1729. ],
  1730. "thresholds": [],
  1731. "timeFrom": null,
  1732. "timeShift": null,
  1733. "title": "Multiple series with metric column - series mode",
  1734. "tooltip": {
  1735. "shared": false,
  1736. "sort": 0,
  1737. "value_type": "individual"
  1738. },
  1739. "type": "graph",
  1740. "xaxis": {
  1741. "buckets": null,
  1742. "mode": "series",
  1743. "name": null,
  1744. "show": true,
  1745. "values": [
  1746. "total"
  1747. ]
  1748. },
  1749. "yaxes": [
  1750. {
  1751. "decimals": null,
  1752. "format": "short",
  1753. "label": null,
  1754. "logBase": 1,
  1755. "max": null,
  1756. "min": "0",
  1757. "show": true
  1758. },
  1759. {
  1760. "format": "short",
  1761. "label": null,
  1762. "logBase": 1,
  1763. "max": null,
  1764. "min": null,
  1765. "show": true
  1766. }
  1767. ],
  1768. "yaxis": {
  1769. "align": false,
  1770. "alignLevel": null
  1771. }
  1772. },
  1773. {
  1774. "aliasColors": {},
  1775. "bars": true,
  1776. "dashLength": 10,
  1777. "dashes": false,
  1778. "datasource": "gdev-postgres-ds-tests",
  1779. "fill": 1,
  1780. "gridPos": {
  1781. "h": 8,
  1782. "w": 12,
  1783. "x": 12,
  1784. "y": 51
  1785. },
  1786. "id": 15,
  1787. "legend": {
  1788. "alignAsTable": true,
  1789. "avg": true,
  1790. "current": true,
  1791. "max": true,
  1792. "min": true,
  1793. "rightSide": true,
  1794. "show": true,
  1795. "total": true,
  1796. "values": true
  1797. },
  1798. "lines": false,
  1799. "linewidth": 1,
  1800. "links": [],
  1801. "nullPointMode": "null",
  1802. "percentage": false,
  1803. "pointradius": 5,
  1804. "points": false,
  1805. "renderer": "flot",
  1806. "seriesOverrides": [],
  1807. "spaceLength": 10,
  1808. "stack": false,
  1809. "steppedLine": false,
  1810. "targets": [
  1811. {
  1812. "alias": "",
  1813. "format": "time_series",
  1814. "rawSql": "SELECT $__timeEpoch(time), \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1",
  1815. "refId": "A"
  1816. }
  1817. ],
  1818. "thresholds": [],
  1819. "timeFrom": null,
  1820. "timeShift": null,
  1821. "title": "Multiple series without metric column - series mode",
  1822. "tooltip": {
  1823. "shared": false,
  1824. "sort": 0,
  1825. "value_type": "individual"
  1826. },
  1827. "type": "graph",
  1828. "xaxis": {
  1829. "buckets": null,
  1830. "mode": "series",
  1831. "name": null,
  1832. "show": true,
  1833. "values": [
  1834. "total"
  1835. ]
  1836. },
  1837. "yaxes": [
  1838. {
  1839. "format": "short",
  1840. "label": null,
  1841. "logBase": 1,
  1842. "max": null,
  1843. "min": "0",
  1844. "show": true
  1845. },
  1846. {
  1847. "format": "short",
  1848. "label": null,
  1849. "logBase": 1,
  1850. "max": null,
  1851. "min": null,
  1852. "show": true
  1853. }
  1854. ],
  1855. "yaxis": {
  1856. "align": false,
  1857. "alignLevel": null
  1858. }
  1859. },
  1860. {
  1861. "aliasColors": {},
  1862. "bars": true,
  1863. "dashLength": 10,
  1864. "dashes": false,
  1865. "datasource": "gdev-postgres-ds-tests",
  1866. "fill": 1,
  1867. "gridPos": {
  1868. "h": 8,
  1869. "w": 12,
  1870. "x": 0,
  1871. "y": 59
  1872. },
  1873. "id": 25,
  1874. "legend": {
  1875. "alignAsTable": true,
  1876. "avg": true,
  1877. "current": true,
  1878. "max": true,
  1879. "min": true,
  1880. "rightSide": true,
  1881. "show": false,
  1882. "total": true,
  1883. "values": true
  1884. },
  1885. "lines": false,
  1886. "linewidth": 1,
  1887. "links": [],
  1888. "nullPointMode": "null",
  1889. "percentage": false,
  1890. "pointradius": 5,
  1891. "points": false,
  1892. "renderer": "flot",
  1893. "seriesOverrides": [],
  1894. "spaceLength": 10,
  1895. "stack": false,
  1896. "steppedLine": false,
  1897. "targets": [
  1898. {
  1899. "alias": "",
  1900. "format": "time_series",
  1901. "rawSql": "SELECT $__timeEpoch(time), measurement, \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1",
  1902. "refId": "A"
  1903. }
  1904. ],
  1905. "thresholds": [],
  1906. "timeFrom": null,
  1907. "timeShift": null,
  1908. "title": "Multiple series with metric column - histogram",
  1909. "tooltip": {
  1910. "shared": true,
  1911. "sort": 0,
  1912. "value_type": "individual"
  1913. },
  1914. "type": "graph",
  1915. "xaxis": {
  1916. "buckets": 50,
  1917. "mode": "histogram",
  1918. "name": null,
  1919. "show": true,
  1920. "values": [
  1921. "current"
  1922. ]
  1923. },
  1924. "yaxes": [
  1925. {
  1926. "decimals": null,
  1927. "format": "short",
  1928. "label": null,
  1929. "logBase": 1,
  1930. "max": null,
  1931. "min": "0",
  1932. "show": true
  1933. },
  1934. {
  1935. "format": "short",
  1936. "label": null,
  1937. "logBase": 1,
  1938. "max": null,
  1939. "min": null,
  1940. "show": true
  1941. }
  1942. ],
  1943. "yaxis": {
  1944. "align": false,
  1945. "alignLevel": null
  1946. }
  1947. },
  1948. {
  1949. "aliasColors": {},
  1950. "bars": true,
  1951. "dashLength": 10,
  1952. "dashes": false,
  1953. "datasource": "gdev-postgres-ds-tests",
  1954. "fill": 1,
  1955. "gridPos": {
  1956. "h": 8,
  1957. "w": 12,
  1958. "x": 12,
  1959. "y": 59
  1960. },
  1961. "id": 22,
  1962. "legend": {
  1963. "alignAsTable": true,
  1964. "avg": true,
  1965. "current": true,
  1966. "max": true,
  1967. "min": true,
  1968. "rightSide": true,
  1969. "show": false,
  1970. "total": true,
  1971. "values": true
  1972. },
  1973. "lines": false,
  1974. "linewidth": 1,
  1975. "links": [],
  1976. "nullPointMode": "null",
  1977. "percentage": false,
  1978. "pointradius": 5,
  1979. "points": false,
  1980. "renderer": "flot",
  1981. "seriesOverrides": [],
  1982. "spaceLength": 10,
  1983. "stack": false,
  1984. "steppedLine": false,
  1985. "targets": [
  1986. {
  1987. "alias": "",
  1988. "format": "time_series",
  1989. "rawSql": "SELECT $__timeEpoch(time), \"valueOne\", \"valueTwo\" FROM metric_values\nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1",
  1990. "refId": "A"
  1991. }
  1992. ],
  1993. "thresholds": [],
  1994. "timeFrom": null,
  1995. "timeShift": null,
  1996. "title": "Multiple series without metric column - histogram",
  1997. "tooltip": {
  1998. "shared": true,
  1999. "sort": 0,
  2000. "value_type": "individual"
  2001. },
  2002. "type": "graph",
  2003. "xaxis": {
  2004. "buckets": 100,
  2005. "mode": "histogram",
  2006. "name": null,
  2007. "show": true,
  2008. "values": [
  2009. "total"
  2010. ]
  2011. },
  2012. "yaxes": [
  2013. {
  2014. "format": "short",
  2015. "label": null,
  2016. "logBase": 1,
  2017. "max": null,
  2018. "min": "0",
  2019. "show": true
  2020. },
  2021. {
  2022. "format": "short",
  2023. "label": null,
  2024. "logBase": 1,
  2025. "max": null,
  2026. "min": null,
  2027. "show": true
  2028. }
  2029. ],
  2030. "yaxis": {
  2031. "align": false,
  2032. "alignLevel": null
  2033. }
  2034. },
  2035. {
  2036. "aliasColors": {},
  2037. "bars": true,
  2038. "dashLength": 10,
  2039. "dashes": false,
  2040. "datasource": "gdev-postgres-ds-tests",
  2041. "fill": 1,
  2042. "gridPos": {
  2043. "h": 8,
  2044. "w": 12,
  2045. "x": 0,
  2046. "y": 67
  2047. },
  2048. "id": 21,
  2049. "legend": {
  2050. "alignAsTable": true,
  2051. "avg": true,
  2052. "current": true,
  2053. "max": true,
  2054. "min": true,
  2055. "rightSide": true,
  2056. "show": false,
  2057. "total": true,
  2058. "values": true
  2059. },
  2060. "lines": false,
  2061. "linewidth": 1,
  2062. "links": [],
  2063. "nullPointMode": "null",
  2064. "percentage": false,
  2065. "pointradius": 5,
  2066. "points": false,
  2067. "renderer": "flot",
  2068. "seriesOverrides": [],
  2069. "spaceLength": 10,
  2070. "stack": true,
  2071. "steppedLine": false,
  2072. "targets": [
  2073. {
  2074. "alias": "",
  2075. "format": "time_series",
  2076. "rawSql": "SELECT $__timeEpoch(time), measurement, \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1",
  2077. "refId": "A"
  2078. }
  2079. ],
  2080. "thresholds": [],
  2081. "timeFrom": null,
  2082. "timeShift": null,
  2083. "title": "Multiple series with metric column - histogram stacked",
  2084. "tooltip": {
  2085. "shared": true,
  2086. "sort": 0,
  2087. "value_type": "individual"
  2088. },
  2089. "type": "graph",
  2090. "xaxis": {
  2091. "buckets": 20,
  2092. "mode": "histogram",
  2093. "name": null,
  2094. "show": true,
  2095. "values": [
  2096. "current"
  2097. ]
  2098. },
  2099. "yaxes": [
  2100. {
  2101. "decimals": null,
  2102. "format": "short",
  2103. "label": null,
  2104. "logBase": 1,
  2105. "max": null,
  2106. "min": "0",
  2107. "show": true
  2108. },
  2109. {
  2110. "format": "short",
  2111. "label": null,
  2112. "logBase": 1,
  2113. "max": null,
  2114. "min": null,
  2115. "show": true
  2116. }
  2117. ],
  2118. "yaxis": {
  2119. "align": false,
  2120. "alignLevel": null
  2121. }
  2122. },
  2123. {
  2124. "aliasColors": {},
  2125. "bars": true,
  2126. "dashLength": 10,
  2127. "dashes": false,
  2128. "datasource": "gdev-postgres-ds-tests",
  2129. "fill": 1,
  2130. "gridPos": {
  2131. "h": 8,
  2132. "w": 12,
  2133. "x": 12,
  2134. "y": 67
  2135. },
  2136. "id": 26,
  2137. "legend": {
  2138. "alignAsTable": true,
  2139. "avg": true,
  2140. "current": true,
  2141. "max": true,
  2142. "min": true,
  2143. "rightSide": true,
  2144. "show": false,
  2145. "total": true,
  2146. "values": true
  2147. },
  2148. "lines": false,
  2149. "linewidth": 1,
  2150. "links": [],
  2151. "nullPointMode": "null",
  2152. "percentage": false,
  2153. "pointradius": 5,
  2154. "points": false,
  2155. "renderer": "flot",
  2156. "seriesOverrides": [],
  2157. "spaceLength": 10,
  2158. "stack": true,
  2159. "steppedLine": false,
  2160. "targets": [
  2161. {
  2162. "alias": "",
  2163. "format": "time_series",
  2164. "rawSql": "SELECT $__timeEpoch(time), \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1",
  2165. "refId": "A"
  2166. }
  2167. ],
  2168. "thresholds": [],
  2169. "timeFrom": null,
  2170. "timeShift": null,
  2171. "title": "Multiple series without metric column - histogram stacked",
  2172. "tooltip": {
  2173. "shared": true,
  2174. "sort": 0,
  2175. "value_type": "individual"
  2176. },
  2177. "type": "graph",
  2178. "xaxis": {
  2179. "buckets": 20,
  2180. "mode": "histogram",
  2181. "name": null,
  2182. "show": true,
  2183. "values": [
  2184. "total"
  2185. ]
  2186. },
  2187. "yaxes": [
  2188. {
  2189. "format": "short",
  2190. "label": null,
  2191. "logBase": 1,
  2192. "max": null,
  2193. "min": "0",
  2194. "show": true
  2195. },
  2196. {
  2197. "format": "short",
  2198. "label": null,
  2199. "logBase": 1,
  2200. "max": null,
  2201. "min": null,
  2202. "show": true
  2203. }
  2204. ],
  2205. "yaxis": {
  2206. "align": false,
  2207. "alignLevel": null
  2208. }
  2209. },
  2210. {
  2211. "aliasColors": {},
  2212. "bars": true,
  2213. "dashLength": 10,
  2214. "dashes": false,
  2215. "datasource": "gdev-postgres-ds-tests",
  2216. "fill": 1,
  2217. "gridPos": {
  2218. "h": 8,
  2219. "w": 12,
  2220. "x": 0,
  2221. "y": 75
  2222. },
  2223. "id": 23,
  2224. "legend": {
  2225. "alignAsTable": true,
  2226. "avg": true,
  2227. "current": true,
  2228. "max": true,
  2229. "min": true,
  2230. "rightSide": true,
  2231. "show": false,
  2232. "total": true,
  2233. "values": true
  2234. },
  2235. "lines": false,
  2236. "linewidth": 1,
  2237. "links": [],
  2238. "nullPointMode": "null",
  2239. "percentage": true,
  2240. "pointradius": 5,
  2241. "points": false,
  2242. "renderer": "flot",
  2243. "seriesOverrides": [],
  2244. "spaceLength": 10,
  2245. "stack": true,
  2246. "steppedLine": false,
  2247. "targets": [
  2248. {
  2249. "alias": "",
  2250. "format": "time_series",
  2251. "rawSql": "SELECT $__timeEpoch(time), measurement, \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1",
  2252. "refId": "A"
  2253. }
  2254. ],
  2255. "thresholds": [],
  2256. "timeFrom": null,
  2257. "timeShift": null,
  2258. "title": "Multiple series with metric column - histogram stacked percent",
  2259. "tooltip": {
  2260. "shared": true,
  2261. "sort": 0,
  2262. "value_type": "individual"
  2263. },
  2264. "type": "graph",
  2265. "xaxis": {
  2266. "buckets": 20,
  2267. "mode": "histogram",
  2268. "name": null,
  2269. "show": true,
  2270. "values": [
  2271. "current"
  2272. ]
  2273. },
  2274. "yaxes": [
  2275. {
  2276. "decimals": null,
  2277. "format": "short",
  2278. "label": null,
  2279. "logBase": 1,
  2280. "max": null,
  2281. "min": "0",
  2282. "show": true
  2283. },
  2284. {
  2285. "format": "short",
  2286. "label": null,
  2287. "logBase": 1,
  2288. "max": null,
  2289. "min": null,
  2290. "show": true
  2291. }
  2292. ],
  2293. "yaxis": {
  2294. "align": false,
  2295. "alignLevel": null
  2296. }
  2297. },
  2298. {
  2299. "aliasColors": {},
  2300. "bars": true,
  2301. "dashLength": 10,
  2302. "dashes": false,
  2303. "datasource": "gdev-postgres-ds-tests",
  2304. "fill": 1,
  2305. "gridPos": {
  2306. "h": 8,
  2307. "w": 12,
  2308. "x": 12,
  2309. "y": 75
  2310. },
  2311. "id": 24,
  2312. "legend": {
  2313. "alignAsTable": true,
  2314. "avg": true,
  2315. "current": true,
  2316. "max": true,
  2317. "min": true,
  2318. "rightSide": true,
  2319. "show": false,
  2320. "total": true,
  2321. "values": true
  2322. },
  2323. "lines": false,
  2324. "linewidth": 1,
  2325. "links": [],
  2326. "nullPointMode": "null",
  2327. "percentage": true,
  2328. "pointradius": 5,
  2329. "points": false,
  2330. "renderer": "flot",
  2331. "seriesOverrides": [],
  2332. "spaceLength": 10,
  2333. "stack": true,
  2334. "steppedLine": false,
  2335. "targets": [
  2336. {
  2337. "alias": "",
  2338. "format": "time_series",
  2339. "rawSql": "SELECT $__timeEpoch(time), \"valueOne\", \"valueTwo\" FROM metric_values \nWHERE $__timeFilter(time) AND measurement in($metric) ORDER BY 1",
  2340. "refId": "A"
  2341. }
  2342. ],
  2343. "thresholds": [],
  2344. "timeFrom": null,
  2345. "timeShift": null,
  2346. "title": "Multiple series without metric column - histogram stacked percent",
  2347. "tooltip": {
  2348. "shared": true,
  2349. "sort": 0,
  2350. "value_type": "individual"
  2351. },
  2352. "type": "graph",
  2353. "xaxis": {
  2354. "buckets": 20,
  2355. "mode": "histogram",
  2356. "name": null,
  2357. "show": true,
  2358. "values": [
  2359. "total"
  2360. ]
  2361. },
  2362. "yaxes": [
  2363. {
  2364. "format": "short",
  2365. "label": null,
  2366. "logBase": 1,
  2367. "max": null,
  2368. "min": "0",
  2369. "show": true
  2370. },
  2371. {
  2372. "format": "short",
  2373. "label": null,
  2374. "logBase": 1,
  2375. "max": null,
  2376. "min": null,
  2377. "show": true
  2378. }
  2379. ],
  2380. "yaxis": {
  2381. "align": false,
  2382. "alignLevel": null
  2383. }
  2384. }
  2385. ],
  2386. "refresh": false,
  2387. "schemaVersion": 16,
  2388. "style": "dark",
  2389. "tags": [
  2390. "gdev",
  2391. "postgres"
  2392. ],
  2393. "templating": {
  2394. "list": [
  2395. {
  2396. "allValue": null,
  2397. "current": {
  2398. "selected": true,
  2399. "tags": [],
  2400. "text": "All",
  2401. "value": [
  2402. "$__all"
  2403. ]
  2404. },
  2405. "datasource": "gdev-postgres-ds-tests",
  2406. "hide": 0,
  2407. "includeAll": true,
  2408. "label": "Metric",
  2409. "multi": true,
  2410. "name": "metric",
  2411. "options": [
  2412. {
  2413. "selected": true,
  2414. "text": "All",
  2415. "value": "$__all"
  2416. },
  2417. {
  2418. "selected": false,
  2419. "text": "Metric A",
  2420. "value": "Metric A"
  2421. },
  2422. {
  2423. "selected": false,
  2424. "text": "Metric B",
  2425. "value": "Metric B"
  2426. }
  2427. ],
  2428. "query": "SELECT DISTINCT measurement FROM metric_values",
  2429. "refresh": 0,
  2430. "regex": "",
  2431. "skipUrlSync": false,
  2432. "sort": 1,
  2433. "tagValuesQuery": "",
  2434. "tags": [],
  2435. "tagsQuery": "",
  2436. "type": "query",
  2437. "useTags": false
  2438. },
  2439. {
  2440. "auto": false,
  2441. "auto_count": 30,
  2442. "auto_min": "10s",
  2443. "current": {
  2444. "text": "10m",
  2445. "value": "10m"
  2446. },
  2447. "hide": 0,
  2448. "label": "Interval",
  2449. "name": "summarize",
  2450. "options": [
  2451. {
  2452. "selected": false,
  2453. "text": "1s",
  2454. "value": "1s"
  2455. },
  2456. {
  2457. "selected": false,
  2458. "text": "10s",
  2459. "value": "10s"
  2460. },
  2461. {
  2462. "selected": false,
  2463. "text": "30s",
  2464. "value": "30s"
  2465. },
  2466. {
  2467. "selected": false,
  2468. "text": "1m",
  2469. "value": "1m"
  2470. },
  2471. {
  2472. "selected": false,
  2473. "text": "5m",
  2474. "value": "5m"
  2475. },
  2476. {
  2477. "selected": true,
  2478. "text": "10m",
  2479. "value": "10m"
  2480. }
  2481. ],
  2482. "query": "1s,10s,30s,1m,5m,10m",
  2483. "refresh": 2,
  2484. "skipUrlSync": false,
  2485. "type": "interval"
  2486. }
  2487. ]
  2488. },
  2489. "time": {
  2490. "from": "2018-03-15T12:30:00.000Z",
  2491. "to": "2018-03-15T13:55:01.000Z"
  2492. },
  2493. "timepicker": {
  2494. "refresh_intervals": [
  2495. "5s",
  2496. "10s",
  2497. "30s",
  2498. "1m",
  2499. "5m",
  2500. "15m",
  2501. "30m",
  2502. "1h",
  2503. "2h",
  2504. "1d"
  2505. ],
  2506. "time_options": [
  2507. "5m",
  2508. "15m",
  2509. "1h",
  2510. "6h",
  2511. "12h",
  2512. "24h",
  2513. "2d",
  2514. "7d",
  2515. "30d"
  2516. ]
  2517. },
  2518. "timezone": "",
  2519. "title": "Datasource tests - Postgres (unittest)",
  2520. "uid": "vHQdlVziz",
  2521. "version": 9
  2522. }