Exporter reports the error "cannot validate certificate for xxx.xxx.xxx.xxx because it doesn't contain any IP SANs" when being scraped by Prometheus in Healthwatch v2
search cancel

Exporter reports the error "cannot validate certificate for xxx.xxx.xxx.xxx because it doesn't contain any IP SANs" when being scraped by Prometheus in Healthwatch v2

book

Article ID: 293820

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

When you configure the Prometheus instance to scrape metrics from the Healthwatch Exporter tiles installed on other Ops Manager foundations or from external services or databases, the exporter detected by the Prometheus instance reports the following error:
level=debug ts=2021-xx-xxTxx:xx:xx.xxxZ caller=scrape.go:1127 component="scrape manager" scrape_pool=tas-stage-b target=https://xxx.xxx.xxx.xxx:9090/metrics msg="Scrape failed" 
err="Get \"https://xxx.xxx.xxx.xxx:9090/metrics\": x509: cannot validate certificate for xxx.xxx.xxx.xxx because it doesn't contain any IP SANs"


Environment

Product Version: 2.10

Resolution

If the certificate in the Transport Layer Security (TLS) Config Certificate and Private Key field is
signed by a self-signed CA, you have to skip SSL validation during TLS handshakes.

To skip SSL validation during TLS handshakes, enable the TLS Config Skip SSL Validation checkbox in the Healthwatch tile > Prometheus Configuration > Additional Scrape Config Jobs.

For more details, refer to (Optional) Configure Prometheus.