Skip to content

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
@ghost ghost force-pushed the feature/metrics-groups branch from f83fdeb to b354c61 Compare February 10, 2022 17:33
@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
Contributor

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

@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
Contributor

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
Contributor

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