Filter it to ignore values which are "too negative":expr: (probe_ssl_earliest_cert_expiry - time()) / 86400 < 14 > -365
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/3ef5f08e-fca0-479e-96f1-b8a7e2c2514bo%40googlegroups.com.
- job_name: blackbox
honor_timestamps: true
params:
module:
- http_2xx
scrape_interval: 1m
scrape_timeout: 1m
metrics_path: /probe
scheme: http
file_sd_configs:
- files:
- /etc/prometheus/file_sd_config.d/blackbox_*.yaml
refresh_interval: 5m
relabel_configs:
- source_labels: [__address__]
separator: ;
regex: (.*)
target_label: __param_target
replacement: $1
action: replace
- source_labels: [__param_target]
separator: ;
regex: (.*)
target_label: instance
replacement: $1
action: replace
- separator: ;
regex: (.*)
target_label: __address__
replacement: localhost:9115
action: replaceAll monitored web services use internal certs --
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 view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e1cadbe1-02c1-4aec-80bb-427ec7383b55o%40googlegroups.com.
In this case the cert has expired on Oct 13 22:12:47 2020 GMT. Since it's not last one in chain it's not breaking things. I can set the filter accordingly ( with smth like > -7), just thought there might be some other solution.