fastly / fastly-exporter

A Prometheus exporter for the Fastly Real-time Analytics API
Apache License 2.0
99 stars 36 forks source link

Add TLS certificates API support #170

Open mbtroll opened 5 months ago

mbtroll commented 5 months ago

This PR adds TLS certificates API support for monitoring expiry date of server certificates in Fastly account.

The code introduces new prometheus metric:

# HELP fastly_rt_cert_expiry_timestamp_seconds Metadata about Fastly certificates.
# TYPE fastly_rt_cert_expiry_timestamp_seconds gauge
fastly_rt_cert_expiry_timestamp_seconds{CN="abc",SN="123",id="xxx",issuer="abc",name="xxx"} 1.748605196e+09