-
Notifications
You must be signed in to change notification settings - Fork 33
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
Feature/metrics groups #212
Conversation
f83fdeb
to
b354c61
Compare
a6b8b83
to
56a00c8
Compare
bb3a7cc
to
987c72a
Compare
src/StreamHandler.h
Outdated
|
||
if (config_exists("enable")) { | ||
for (const auto &group : config_get<StringList>("enable")) { | ||
_groups.set(group_defs.at(group)); |
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.
so I think we want the extra error handling here to include the available group names (keys from group_defs)
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.
done
_dns_topNX.to_json(j); | ||
_dns_topREFUSED.to_json(j); | ||
_dns_topSRVFAIL.to_json(j); | ||
_dns_topRCode.to_json(j, [](const uint16_t &val) { |
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.
topRCode is not in group
_dns_topNX.to_prometheus(out, add_labels); | ||
_dns_topREFUSED.to_prometheus(out, add_labels); | ||
_dns_topSRVFAIL.to_prometheus(out, add_labels); | ||
_dns_topRCode.to_prometheus(out, add_labels, [](const uint16_t &val) { |
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.
topRCode not in group
No description provided.