update cmd
This commit is contained in:
parent
935f8b0b82
commit
98d624f868
|
@ -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"]
|
||||
|
||||
|
|
|
@ -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
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue