Skip to content

add new metrics around dnsrecord#46

Merged
david-martin merged 2 commits intomainfrom
gh-202
Sep 17, 2024
Merged

add new metrics around dnsrecord#46
david-martin merged 2 commits intomainfrom
gh-202

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 <cbrookes@redhat.com>
Signed-off-by: craig <cbrookes@redhat.com>
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
@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