Skip to content

Commit 00a7d4c

Browse files
committed
update prometheus config
1 parent 2452754 commit 00a7d4c

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

docs/http/http-installation-guide.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -201,28 +201,29 @@ 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. If you need a license for NGINX Plus, a 30-day Trial license is available here:
210+
1. If you need a license for NGINX Plus, a 30-day Trial license is available here:
211211

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

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

216-
```bash
217-
yum install nginx-plus-module-njs
216+
```bash
217+
yum install nginx-plus-module-njs
218218
219-
```
219+
```
220220

221-
1. Install Nginx Javascript for Prometheus
222-
```bash
223-
yum install nginx-plus-module-prometheus
221+
1. Install Nginx Javascript for Prometheus
224222

225-
```
223+
```bash
224+
yum install nginx-plus-module-prometheus
225+
226+
```
226227

227228
<br/>
228229

docs/http/prometheus.conf

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

99
server {
10+
11+
listen 9113;
12+
status_zone prometheus;
13+
1014
location = /metrics {
1115
js_content prometheus.metrics;
1216
}

0 commit comments

Comments
 (0)