Skip to content
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

Merged
merged 1 commit into from
Mar 8, 2023

Conversation

thib-ack
Copy link
Contributor

@thib-ack thib-ack commented Mar 7, 2023

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 the 1 value in the following screenshot with a comprehensible value) :

Capture d’écran 2023-03-07 à 10 36 58

However, Store is missing this flag, so I added it, using the same name/description to stay consistent.

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

  • added flag --bucket-web-label to store command

Verification

@thib-ack thib-ack force-pushed the store-bucket-web-label branch 2 times, most recently from dca5c6e to 3d9122c Compare March 7, 2023 10:29
fpetkovski
fpetkovski previously approved these changes Mar 7, 2023
Copy link
Contributor

@fpetkovski fpetkovski left a 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.

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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)

Copy link
Contributor Author

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>
Copy link
Contributor

@fpetkovski fpetkovski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

Copy link
Member

@saswatamcode saswatamcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@saswatamcode saswatamcode merged commit 80d9847 into thanos-io:main Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants