datasource_tests_postgres_unittest.json 55 KB

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