datasource_tests_postgres_unittest.json 53 KB

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