Skip to content

Commit 739f411

Browse files
committed
prometheus config update
1 parent 6953097 commit 739f411

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

docs/http/http-installation-guide.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -201,21 +201,28 @@ Note: If you choose a different Application to test with, `the NGINX configurati
201201

202202
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/
203203

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

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

208208
>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.
209209

210-
1. Install the NGINX Javascript module (njs). This is required for exporting Prometheus Metrics from NGINX Plus.
210+
If you need a license for NGINX Plus, a 30-day Trial license is available here:
211+
212+
https://www.nginx.com/free-trial-request/
213+
214+
1. Install the NGINX Javascript module (njs). This is required for exporting Prometheus Metrics from NGINX Plus.
211215

212216
```bash
213217
yum install nginx-plus-module-njs
214218
```
215219

216-
1. If you need a license for NGINX Plus, a 30-day Trial license is available here:
220+
1. Install Nginx Javascript for Prometheus
221+
222+
```bash
223+
yum install nginx-plus-module-prometheus
224+
```
217225

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

220227
<br/>
221228

docs/http/prometheus.conf

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
js_import /usr/share/nginx-plus-module-prometheus/prometheus.js;
88

99
server {
10+
listen 9113:
11+
status_zone prometheus;
12+
1013
location = /metrics {
1114
js_content prometheus.metrics;
1215
}

0 commit comments

Comments
 (0)