[blackbox exporter] how to create custom labels for a single Metric

271 views
Skip to first unread message

rajiv....@gmail.com

unread,
Apr 12, 2018, 1:25:25 PM4/12/18
to Prometheus Developers

Hi,

I have implemented blackbox exporter, works well. I need help on how to create custom labels for a single metric? I need https module to gather ssl expiry details from host.

The default https_ssl_expiry doesn’t have this label, hence doesn’t help.

Regards,
Rajiv

Ben Kochie

unread,
Apr 13, 2018, 4:28:01 AM4/13/18
to rajiv....@gmail.com, Prometheus Developers
Are you looking for the metric `probe_ssl_earliest_cert_expiry`?  This returns the timestamp of the cert expiry.


--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/cb410d66-595c-48c0-acf1-9f2c7afb66f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages