From 7742aec2266b6420bc890ca1b8d0a29956029881 Mon Sep 17 00:00:00 2001 From: Paul Banks Date: Fri, 26 Oct 2018 12:11:57 -0700 Subject: [PATCH] Correct prometheus docs (#4805) --- website/source/docs/agent/options.html.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/website/source/docs/agent/options.html.md b/website/source/docs/agent/options.html.md index 06f8d8b3da..d2ebbad8e8 100644 --- a/website/source/docs/agent/options.html.md +++ b/website/source/docs/agent/options.html.md @@ -1474,8 +1474,7 @@ default will automatically work with some tooling. (it might have an impact on Consul's memory usage). A good value for this parameter is at least 2 times the interval of scrape of Prometheus, but you might also put a very high retention time such as a few days (for instance 744h to enable retention to 31 days). - Fetching the metrics using prometheus can then be performed using the `/v1/agent/metrics?format=prometheus` URL or by sending - the Accept header with value `text/plain; version=0.0.4; charset=utf-8` to the `/v1/agent/metrics` (as done by Prometheus). + Fetching the metrics using prometheus can then be performed using the [`/v1/agent/metrics?format=prometheus`](/api/agent.html#view-metrics) endpoint. 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.