diff --git a/website/source/docs/agent/options.html.md b/website/source/docs/agent/options.html.md index 9b0635c324..67f707def6 100644 --- a/website/source/docs/agent/options.html.md +++ b/website/source/docs/agent/options.html.md @@ -1220,6 +1220,14 @@ Consul will not enable TLS for the HTTP API unless the `https` port has been ass the Accept header with value `text/plain; version=0.0.4; charset=utf-8` to the `/v1/agent/metrics` (as done by Prometheus). The format is compatible natively with prometheus. When running in this mode, it is recommended to also enable the option `disable_hostname` to avoid having prefixed metrics with hostname. + Consul does not use the default Prometheus path, so Prometheus must be configured as follows. + Note that using ?format=prometheus in the path won't work as ? will be escaped, so it must be specified as a parameter. + + ```yaml + metrics_path: "/v1/agent/metrics" + params: + format: ['prometheus'] + ``` * `statsd_address` This provides the address of a statsd instance in the format `host:port`. If provided, Consul will send various telemetry information to that instance for