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

Feature/metrics groups #212

Merged
25 commits merged into from
Feb 22, 2022
Merged

Feature/metrics groups #212

25 commits merged into from
Feb 22, 2022

Conversation

ghost
Copy link

@ghost ghost commented Feb 9, 2022

No description provided.

@ghost ghost requested a review from weyrick February 9, 2022 19:39
src/AbstractMetricsManager.h Outdated Show resolved Hide resolved
src/handlers/dns/DnsStreamHandler.cpp Outdated Show resolved Hide resolved
src/handlers/dns/DnsStreamHandler.cpp Outdated Show resolved Hide resolved
src/AbstractMetricsManager.h Outdated Show resolved Hide resolved
src/AbstractMetricsManager.h Outdated Show resolved Hide resolved
src/handlers/dns/DnsStreamHandler.cpp Outdated Show resolved Hide resolved
src/handlers/dns/DnsStreamHandler.cpp Outdated Show resolved Hide resolved
src/handlers/dns/DnsStreamHandler.cpp Outdated Show resolved Hide resolved
src/handlers/dns/DnsStreamHandler.cpp Outdated Show resolved Hide resolved
src/handlers/dns/DnsStreamHandler.h Outdated Show resolved Hide resolved
@ghost ghost force-pushed the feature/metrics-groups branch from f83fdeb to b354c61 Compare February 10, 2022 17:33
src/AbstractMetricsManager.h Outdated Show resolved Hide resolved
@ghost ghost requested a review from weyrick February 10, 2022 21:36
@ghost ghost force-pushed the feature/metrics-groups branch 2 times, most recently from a6b8b83 to 56a00c8 Compare February 11, 2022 14:09
@ghost ghost linked an issue Feb 14, 2022 that may be closed by this pull request
@ghost ghost force-pushed the feature/metrics-groups branch from bb3a7cc to 987c72a Compare February 16, 2022 15:46

if (config_exists("enable")) {
for (const auto &group : config_get<StringList>("enable")) {
_groups.set(group_defs.at(group));
Copy link
Member

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)

Copy link
Author

Choose a reason for hiding this comment

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

done

src/AbstractMetricsManager.h Show resolved Hide resolved
src/AbstractMetricsManager.h Show resolved Hide resolved
src/AbstractMetricsManager.h Outdated Show resolved Hide resolved
src/Policies.cpp Outdated Show resolved Hide resolved
src/handlers/dns/DnsStreamHandler.cpp Outdated Show resolved Hide resolved
src/handlers/dns/DnsStreamHandler.cpp Outdated Show resolved Hide resolved
src/handlers/dns/DnsStreamHandler.cpp Show resolved Hide resolved
src/handlers/dns/DnsStreamHandler.h Outdated Show resolved Hide resolved
src/handlers/dns/DnsStreamHandler.h Outdated Show resolved Hide resolved
@ghost ghost requested a review from weyrick February 21, 2022 21:24
_dns_topNX.to_json(j);
_dns_topREFUSED.to_json(j);
_dns_topSRVFAIL.to_json(j);
_dns_topRCode.to_json(j, [](const uint16_t &val) {
Copy link
Member

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) {
Copy link
Member

Choose a reason for hiding this comment

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

topRCode not in group

@ghost ghost requested a review from weyrick February 22, 2022 18:43
@ghost ghost merged commit a6002ce into develop Feb 22, 2022
@ghost ghost deleted the feature/metrics-groups branch February 22, 2022 22:24
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implement metric groups
1 participant