Exporter for SSL Certificate metrics https://prometheus.io/
- Write the domain you want to check the expiration date of the ssl to JSON File.
{"domains":["example.com","example.net","example.org"],"isLocal":false}
-
Hosting the JSON File to the web, such as Gist and S3.
-
Specify it in the environment variable CONFIG_URL.
git clone [email protected]:s-aska/ssl_certificate_exporter.git
cd s-aska/ssl_certificate_exporter
go build
env \
PORT=9100 \
CONFIG_URL="https://.../config.json" \
./ssl_certificate_exporter
docker pull aska/ssl_certificate_exporter
docker run -e PORT=9100 \
-e CONFIG_URL="https://.../config.json" \
-p 9100:9100 \
--name ssl_certificate_exporter \
--rm \
aska/ssl_certificate_exporter
curl -X POST http://XXX.XXX.XXX.XXX:9100/-/reload
Query: ssl_certificate_expires
Legend format: {{domain}}
Axes Left Y Unit: seconds(s)