Modify your grafana panel then.

If you use the PromQL expression browser in prometheus (normally on port 
9090) and start typing "probe_" you'll see from autocompletion that there's 
a metric called probe_ssl_earliest_cert_expiry, which gives you the actual 
expiry date as unix timestamp.

I don't know if Grafana can show unix timestamps as human-readable time, 
but the expression

    (probe_ssl_earliest_cert_expiry - time())/86400

will give you the number of days until it expires, which is perfectly fine 
as a gauge.  You can make it go yellow or red for values below thresholds 
that you choose.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/5f3e0d0e-de7b-4d6e-ad66-565bafbb3c7b%40googlegroups.com.

Reply via email to