Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions doc/admin-guide/plugins/stats_over_http.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,20 @@ Prometheus formatted output is also supported via the ``Accept`` header:

Alternatively, the output format can be specified as a suffix to the configured
path in the HTTP request target. The supported suffixes are ``/json``,
``/csv``, and ``/prometheus``. For example, if the path is set to ``/_stats``
(the default), you can access the stats in CSV format by using the URL::
``/csv``, ``/prometheus``, and ``/prometheus_v2``. For example, if the path
is set to ``/_stats`` (the default), you can access the stats in CSV format by
using the URL::

http://host:port/_stats/csv

The Prometheus format can be requested by using the URL::
The Prometheus format (flat) can be requested by using the URL::

http://host:port/_stats/prometheus

The Prometheus v2 format (labeled) can be requested by using the URL::

http://host:port/_stats/prometheus_v2

The JSON format is the default, but you can also access it explicitly by using the URL::

http://host:port/_stats/json
Expand All @@ -130,8 +135,8 @@ the ``Accept`` header.

In either case the ``Content-Type`` header returned by ``stats_over_http.so`` will
reflect the content that has been returned: ``text/json``, ``text/csv``, or
``text/plain; version=0.0.4; charset=utf-8`` for JSON, CSV, and Prometheus
formats respectively.
``text/plain; charset=utf-8``.


Stats over http also accepts returning data in gzip or br compressed format per the
``Accept-encoding`` header. If the header is present, the plugin will return the
Expand Down
Loading