datasource_tests_postgres_unittest.json 61 KB

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