datasource_tests_postgres_unittest.json 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356
  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 $__timeGroup(time, '5m') AS time, 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 $__timeGroup(time, '5m', NULL) AS time, 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 $__timeGroup(time, '5m', 10.0) AS time, 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 $__timeGroup(time, '$summarize') AS time, 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 $__timeGroup(time, '$summarize', NULL) AS time, 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 $__timeGroup(time, '$summarize', 100.0) AS time, 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 $__timeGroup(time, '$summarize') AS time, \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": 17
  2356. }