Skip to content

Commit

Permalink
prometheus config update (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisakker authored Jul 25, 2024
1 parent 6953097 commit 267f98c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
15 changes: 11 additions & 4 deletions docs/http/http-installation-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,21 +201,28 @@ Note: If you choose a different Application to test with, `the NGINX configurati

This can be any standard Linux OS system, based on the Linux Distro and Technical Specs required for NGINX Plus, which can be found here: https://docs.nginx.com/nginx/technical-specs/

1. This Solution followed the `Installation of NGINX Plus on Centos/Redhat/Oracle` steps for installing NGINX Plus.
1. This Solution followed the `Installation of NGINX Plus on Centos/Redhat/Oracle` steps for installing NGINX Plus.

https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-plus/

>NOTE: This Solution will only work with NGINX Plus, as NGINX OpenSource does not have the API that is used in this Solution. Installation on unsupported Linux Distros is not recommended.

1. Install the NGINX Javascript module (njs). This is required for exporting Prometheus Metrics from NGINX Plus.
If you need a license for NGINX Plus, a 30-day Trial license is available here:

https://www.nginx.com/free-trial-request/

1. Install the NGINX Javascript module (njs). This is required for exporting Prometheus Metrics from NGINX Plus.

```bash
yum install nginx-plus-module-njs
```

1. If you need a license for NGINX Plus, a 30-day Trial license is available here:
1. Install Nginx Javascript for Prometheus

```bash
yum install nginx-plus-module-prometheus
```

https://www.nginx.com/free-trial-request/

<br/>

Expand Down
3 changes: 3 additions & 0 deletions docs/http/prometheus.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
js_import /usr/share/nginx-plus-module-prometheus/prometheus.js;

server {
listen 9113:
status_zone prometheus;

location = /metrics {
js_content prometheus.metrics;
}
Expand Down

0 comments on commit 267f98c

Please sign in to comment.