-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
store: add flag to select the label to use as timeline title in web UI #6192
store: add flag to select the label to use as timeline title in web UI #6192
Conversation
dca5c6e
to
3d9122c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it, thanks.
I would just recommend changing the flag description in both the store and compactor since the existing one is very confusing.
cmd/thanos/store.go
Outdated
@@ -183,6 +184,8 @@ func (sc *storeConfig) registerFlag(cmd extkingpin.FlagClause) { | |||
cmd.Flag("web.disable-cors", "Whether to disable CORS headers to be set by Thanos. By default Thanos sets CORS headers to be allowed by all."). | |||
Default("false").BoolVar(&sc.webConfig.disableCORS) | |||
|
|||
cmd.Flag("bucket-web-label", "Prometheus label to use as timeline title in the bucket web UI").StringVar(&sc.label) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmd.Flag("bucket-web-label", "Prometheus label to use as timeline title in the bucket web UI").StringVar(&sc.label) | |
cmd.Flag("bucket-web-label", "External block label to use as group title in the bucket web UI").StringVar(&sc.label) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks,
I fixed the wording in store
, compact
and tools_bucket
Signed-off-by: Thibaut Ackermann <thibaut.ackermann@al-enterprise.com>
3d9122c
to
7e31886
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Hello,
Compactor
has this nice flag--bucket-web-label
to select the label to use as timeline title in the 'block' web UI (i.e. replace the1
value in the following screenshot with a comprehensible value) :However,
Store
is missing this flag, so I added it, using the same name/description to stay consistent.Changes
--bucket-web-label
tostore
commandVerification