dashboard.json 54 KB

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