annotations.json 6.8 KB

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