I'm trying to configure a prometheus node exporter with HTTPS using the website certificates generated by let's encrypt.
There is certificates with permissions default let's encrypt permission
But I have this error with node exporter service witch use the user 'node_exporter' : failed to load X509KeyPair: open /etc/letsencrypt/live/xxx/fullchain.pem
The unit service :
[Unit]
Description=Node Exporter
Wants=network-online.target
After=network-online.target
[Service]
User=node_exporter
Group=node_exporter
Type=simple
ExecStart=/opt/node_exporter/node_exporter --web.config.file=/opt/node_exporter/configuration.yml
[Install]
WantedBy=multi-user.target
has anyone already managed to use let's encrypt certificates to activate the node_exporter in HTTPS mode
Thank you in advance for help
node_exporter
user, can you access that certificate? What happens if you runsudo -u node_exporter cat /etc/letsencrypt/live/xxx/fullchain.pem
?