-
Notifications
You must be signed in to change notification settings - Fork 148
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
Certificate expiry monitoring #103
Comments
This should be pretty straight forward, I've done this previously. @neilisfragile: Was there any discussions about how we want the metric to be exported? An integer number of seconds is what comes to mind to me...? We could also export the raw time of expiration, but that seems less ideal. |
Also, just to make sure I'm not missing anything -- it seems this is only applicable when using APNs with a certfile (not a keyfile). |
Sounds sane but @michaelkaye is the best person to ask. |
Raw time of expiration will be independent of delays / clock skew on the target machine, and is what (eg) blackbox exporter reports currently, as the metric We alert on a derived metric that is like so:
to get 'days to expiry' for our https used certificates |
i know it's a tiny task, but we do run it about 512,000 times between cert expiries ^^ It will still be useful the other way, but this is just a bit of context on other situations where we have this type of metric. |
so for clarity: you're suggesting we report expiry date, in seconds since the unix epoch? |
yes, to keep it in sync with similar things we have reporting. |
Sygnal should check the expiry date of its certificates and emit them as a metric which can trigger alerts.
The text was updated successfully, but these errors were encountered: