Node_exporter: Sample TLS config file

Created on 4 Nov 2019  路  5Comments  路  Source: prometheus/node_exporter

Please provide sample TLS config file.
--web.tls-config=" /path to config.yml

enhancement good first issue

Most helpful comment

@bhargaviaaa @mishas2303 based on the code should read like this:

---
tlsConfig:
  tlsCertPath: "/opt/prometheus/tls/prom.cert"
  tlsKeyPath: "/opt/prometheus/tls/prom.key"
  clientAuth: "RequireAndVerifyClientCert"
  clientCAs:
    - "/opt/prometheus/tls/ca/company.pem"

All 5 comments

Any update on this?

@bhargaviaaa @mishas2303 based on the code should read like this:

---
tlsConfig:
  tlsCertPath: "/opt/prometheus/tls/prom.cert"
  tlsKeyPath: "/opt/prometheus/tls/prom.key"
  clientAuth: "RequireAndVerifyClientCert"
  clientCAs:
    - "/opt/prometheus/tls/ca/company.pem"

@kkirsche should we add your example here: https://github.com/prometheus/node_exporter/tree/master/docs ?
I think that would make a lot of sense.

I鈥檓 all for that if people feel that would be useful. I wasn鈥檛 sure where it would go (new document, existing document somewhere, etc) but if pointed in the right direction I鈥檇 be happy to see it in the docs.

There's already a sample in the repo here:

https://github.com/prometheus/node_exporter/tree/master/https

This is now linked from the main readme.

Was this page helpful?
0 / 5 - 0 ratings