Skip to content
This repository was archived by the owner on Jul 22, 2020. It is now read-only.

Commit 0f4faec

Browse files
authored
Merge pull request #177 from cloudflare/hide-annotations
Allow hiding annotations in the UI
2 parents 22fddad + 5d0366a commit 0f4faec

File tree

21 files changed

+406
-287
lines changed

21 files changed

+406
-287
lines changed

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,62 @@ This option can also be set using `-alertmanager.uris` flag. Example:
191191

192192
This variable is required and there is no default value.
193193

194+
#### ANNOTATIONS_DEFAULT_HIDDEN
195+
196+
Enabling this option will hide all annotations in the UI, except for those
197+
that are listed in the `ANNOTATIONS_VISIBLE` option.
198+
199+
Examples:
200+
201+
ANNOTATIONS_DEFAULT_HIDDEN=true
202+
ANNOTATIONS_DEFAULT_HIDDEN=false
203+
204+
This option can also be set using `-annotations.default.hidden` flag. Example:
205+
206+
$ unsee -annotations.default.hidden
207+
208+
Default is `false`, which means that all annotations are visible.
209+
210+
#### ANNOTATIONS_HIDDEN
211+
212+
List of annotation names that should be hidden in the UI. Hidden annotations
213+
can still be accessed if needed by clicking on a zoom button that will appear
214+
if there are any hidden annotations.
215+
216+
Examples:
217+
218+
ANNOTATIONS_HIDDEN=summary
219+
ANNOTATIONS_HIDDEN="summary owner"
220+
221+
This option can also be set using `-annotations.hidden` flag. Example:
222+
223+
$ unsee -annotations.hidden "summary owner"
224+
225+
This variable is optional and default is not set (all annotations are visible),
226+
unless user enables `ANNOTATIONS_DEFAULT_HIDDEN` option.
227+
228+
#### ANNOTATIONS_VISIBLE
229+
230+
List of annotation names that should be visible in the UI. This option is only
231+
useful when `ANNOTATIONS_DEFAULT_HIDDEN` is set.
232+
With `ANNOTATIONS_DEFAULT_HIDDEN` all annotations are hidden by default unless
233+
they are present in the `ANNOTATIONS_VISIBLE` option.
234+
If `ANNOTATIONS_DEFAULT_HIDDEN` is not enabled this option is no-op.
235+
236+
Examples:
237+
238+
ANNOTATIONS_VISIBLE=summary
239+
ANNOTATIONS_VISIBLE="summary owner"
240+
241+
This option can also be set using `-annotations.visible` flag. Example:
242+
243+
$ unsee -annotations.visible "summary owner"
244+
245+
This variable is optional and default is not set.
246+
If `ANNOTATIONS_HIDDEN` is enabled then all annotations are hidden by default.
247+
If `ANNOTATIONS_HIDDEN` is not enabled then all annotations are visible by
248+
default.
249+
194250
#### DEBUG
195251

196252
Will enable [gin](https://github.com/gin-gonic/gin) debug mode. This will

0 commit comments

Comments
 (0)