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

add new metrics around dnsrecord #46

Merged
merged 2 commits into from
Sep 17, 2024
Merged

add new metrics around dnsrecord #46

merged 2 commits into from
Sep 17, 2024

Conversation

maleck13
Copy link
Contributor

adds a kuadrant_dnrecord_status_owners and kuadrant_dnsrecord_status metrics which will can be used to see how many dnsrecords there are and how many owners there are. Allowing an alert to be crafted in a multi-instance scenerio to spot hosts with potential orphaned records (IE ones the operator did not get chance to remove for some reason)

sum(count by(rootDomain) (kuadrant_dnsrecord_status_root_domain_owners) / count by(rootDomain) (kuadrant_dnsrecord_status) - count by(rootDomain) (kuadrant_dnsrecord_status) )

Signed-off-by: craig <[email protected]>
Copy link
Member

@david-martin david-martin left a comment

Choose a reason for hiding this comment

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

Thanks @maleck13
I'm happy to merge this as is, and update pending changes in #47 to move the non gateway api resource out to a separate kuadrant folder.
I plan to do a release (0.5.0) after that pr lands. See the description in there for how to include the kuadrant metrics config after that release.

@david-martin david-martin merged commit aba137a into main Sep 17, 2024
4 checks passed
@david-martin david-martin deleted the gh-202 branch September 17, 2024 11:17
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.

2 participants