PROMETHEUS-NGINX-EXPORTER(1)

πŸ’– PROMETHEUS-NGINX-EXPORTER πŸ’–

okay bestie, gather round, because today we're talking about prometheus-nginx-exporter β€” it's a Prometheus exporter for NGINX web server metrics, and it's genuinely one of the most lowkey iconic little tools out there. no cap. πŸ¦‹


✨ NAME ✨

prometheus-nginx-exporter β€” a Prometheus exporter for NGINX web server metrics. she takes your nginx numbers and serves them up to Prometheus like it's nothing. main character energy fr fr. πŸ‘‘


🌸 SYNOPSIS 🌸

prometheus-nginx-exporter [<flags>]

that's it. that's the whole vibe. just run her and pass some flags. πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

so um. the description section is literally empty in the original. nothing here. it's giving silence. πŸ™ˆ the flags below do all the talking, and honestly? they ate. ⭐


πŸ’… OPTIONS πŸ’…

  • -h, --help β€” shows you the context-sensitive help, like a good friend who actually answers your texts. psst β€” you can also try --help-long and --help-man if you want the deluxe versions. πŸ’–
  • --web.systemd-socket β€” uses systemd socket activation listeners instead of port listeners. Linux only, bestie, don't try this on your mac. πŸ“
  • --web.listen-address=:9113 β€” the address(es) where metrics and the web interface get exposed. it's repeatable so you can stack multiple addresses, go off. examples: :9100 or [::1]:9100 for http, and vsock://:9100 for vsock. 🌈
  • --web.config.file="" β€” path to a config file that can turn on TLS or authentication. the docs live at: https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md β€” go read them, i'll wait. 🫢
  • --web.telemetry-path="/metrics" β€” the path under which metrics get exposed. classic. iconic. /metrics. ✨
  • --nginx.plus β€” starts the exporter for NGINX Plus. by default the exporter starts for regular NGINX, so flip this if you're fancy. πŸ’œ
  • --nginx.scrape-uri=http://127.0.0.1:8080/stub_status β€” a URI or a unix domain socket path for scraping NGINX or NGINX Plus metrics. for NGINX, the stub_status page has to be available through the URI. for NGINX Plus β€” it's the API. repeatable for multiple URIs, so go wild. 🌸
  • --nginx.ssl-verify β€” performs SSL certificate verification. safety first, babes. πŸ”₯
  • --nginx.ssl-ca-cert="" β€” path to the PEM encoded CA certificate file used to validate the server's SSL certificate. πŸŽ€
  • --nginx.ssl-client-cert="" β€” path to the PEM encoded client certificate file to use when connecting to the server. πŸ¦‹
  • --nginx.ssl-client-key="" β€” path to the PEM encoded client certificate key file to use when connecting to the server. keep this one secret ok. πŸ™ˆ
  • --nginx.proxy-protocol β€” passes the proxy protocol payload to nginx listeners. πŸ“¨
  • --nginx.timeout=5s β€” a timeout for scraping metrics from NGINX or NGINX Plus. five seconds and then we move on, periodt. ⏰
  • --prometheus.const-label=PROMETHEUS.CONST-LABEL β€” a label that gets used in every single metric. the format is label=value, and yes you can repeat it multiple times. obsessed. πŸ’–
  • --log.level=info β€” only logs messages with the given severity or above. one of: [debug, info, warn, error]. πŸͺ΅
  • --log.format=logfmt β€” output format of log messages. one of: [logfmt, json]. pick your fighter. πŸ₯Š
  • --version β€” shows the application version. slay. πŸ‘‘

heads up bestie: those --web.* and --nginx.* flags are doing real work, so don't just copy-paste them into prod without reading what they do. the stub_status page and the NGINX Plus API are requirements, not suggestions. πŸ’€

and that's the whole page, you're welcome. πŸ’œ

this was prometheus-nginx-exporter version 1.5.1, brought to you by December 2025. bye bestie, go scrape something pretty. 🧚✨

πŸ“¦ where this page comes from