How to add SSL Cert expiration alert in Prometheus

308 views
Skip to first unread message

218...@geneva304.org

unread,
Oct 17, 2018, 2:59:15 PM10/17/18
to Prometheus Users
Hi All, 

I am looking to add an alert in prometheus to send an alert when ssl cert expires before 10 days or so. How can we this be done. Any help would be greatly appreciate it. 

Thanks!

Brian Brazil

unread,
Oct 17, 2018, 3:54:11 PM10/17/18
to 218...@geneva304.org, promethe...@googlegroups.com

--
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 prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/6c16c15b-e8da-4534-b242-19d81c956279%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

akhta...@gmail.com

unread,
Oct 17, 2018, 4:44:11 PM10/17/18
to Prometheus Users
Hi Brian, 

Thanks for your response. Can the below config be enough to send an alert when i create a file like ssl_expiry.rules?


groups: 
  - name: ssl_expiry.rules 
    rules: 
      - alert: SSLCertExpiringSoon 
        expr: probe_ssl_earliest_cert_expiry{job="blackbox"} - time() < 86400 * 30 
        for: 10m
Reply all
Reply to author
Forward
0 new messages