update cmd

This commit is contained in:
Dmitry Vasiliev 2020-05-17 17:27:00 +03:00
parent 935f8b0b82
commit 98d624f868
No known key found for this signature in database
GPG Key ID: C9A6FF8856B941E3
2 changed files with 7 additions and 3 deletions

View File

@ -14,8 +14,11 @@ FROM scratch
ENTRYPOINT ["/prometheus-exporter-merger"]
USER nobody
EXPOSE 8080
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder /prometheus-exporter-merger /prometheus-exporter-merger
ENTRYPOINT /prometheus-exporter-merger
EXPOSE 8080
CMD ["/prometheus-exporter-merger", "--config", "/config/prometheus-exporter-merger.yaml"]

View File

@ -9,7 +9,7 @@ Merges Prometheus metrics from multiple sources.
To start the exporter:
```
prometheus-exporter-merger --config config.yaml
prometheus-exporter-merger --config /config/prometheus-exporter-merger.yaml
```
Config example:
@ -29,6 +29,7 @@ sources:
## Kubernetes
The prometheus-exporter-merger is supposed to run as a sidecar.
By default, config must be available in the container by the path: `/config/prometheus-exporter-merger.yaml`.
```yaml
...