-
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
Refactor flag parsing and runRule arguments for ruler #3993
Conversation
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.
It looks generally good, thanks! Will review more carefully later.
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, just let's ensure all flags are used/not missed. (will do that later)
docs/components/compact.md
Outdated
@@ -428,6 +428,10 @@ Flags: | |||
Prometheus relabel-config syntax. See format | |||
details: | |||
https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config | |||
--web.route-prefix="" Prefix for API and UI endpoints. This allows |
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.
This is great, but let's make sure this flag is handled and not registered and not used, by accident (:
docs/components/rule.md
Outdated
@@ -269,73 +269,16 @@ Flags: | |||
TLS CA to verify clients against. If no client | |||
CA is specified, there is no client | |||
verification on server side. (tls.NoClientCert) | |||
--label=<name>="<value>" ... |
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.
Let's review manually here, but @idoqo can you add an issue on Thanos for the task to print flags in sorted order. (Let's make sure to provide the use case).
Signed-off-by: Michael Okoko <[email protected]>
Signed-off-by: Michael Okoko <[email protected]>
5f88fff
to
2fa83f0
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.
Nice! Now it's super easy to see what was added 🤗 Thanks to you @idoqo and @wiardvanrij for adding sorting!
* Refactor flag parsing and runRule arguments for ruler Signed-off-by: Michael Okoko <[email protected]> * Regenerate sorted docs for rule and compactor Signed-off-by: Michael Okoko <[email protected]> Signed-off-by: someshkoli <[email protected]>
Signed-off-by: Michael Okoko [email protected]
Changes
runRule
arguments into a config struct which can then be passed to the function instead.query.*
andalertmanagers.*
. (As per cmd/thanos: Refactor run*(...) functions. #2248 and similar to Refactor of commands and flag parsing #2267).