@@ -30,33 +30,33 @@ To start the exporter we use the [docker run](https://docs.docker.com/engine/ref
30
30
31
31
* To export NGINX metrics, run:
32
32
```
33
- $ docker run -p 9113:9113 nginx/nginx-prometheus-exporter:0.8.0 -nginx.scrape-uri http://<nginx>:8080/stub_status
33
+ $ docker run -p 9113:9113 nginx/nginx-prometheus-exporter:0.8.0 -nginx.scrape-uri= http://<nginx>:8080/stub_status
34
34
```
35
35
where `<nginx>` is the IP address/DNS name, through which NGINX is available.
36
36
37
37
* To export NGINX Plus metrics, run:
38
38
```
39
- $ docker run -p 9113:9113 nginx/nginx-prometheus-exporter:0.8.0 -nginx.plus -nginx.scrape-uri http://<nginx-plus>:8080/api
39
+ $ docker run -p 9113:9113 nginx/nginx-prometheus-exporter:0.8.0 -nginx.plus -nginx.scrape-uri= http://<nginx-plus>:8080/api
40
40
```
41
41
where `<nginx-plus>` is the IP address/DNS name, through which NGINX Plus is available.
42
42
43
43
### Running the Exporter Binary
44
44
45
45
* To export NGINX metrics, run:
46
46
```
47
- $ nginx-prometheus-exporter -nginx.scrape-uri http://<nginx>:8080/stub_status
47
+ $ nginx-prometheus-exporter -nginx.scrape-uri= http://<nginx>:8080/stub_status
48
48
```
49
49
where `<nginx>` is the IP address/DNS name, through which NGINX is available.
50
50
51
51
* To export NGINX Plus metrics:
52
52
```
53
- $ nginx-prometheus-exporter -nginx.plus -nginx.scrape-uri http://<nginx-plus>:8080/api
53
+ $ nginx-prometheus-exporter -nginx.plus -nginx.scrape-uri= http://<nginx-plus>:8080/api
54
54
```
55
55
where `<nginx-plus>` is the IP address/DNS name, through which NGINX Plus is available.
56
56
57
57
* To export and scrape NGINX metrics with unix domain sockets, run:
58
58
```
59
- $ nginx-prometheus-exporter -nginx.scrape-uri unix:<nginx>:/stub_status -web.listen-address unix:/path/to/socket.sock
59
+ $ nginx-prometheus-exporter -nginx.scrape-uri= unix:<nginx>:/stub_status -web.listen-address= unix:/path/to/socket.sock
60
60
```
61
61
where `<nginx>` is the path to unix domain socket, through which NGINX stub status is available.
62
62
0 commit comments