1
0
mirror of https://github.com/nginxinc/nginx-prometheus-exporter.git synced 2026-01-05 22:38:08 +03:00

Release 0.6.0

This commit is contained in:
Dean Coakley
2020-02-19 18:00:07 +00:00
committed by GitHub
parent 1f833f91ea
commit 39585bd443
4 changed files with 20 additions and 4 deletions

View File

@@ -1,5 +1,21 @@
# Changelog
### 0.6.0
FEATURES:
* [77](https://github.com/nginxinc/nginx-prometheus-exporter/pull/77): Add constLabels support via cli arg/env variable.
CHANGES:
* Update alpine image.
UPGRADE:
* Use the 0.6.0 image from our DockerHub: `nginx/nginx-prometheus-exporter:0.6.0`
* Download the latest binaries from [GitHub releases page](https://github.com/nginxinc/nginx-prometheus-exporter/releases/tag/v0.6.0).
COMPATIBILITY:
* NGINX 0.1.18 or newer.
* NGINX Plus R19 or newer.
### 0.5.0
FEATURES:

View File

@@ -1,4 +1,4 @@
VERSION = 0.5.0
VERSION = 0.6.0
TAG = $(VERSION)
PREFIX = nginx/nginx-prometheus-exporter

View File

@@ -30,13 +30,13 @@ To start the exporter we use the [docker run](https://docs.docker.com/engine/ref
* To export NGINX metrics, run:
```
$ docker run -p 9113:9113 nginx/nginx-prometheus-exporter:0.5.0 -nginx.scrape-uri http://<nginx>:8080/stub_status
$ docker run -p 9113:9113 nginx/nginx-prometheus-exporter:0.6.0 -nginx.scrape-uri http://<nginx>:8080/stub_status
```
where `<nginx>` is the IP address/DNS name, through which NGINX is available.
* To export NGINX Plus metrics, run:
```
$ docker run -p 9113:9113 nginx/nginx-prometheus-exporter:0.5.0 -nginx.plus -nginx.scrape-uri http://<nginx-plus>:8080/api
$ docker run -p 9113:9113 nginx/nginx-prometheus-exporter:0.6.0 -nginx.plus -nginx.scrape-uri http://<nginx-plus>:8080/api
```
where `<nginx-plus>` is the IP address/DNS name, through which NGINX Plus is available.

View File

@@ -9,6 +9,6 @@ COPY collector ./collector
COPY client ./client
RUN GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -installsuffix cgo -ldflags "-X main.version=${VERSION} -X main.gitCommit=${GIT_COMMIT}" -o exporter .
FROM alpine:latest
FROM alpine:3.11
COPY --from=builder /go/src/github.com/nginxinc/nginx-prometheus-exporter/exporter /usr/bin/
ENTRYPOINT [ "/usr/bin/exporter" ]