Closed zakiharis closed 3 years ago
You aren't defining any targets with your certificates exporter
config. This should work:
scrape_configs:
- job_name: 'prometheus'
static_configs:
- targets: ['prometheus:9090']
- job_name: 'certificates exporter'
metrics_path: /probe
params:
module: [ "file" ]
target: [ "/root/certificates/*.pem" ]
static_configs:
- targets: ['127.0.0.1:9219']
ah, silly mistake.
its works now
thank you sir
I'm using a file probe.
After adding the job and reload the Prometheus config, Prometheus didn't scrape the job. No errors are thrown by Prometheus.
is my config correct?
up{} only show Prometheus job, no certificates exporter job
Also no errors if curl the ssl-exporter