# meter-plugin-nginx **Repository Path**: mirrors_boundary/meter-plugin-nginx ## Basic Information - **Project Name**: meter-plugin-nginx - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-23 - **Last Updated**: 2025-12-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TrueSight Pulse Nginx Free Plugin A TrueSight Pulse plugin that collects metrics from an Nginx Free instance. This plugin is not intended for the Nginx Plus edition as other metrics are relevant and available there. ## Prerequisites ### Supported OS | OS | Linux | Windows | SmartOS | OS X | |:----------|:-----:|:-------:|:-------:|:----:| | Supported | v | v | v | v | #### TrueSight Pulse Meter versions v4.2 or later - To install new meter go to Settings->Installation or [see instructions](https://help.boundary.com/hc/en-us/sections/200634331-Installation). - To upgrade the meter to the latest version - [see instructions](https://help.boundary.com/hc/en-us/articles/201573102-Upgrading-the-Boundary-Meter). #### For TrueSight Pulse Meter earlier than v4.2 | Runtime | node.js | Python | Java | |:---------|:-------:|:------:|:----:| | Required | + | | | - [How to install node.js?](https://help.boundary.com/hc/articles/202360701) ### Plugin Setup To collect statistics from nginx, it needs to built with the [nginx HttpStubStatusModule](http://nginx.org/en/docs/http/ngx_http_stub_status_module.html). If you used a package manager to install Nginx, it should be compiled by default, if you built Nginx yourself, you may need to recompile it. #### Verify That `nginx` Includes `HttpStubStatusModule` 1. To check if your nginx has been build with the [nginx HttpStubStatusModule](http://nginx.org/en/docs/http/ngx_http_stub_status_module.html) run the following command, which will display the modules that are compiled in your version of `nginx`: ```bash $ nginx -V ``` 2. If the string `--with-http_stub_status_module` is in the output then the installed `nginx` includes the `HttpStubStatusModule`. If the string is not there, you will need to install a package that includes the module or compile a version that includes it. Information on installing and/or compiling `nginx` can found here: [http://nginx.org/en/docs/install.html](http://nginx.org/en/docs/install.html) #### `HttpStubStatusModule` Configuration `nginx` requires configuration to provide URL path which will present the `nginx` statistics. 1. Add the nginx configuration file [boundary.conf](boundary.conf) to your `nginx` configuration directory which is typically `/etc/nginx` on Linux/Unix platforms, or `...\nginx\conf` on Windows platforms. The contents of this file configures a _location_ required for the plugin to obtain measurements from `nginx`. 2. Include the `boundary.conf` in your `nginx` configuration file by adding the directive: ``` ... ## # Boundary Meter Plugin Configuration ## include /etc/nginx/boundary.conf; } ``` in the `http` block. 3. Once you make the configuration, reload your nginx configuration: ```bash $ sudo service nginx reload ``` NOTE: Alternatively, on Linux/Unix platforms you can place the `boundary.conf` file in `/etc/nginx/conf.d` #### Verify `HttpStubStatusModule` is Collecting Statistics 1. Run the following command, which shows the expected output: ```bash $ curl http://localhost:8000/nginx_status Active connections: 1 server accepts handled requests 5 5 5 Reading: 0 Writing: 1 Waiting: 0 ``` ### Plugin Configuration Fields |Field Name |Description | |:-------------|:-----------------------------------------------------------------------------------------------------| |Source |The Source to display in the legend for the nginx data. It will default to the hostname of the server| |Statistics URL|The URL endpoint of where the nginx statistics are hosted. | |Strict SSL |Use Strict SSL checking when HTTPS is enabled, enabled by default | |Username |If the endpoint is password protected, what username should graphdat use when calling it. | |Password |If the endpoint is password protected, what password should graphdat use when calling it. | ### Metrics Collected #### For All Versions |Metric Name |Description | |:--------------------|:---------------------------------| |Nginx Active Connections |Active connections to nginx | |Nginx Reads |Connections with Nginx reading request headers | |Nginx Writes |Connections with Nginx reading request body, processing request or writing response to client.| |Nginx Waiting |Keep-alive connections with Nginx in a wait state | |Nginx Connections Handled |Connections handled by nginx | |Nginx Connections Not Handled|Connections accepted, but not handled | |Nginx Requests |Requests to nginx | |Nginx Requests per Connection|Requests per handled connections for nginx | ### Dashboards - NGINX Free ### References http://nginx.org/en/docs/http/ngx_http_stub_status_module.html