ObserveNow
...
Integrations
Infrastructure
Nginx
single machine the prometheus nginx exporter https //github com/nginxinc/nginx prometheus exporter can be used on a standalone machine to collect metrics from an nginx server prerequisite(s) opsverse single machine agent the opsverse single machine agent should be running on this machine if that's not the case, it can be installed using these steps https //docs opsverse io/individual vms stub status module the nginx server should have the stub status module enabled for the metrics collection to work availability of this module can be checked by running this command nginx v 2>&1 | grep o with http stub status module if this module is not already enabled, it can be enabled by following the steps outlined in this document https //nginx org/en/docs/http/ngx http stub status module html#stub status add a location for stub status update the nginx conf file and add a location for the stub status module this enables the nginx server to return metrics on the configured location uri here is an example server { listen localhost; server name status localhost; keepalive timeout 0; access log off; allow 127 0 0 1; deny all; location /stub status { stub status on; } } for more details, please see nginx metrics through stub status https //github com/nginxinc/nginx prometheus exporter install nginx prometheus metric exporter the nginx prometheus exporter can be installed using this command \# for amd64 curl https //raw\ githubusercontent com/opsverseio/installers/main/prometheus exporters/install exporter amd64 sh | sudo bash s e nginx \# for arm64 curl https //raw\ githubusercontent com/opsverseio/installers/main/prometheus exporters/install exporter arm64 sh | sudo bash s e nginx the agent will begin scraping the metrics automatically the script will drop the scrape target into /etc/opsverse/targets/ , so the agent will begin automatically scraping