docs: add /stats/prometheus as an alternative endpoint (#580)

This patch adds info of /stats/prometheus as an alternative endpoint to
get server stats in prometheus format.

Signed-off-by: Dhi Aurrahman <dio@rockybars.com>
pull/581/head
Dhi Aurrahman 7 years ago committed by Matt Klein
parent ccf3edfc55
commit d0d3a051f3
  1. 1
      docs/root/intro/version_history.rst
  2. 4
      docs/root/operations/admin.rst

@ -7,6 +7,7 @@ Version history
<arch_overview_load_balancing_types_round_robin>` support. The round robin
scheduler now respects endpoint weights and also has improved fidelity across
picks.
* admin: added ``/stats/prometheus`` as an alternative endpoint for getting stats in prometheus format.
* logger: all :ref:`logging levels <operations_admin_interface_logging>` can be configured
at run-time: trace debug info warning error critical.

@ -184,6 +184,10 @@ The fields are:
.. http:get:: /stats?format=prometheus
or alternatively,
.. http:get:: /stats/prometheus
Outputs /stats in `Prometheus <https://prometheus.io/docs/instrumenting/exposition_formats/>`_
v0.0.4 format. This can be used to integrate with a Prometheus server. Currently, only counters and
gauges are output. Histograms will be output in a future update.

Loading…
Cancel
Save