-
Notifications
You must be signed in to change notification settings - Fork 9.6k
nhcb: Add global config option for convert_classic_histograms_to_nhcb #16226
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
nhcb: Add global config option for convert_classic_histograms_to_nhcb #16226
Conversation
3511e1f
to
e6b3479
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.
Looks generally good, but I am leaving for PTO, so couldn't take very deep look (e.g. if we have a precedence for *bool
pattern in our config).
LGTM as far I see (modulo nits) (:
df1d683
to
818a191
Compare
@krajorama or @beorn7 can either of you help review this? |
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.
Looking good, I have some further suggestions.
Bartek asked if we should use *bool
, but I don't see how we could avoid it. The other parameters that have global defaults are numbers (like scrape interval, timeout) so it's easy to just take the 0 value as not-set, but this is a bool.
The thing that has tripped us up before was making changes effective on reload of configuration. I don't have the time to check that now, but maybe you could try it out? See #13846
818a191
to
36b9695
Compare
There was a problem hiding this comment.
Choose a reaso 8000 n for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The thing that has tripped us up before was making changes effective on reload of configuration. I don't have the time to check that now, but maybe you could try it out? See #13846
Thanks for pointing this out @krajorama. I tested reloading prometheus with a config change to the convert classic hist to nhcb and the change was picked up. Did this by sending a SIGHUP to prometheus. Is there further considerations for this?
Regarding the sync part, I saw sync is only called here
Line 202 in 7d73c1d
sp.Sync(groups) |
Addresses the global part of prometheus#13532 Signed-off-by: chardch <otwordsne@gmail.com>
36b9695
to
7c13bed
Compare
Signed-off-by: chardch <otwordsne@gmail.com>
7c13bed
to
357b5ed
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.
LGTM
Addresses the global part of #13532