mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-25 01:44:43 +01:00
30 lines
751 B
ReStructuredText
30 lines
751 B
ReStructuredText
.. include:: ../global.rst.inc
|
|
|
|
.. _monitoring:
|
|
|
|
Monitoring
|
|
==========
|
|
|
|
Monitoring endpoints are configured in the ``global.monitoring`` section of the |mainconfig|.
|
|
|
|
.. _monitoring-prometheus:
|
|
|
|
Prometheus
|
|
----------
|
|
|
|
zrepl can expose `Prometheus metrics <https://prometheus.io/docs/instrumenting/exposition_formats/>`_ via HTTP.
|
|
The ``listen`` attribute is a `net.Listen <https://golang.org/pkg/net/#Listen>`_ string for tcp, e.g. ``:9091`` or ``127.0.0.1:9091``.
|
|
|
|
The Prometheues monitoring job appears in the ``zrepl control`` job list and may be specified **at most once**.
|
|
At the time of writing, there is no stability guarantee on the exported metrics.
|
|
|
|
::
|
|
|
|
global:
|
|
monitoring:
|
|
- type: prometheus
|
|
listen: ':9091'
|
|
|
|
|
|
|