Prometheus Node Exporter with TLS and Basic Auth

Write your post here.

Create DNS record use for Let's Encrypt, like furiosa-pne.linode.jugni.xyz.

linode-cli domains records-create --type A --name furiosa-pne --target 1.2.3.4 DOMAIN_ID linode-cli domains records-create --type AAAA --name furiosa-pne --target 0:0 DOMAIN_ID

Install nginx stab_status.

Install Prometheus node exporter.

Create stub site for node exporter.

Configure certbot to generate cert for stub site.

Use the generated cert to configure node exporter.

Generate users and passwords for basic auth for node exporter.

Configure Prometheus server to access over tls with basic auth.

Install Prometheus nginx exporter. No rpm available so create an rpm.

https://prometheus.io/docs/prometheus/latest/configuration/https/

https://nginx.org/en/docs/http/ngx_http_stub_status_module.html#stub_status

https://github.com/nginxinc/nginx-prometheus-exporter

https://prometheus.io/docs/guides/tls-encryption/

https://certbot.eff.org/instructions?ws=other&os=fedora