templated-graphs.json 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. {
  2. "title": "Templated Graphs",
  3. "services": {
  4. "filter": {
  5. "list": [
  6. {
  7. "type": "filter",
  8. "name": "root",
  9. "query": "statsd.fakesite.counters.session_start.*",
  10. "includeAll": true,
  11. "options": [
  12. {
  13. "text": "All",
  14. "value": "{desktop,mobile,tablet}"
  15. },
  16. {
  17. "text": "desktop",
  18. "value": "desktop"
  19. },
  20. {
  21. "text": "mobile",
  22. "value": "mobile"
  23. },
  24. {
  25. "text": "tablet",
  26. "value": "tablet"
  27. }
  28. ],
  29. "current": {
  30. "text": "All",
  31. "value": "{desktop,mobile,tablet}"
  32. }
  33. }
  34. ],
  35. "time": {
  36. "from": "now-6h",
  37. "to": "now"
  38. }
  39. }
  40. },
  41. "rows": [
  42. {
  43. "title": "Row1",
  44. "height": "350px",
  45. "editable": true,
  46. "collapse": false,
  47. "collapsable": true,
  48. "panels": [
  49. {
  50. "span": 12,
  51. "editable": true,
  52. "type": "graphite",
  53. "loadingEditor": false,
  54. "datasource": null,
  55. "renderer": "flot",
  56. "x-axis": true,
  57. "y-axis": true,
  58. "scale": 1,
  59. "y_formats": [
  60. "short",
  61. "short"
  62. ],
  63. "grid": {
  64. "max": null,
  65. "min": 0,
  66. "threshold1": null,
  67. "threshold2": null,
  68. "threshold1Color": "rgba(216, 200, 27, 0.27)",
  69. "threshold2Color": "rgba(234, 112, 112, 0.22)"
  70. },
  71. "annotate": {
  72. "enable": false
  73. },
  74. "resolution": 100,
  75. "lines": true,
  76. "fill": 1,
  77. "linewidth": 1,
  78. "points": false,
  79. "pointradius": 5,
  80. "bars": false,
  81. "stack": false,
  82. "legend": {
  83. "show": true,
  84. "values": false,
  85. "min": false,
  86. "max": false,
  87. "current": false,
  88. "total": false,
  89. "avg": false
  90. },
  91. "percentage": false,
  92. "zerofill": true,
  93. "nullPointMode": "connected",
  94. "steppedLine": false,
  95. "tooltip": {
  96. "value_type": "cumulative",
  97. "query_as_alias": true
  98. },
  99. "targets": [
  100. {
  101. "target": "aliasByNode(summarize(statsd.fakesite.counters.session_start.[[root]].count,'1min','sum'),4)"
  102. }
  103. ],
  104. "aliasColors": {
  105. "highres.test": "#1F78C1",
  106. "scale(highres.test,3)": "#6ED0E0",
  107. "mobile": "#6ED0E0",
  108. "tablet": "#EAB839"
  109. },
  110. "aliasYAxis": {},
  111. "title": "Device sessions"
  112. }
  113. ],
  114. "notice": false
  115. },
  116. {
  117. "title": "Row1",
  118. "height": "350px",
  119. "editable": true,
  120. "collapse": false,
  121. "collapsable": true,
  122. "panels": [
  123. {
  124. "span": 6,
  125. "editable": true,
  126. "type": "graphite",
  127. "loadingEditor": false,
  128. "datasource": null,
  129. "renderer": "flot",
  130. "x-axis": true,
  131. "y-axis": true,
  132. "scale": 1,
  133. "y_formats": [
  134. "short",
  135. "short"
  136. ],
  137. "grid": {
  138. "max": null,
  139. "min": 0,
  140. "threshold1": null,
  141. "threshold2": null,
  142. "threshold1Color": "rgba(216, 200, 27, 0.27)",
  143. "threshold2Color": "rgba(234, 112, 112, 0.22)"
  144. },
  145. "annotate": {
  146. "enable": false
  147. },
  148. "resolution": 100,
  149. "lines": false,
  150. "fill": 1,
  151. "linewidth": 2,
  152. "points": false,
  153. "pointradius": 5,
  154. "bars": true,
  155. "stack": true,
  156. "legend": {
  157. "show": true,
  158. "values": false,
  159. "min": false,
  160. "max": false,
  161. "current": false,
  162. "total": false,
  163. "avg": false
  164. },
  165. "percentage": false,
  166. "zerofill": true,
  167. "nullPointMode": "connected",
  168. "steppedLine": false,
  169. "tooltip": {
  170. "value_type": "cumulative",
  171. "query_as_alias": true
  172. },
  173. "targets": [
  174. {
  175. "target": "aliasByNode(summarize(statsd.fakesite.counters.session_start.[[root]].count,'1h','sum'),4)"
  176. }
  177. ],
  178. "aliasColors": {
  179. "highres.test": "#1F78C1",
  180. "scale(highres.test,3)": "#6ED0E0",
  181. "tablet": "#EAB839",
  182. "desktop": "#7EB26D",
  183. "mobile": "#6ED0E0"
  184. },
  185. "aliasYAxis": {},
  186. "title": "Device sessions (1h)"
  187. },
  188. {
  189. "error": false,
  190. "span": 6,
  191. "editable": true,
  192. "type": "text",
  193. "loadingEditor": false,
  194. "mode": "markdown",
  195. "content": "#### Templated metric queries / graphs \n- In dashboard settings, in the Controls tab / Feature toggles. You can enable 'Filtering' \n- This feature when enabled will show you a bar bellow the menu.\n- In this bar you can add filters, or what should be named templated metric segments. \n- A filter is a query for a specific metric segment\n- Open any graph in this dashboard and edit mode and you can see that the [[device]] filter is used instead of a wildcard.\n- Try clicking the All link in the filter menu at the top, change device and see that all graphs change to only show values for that device. ",
  196. "style": {},
  197. "title": "Description"
  198. }
  199. ],
  200. "notice": false
  201. }
  202. ],
  203. "editable": true,
  204. "failover": false,
  205. "panel_hints": true,
  206. "style": "dark",
  207. "pulldowns": [
  208. {
  209. "type": "filtering",
  210. "collapse": false,
  211. "notice": false,
  212. "enable": true
  213. },
  214. {
  215. "type": "annotations",
  216. "enable": false
  217. }
  218. ],
  219. "nav": [
  220. {
  221. "type": "timepicker",
  222. "collapse": false,
  223. "notice": false,
  224. "enable": true,
  225. "status": "Stable",
  226. "time_options": [
  227. "5m",
  228. "15m",
  229. "1h",
  230. "6h",
  231. "12h",
  232. "24h",
  233. "2d",
  234. "7d",
  235. "30d"
  236. ],
  237. "refresh_intervals": [
  238. "5s",
  239. "10s",
  240. "30s",
  241. "1m",
  242. "5m",
  243. "15m",
  244. "30m",
  245. "1h",
  246. "2h",
  247. "1d"
  248. ],
  249. "now": true
  250. }
  251. ],
  252. "loader": {
  253. "save_gist": false,
  254. "save_elasticsearch": true,
  255. "save_local": true,
  256. "save_default": true,
  257. "save_temp": true,
  258. "save_temp_ttl_enable": true,
  259. "save_temp_ttl": "30d",
  260. "load_gist": false,
  261. "load_elasticsearch": true,
  262. "load_elasticsearch_size": 20,
  263. "load_local": false,
  264. "hide": false
  265. },
  266. "refresh": false,
  267. "tags": [
  268. "showcase",
  269. "templated"
  270. ],
  271. "timezone": "browser"
  272. }