diff options
author | Michal Kuratczyk <mkuratczyk@vmware.com@pivotal.io> | 2020-11-25 12:14:14 +0100 |
---|---|---|
committer | Michael Klishin <michael@clojurewerkz.org> | 2020-11-30 13:29:20 +0300 |
commit | de9c785b55ea269982a791b1bad84c5c6ee9537e (patch) | |
tree | cb546fd8d690431de9cc1fb9fcca24f36559b228 | |
parent | 339e380d48c8865b89aa1510ffcb3c4bec341a83 (diff) | |
download | rabbitmq-server-git-de9c785b55ea269982a791b1bad84c5c6ee9537e.tar.gz |
Document `/metrics/per_object` endpoint.
[#175264017]
Signed-off-by: Mirah Gary <mgary@pivotal.io>
-rw-r--r-- | deps/rabbitmq_prometheus/README.md | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/deps/rabbitmq_prometheus/README.md b/deps/rabbitmq_prometheus/README.md index 5aeb625ca3..2622134684 100644 --- a/deps/rabbitmq_prometheus/README.md +++ b/deps/rabbitmq_prometheus/README.md @@ -66,7 +66,14 @@ When metrics are returned per object, nodes with 80k queues have been measured t In order to not put unnecessary pressure on your metrics system, metrics are aggregated by default. When debugging, it may be useful to return metrics per object (unaggregated). -This can be enabled on-the-fly, without restarting or configuring RabbitMQ, using the following command: + +This can be done by scraping the `/metrics/per_object` endpoint: +```shell +curl -v -H "Accept:text/plain" "http://localhost:15692/metrics/per_object" +``` + +This can also be enabled as the default behavior of the `/metrics` endpoint on-the-fly, +without restarting or configuring RabbitMQ, using the following command: ``` rabbitmqctl eval 'application:set_env(rabbitmq_prometheus, return_per_object_metrics, true).' |