forked from sysulq/nginx-vts-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
FROM quay.io/prometheus/busybox:latest | ||
FROM alpine:latest | ||
MAINTAINER Sophos <[email protected]> | ||
|
||
WORKDIR /bin | ||
COPY bin/nginx-vts-exporter.tar.gz /bin/ | ||
COPY docker-entrypoint.sh /bin/docker-entrypoint.sh | ||
RUN tar xf /bin/nginx-vts-exporter.tar.gz -C /bin/ && chmod +x /bin/nginx-vts-exporter | ||
|
||
ENV NGIX_HOST "http://localhost" | ||
ENV NGINX_HOST "http://localhost" | ||
ENV METRICS_ENDPOINT "/metrics" | ||
ENV METRICS_ADDR ":9913" | ||
ENV DEFAULT_METRICS_NS "nginx" | ||
|
||
ENTRYPOINT ["/bin/docker-entrypoint.sh"] | ||
ENTRYPOINT ["nginx-vts-exporter"] | ||
CMD -nginx.scrape_uri=$NGINX_STATUS/status/format/json -telemetry.address $METRICS_ADDR -telemetry.endpoint $METRICS_ENDPOINT -metrics.namespace $METRICS_NS |