Comments (2)
Thanks for reporting this issue.
Looks like this happens because:
- We register the metrics, even when there is no ocsp response.
- The default value for the status metric is 0, which is also the 'Good' response
See: https://github.com/ribbybibby/ssl_exporter/blob/master/prober/metrics.go#L206-L217.
Perhaps we shouldn't register the metrics if we don't have an OCSP response.
On reflection, I wonder whether I should have made the OCSP functionality a module option and then we could fail if there is no ocsp response.
from ssl_exporter.
The ssl_ocsp_response_stapled
metric can be used to check whether there was a response at all.
For instance, you could check for a non-good status, but only where there is a stapled response with something like:
ssl_ocsp_response_stapled == 1 and ssl_ocsp_response_status != 0
from ssl_exporter.
Related Issues (20)
- OCSP server check? HOT 3
- Container has runAsNonRoot and image has non-numeric user (ssl), cannot verify user is non-root HOT 1
- go-restful lib in 2.4.1 having CRTICAL vulnerability HOT 1
- Consider defaulting to no modules
- Request for `dry-run` feature
- Consider allowing setting up custom headers on the HTTPS module HOT 3
- Crypto Go :we are a research group to help developers build secure applications.
- X-Prometheus-Scrape-Timeout-Seconds and network latency
- ssl_exporter dont export timestamp to prometheus HOT 2
- How can I custom the resolve IP for tls certificate check ? HOT 2
- The Certificate is revoked, but exporter ssl_ocsp_response_status is Good
- What format is the serial number in? HOT 1
- How can I monitor an IPv6 domain name? HOT 1
- Is it possible to use this exporter to monitor PEM files within each pod? HOT 1
- Allow to use remote http\https resources in PEM file module HOT 3
- Monitor expiring bundle certificate HOT 1
- List of all secrets does not work in restricted cluster - SSL Exporter needs to scope secret listing to a single namespace where possible
- Separate regex validation failures from `ssl_probe_success` metric HOT 7
- Add JKS (Java KeyStore) support? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ssl_exporter.