@@ -56,6 +56,8 @@ NGINX Prometheus exporter makes it possible to monitor NGINX or NGINX Plus using
56
56
- [ Binaries] ( #binaries )
57
57
- [ Homebrew] ( #homebrew )
58
58
- [ Snap] ( #snap )
59
+ - [ Scoop] ( #scoop )
60
+ - [ Nix] ( #nix )
59
61
- [ Building the Exporter] ( #building-the-exporter )
60
62
- [ Building the Docker Image] ( #building-the-docker-image )
61
63
- [ Building the Binary] ( #building-the-binary )
@@ -111,15 +113,15 @@ To start the exporter we use the [docker run](https://docs.docker.com/engine/ref
111
113
- To export NGINX metrics, run:
112
114
113
115
``` console
114
- docker run -p 9113:9113 nginx/nginx-prometheus-exporter:1.1 .0 --nginx.scrape-uri=http://<nginx>:8080/stub_status
116
+ docker run -p 9113:9113 nginx/nginx-prometheus-exporter:1.3 .0 --nginx.scrape-uri=http://<nginx>:8080/stub_status
115
117
```
116
118
117
119
where ` <nginx> ` is the IP address/DNS name, through which NGINX is available.
118
120
119
121
- To export NGINX Plus metrics, run:
120
122
121
123
``` console
122
- docker run -p 9113:9113 nginx/nginx-prometheus-exporter:1.1 .0 --nginx.plus --nginx.scrape-uri=http://<nginx-plus>:8080/api
124
+ docker run -p 9113:9113 nginx/nginx-prometheus-exporter:1.3 .0 --nginx.plus --nginx.scrape-uri=http://<nginx-plus>:8080/api
123
125
```
124
126
125
127
where ` <nginx-plus> ` is the IP address/DNS name, through which NGINX Plus is available.
@@ -480,6 +482,36 @@ You can install the NGINX Prometheus Exporter from the [Snap Store](https://snap
480
482
snap install nginx-prometheus-exporter
481
483
```
482
484
485
+ ### Scoop
486
+
487
+ You can add the NGINX Scoop bucket with
488
+
489
+ ``` console
490
+ scoop bucket add nginx https://github.com/nginxinc/scoop-bucket.git
491
+ ```
492
+
493
+ and then install the package with
494
+
495
+ ``` console
496
+ scoop install nginx-prometheus-exporter
497
+ ```
498
+
499
+ ### Nix
500
+
501
+ First include NUR in your packageOverrides as explained in the [ NUR documentation] ( https://github.com/nix-community/NUR#installation ) .
502
+
503
+ Then you can use the exporter with the following command:
504
+
505
+ ``` console
506
+ nix-shell --packages nur.repos.nginx.nginx-prometheus-exporter
507
+ ```
508
+
509
+ or install it with:
510
+
511
+ ``` console
512
+ nix-env -f '<nixpkgs>' -iA nur.repos.nginx.nginx-prometheus-exporter
513
+ ```
514
+
483
515
## Building the Exporter
484
516
485
517
You can build the exporter using the provided Makefile. Before building the exporter, make sure the following software
0 commit comments