prometheus-pve / prometheus-pve-exporter

Exposes information gathered from Proxmox VE cluster for use by the Prometheus monitoring system
Apache License 2.0
809 stars 95 forks source link

Added documentation about using a custom CA with Docker #268

Open AngryMandragora opened 2 months ago

AngryMandragora commented 2 months ago

Our company is using custom CA infrastructure, and I faced the problem of either disable tls_verify or somehow use our CA certificates. We also had newer certificates that were signed by Sectigo, which are included in the default public CA certificates, but not in the Docker image, since it uses something from 2023. I tried to open a feature request https://github.com/prometheus-pve/prometheus-pve-exporter/issues/264, but it was not successful, so I went on figuring out how to do this. Turns out the suggestions did not work, as the Docker image ignores the bind mounted certificate store, and you also have to set a variable for Python so the exporter actually uses the file. Since I spent quite much time trying to figure this all out, I thought it will be useful for other people to include my findings in the documentation.

znerol commented 2 months ago

Thank you! Feel free to add a page to the wiki.