Skip to content

Commit

Permalink
Merge branch 'master' into v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmm authored Dec 24, 2016
2 parents 7a75c78 + 6adf610 commit ccddad6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ ENV METRICS_ENDPOINT "/metrics"
ENV METRICS_ADDR ":9913"
ENV DEFAULT_METRICS_NS "nginx"

EXPOSE 9113
EXPOSE 9913

ENTRYPOINT ["/app/docker-entrypoint.sh"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ To Dockerize this application yo need to pass two steps the build then the conta

## Environment variables
This image is configurable using different env variables

Variable name | Default | Description
------------- | ----------- | --------------
NGINX_STATUS | http://localhost/status/format/json | Nginx JSON format status page
Expand Down
2 changes: 1 addition & 1 deletion nginx_vts_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ func fetchHTTP(uri string, timeout time.Duration) func() (io.ReadCloser, error)
}

var (
listenAddress = flag.String("telemetry.address", ":9113", "Address on which to expose metrics.")
listenAddress = flag.String("telemetry.address", ":9913", "Address on which to expose metrics.")
metricsEndpoint = flag.String("telemetry.endpoint", "/metrics", "Path under which to expose metrics.")
metricsNamespace = flag.String("metrics.namespace", "nginx", "Prometheus metrics namespace.")
nginxScrapeURI = flag.String("nginx.scrape_uri", "http://localhost/status", "URI to nginx stub status page")
Expand Down

0 comments on commit ccddad6

Please sign in to comment.