-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(config): emit log changed global fields and metric vector_config_reload_rejected when reload is rejected #23500
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
base: master
Are you sure you want to change the base?
Conversation
#1815 I understand this is currently blocked for safety, but in some cases we’d prefer to reload anyway. If you're open to it, I’d be happy to submit a PR. Of course, it would be opt-in and disabled by default. Let me know — 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.
Thanks @suikammd, this is a nice UX improvement.
There are quite a few checks failing. Let me know if you need help addressing them. |
Head branch was pushed to by a user without write access
Head branch was pushed to by a user without write access
b786b29
to
71d5017
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.
Hmm I think it would be best to keep the original PR and introduce the metric in a follow up.
Also, while looking at the ReloadRejectReason::GlobalOptionsChanged
gauge, I realized that we can probably do something more generic here. Something like emitting reload signals for various reasons e.g. event="config reloaded"
, event="failed to reload", reason="global options changed"
.
Hi @suikammd, there are a few failing checks.
Let's go with this approach so we can end up with a better result. |
#23662 merged! We will take a look at this PR again once merge conflicts are fixed :) |
Summary
This PR add vector_config_reload_rejected{reason="global_options"} metric and internal event to observe rejected config reloads caused by GlobalOptions changes.