You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue with the x509-certificate-exporter when using the --expose-per-cert-error-metrics option. The following configuration was set:
Certificate file: /path/to/certfile.crt
Explicitly set using --watch-file /path/to/certfile.crt
When the specified file is not present on the filesystem, the exporter logs the following warning:
level=warning msg="no certificate(s) found in "/path/to/certfile.crt"
According to the documentation, the metric x509_cert_error{filename="certfile.crt", filepath="/path/to/certfile.crt"} 1 should be exported, indicating the error. However, this metric is not being exported.
Steps to Reproduce:
Configure the exporter with the following options:
I encountered an issue with the x509-certificate-exporter when using the
--expose-per-cert-error-metrics
option. The following configuration was set:When the specified file is not present on the filesystem, the exporter logs the following warning:
According to the documentation, the metric
x509_cert_error{filename="certfile.crt", filepath="/path/to/certfile.crt"} 1
should be exported, indicating the error. However, this metric is not being exported.Steps to Reproduce:
Expected Behavior:
When the certificate file is not found, the exporter should log the warning and export the metric:
BTW,
x509_read_errors
metric should also be incremented on every certificate failed read attempt but it's not the case.Actual Behavior:
The warning message is logged, but the expected metric is not exported.
Environment:
The text was updated successfully, but these errors were encountered: