Can't scrape metrics with Nomad Agent TLS Enabled

Can’t scrape metrics with Nomad Agent TLS Enabled,

its always bad certificate,

is there any easy way to scrape nomad agent metrics when tls enabled?

1 Like

Hi @petrukngantuk1 :wave:

You need to provide the proper CA certificate to your scraping tool. For example, if using Prometheus you will need to set tls_config.

Another option would be configure a reverse proxy that handles the TLS termination between Nomad metrics and your scraper, but that would have the effect that your endpoint would not be secure anymore.

I see, so either add the cert to prometheus or add reverse proxy (that terminate the tls connection) in from of the nomad metrics endpoint,
thanks for your advice @lgfa29

1 Like