Skip to content

Add support for ssl certificate start time metric #1386

@bseenu

Description

@bseenu

Today we are capturing the various tls metrics such as cert_expiry, chain_expiry, chain_info, tls_version_info, tls_cipher_info etc

~ $ hostname
prometheus-blackbox-exporter-99cbcf976-mx878
~ $ wget -qO- 'http://localhost:9115/probe?module=tls_cert_check&target=www.google.com:443'|grep -E '^probe_(ssl|tls)'
probe_ssl_earliest_cert_expiry 1.748853465e+09
probe_ssl_last_chain_expiry_timestamp_seconds -6.21355968e+10
probe_ssl_last_chain_info{fingerprint_sha256="14e641e9f3eb7cf4bdf6b0bc364bd8529feafdb78904c45a49ce25d7daecc824",issuer="CN=WR2,O=Google Trust Services,C=US",subject="CN=www.google.com",subjectalternative="www.google.com"} 1
probe_tls_version_info{version="TLS 1.3"} 1
~ $

But we have the special requirement of monitoring the cert start date as the app does not accept the cert if the start date is not beyond certain timestamp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions