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

Grafana: include certs where renewal time is exceeded in Radix Overview dashboard #1427

Open
nilsgstrabo opened this issue Aug 9, 2024 · 0 comments
Assignees

Comments

@nilsgstrabo
Copy link
Contributor

nilsgstrabo commented Aug 9, 2024

Cert manager does not provide metrics for pending or failing certrequests or orders.
If any of these are pending for a long time, e.g. due to incorrect configuration of cert-manager components, then the only way to detect that something is wrong, is by checking if the renewal time for the certificate has expired. The renewal time is exposed in a metric called certmanager_certificate_renewal_timestamp_seconds.

Include this metric in the existing Radix Overview metric, e.g.

(sum(certmanager_certificate_ready_status{RadixCluster="prod",  condition!="True"}) + (vector(1) and on() (certmanager_certificate_renewal_timestamp_seconds{RadixCluster="prod"} - time() < 0)) or on() vector(0)) > bool 0
@nilsgstrabo nilsgstrabo self-assigned this Aug 9, 2024
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

No branches or pull requests

1 participant