diff --git a/config/config_global_test.go b/config/config_global_test.go index 13dd75b..d65305b 100644 --- a/config/config_global_test.go +++ b/config/config_global_test.go @@ -70,9 +70,9 @@ func TestPrometheusMonitoring(t *testing.T) { global: monitoring: - type: prometheus - listen: ':9091' + listen: ':9811' `) - assert.Equal(t, ":9091", conf.Global.Monitoring[0].Ret.(*PrometheusMonitoring).Listen) + assert.Equal(t, ":9811", conf.Global.Monitoring[0].Ret.(*PrometheusMonitoring).Listen) } func TestSyslogLoggingOutletFacility(t *testing.T) { diff --git a/docs/configuration/monitoring.rst b/docs/configuration/monitoring.rst index b0dc0cc..edf68e8 100644 --- a/docs/configuration/monitoring.rst +++ b/docs/configuration/monitoring.rst @@ -13,7 +13,7 @@ Prometheus & Grafana -------------------- zrepl can expose `Prometheus metrics `_ via HTTP. -The ``listen`` attribute is a `net.Listen `_ string for tcp, e.g. ``:9091`` or ``127.0.0.1:9091``. +The ``listen`` attribute is a `net.Listen `_ string for tcp, e.g. ``:9811`` or ``127.0.0.1:9811`` (port 9811 was reserved to zrepl `on the official list `_). The ``listen_freebind`` attribute is :ref:`explained here `. The Prometheus monitoring job appears in the ``zrepl control`` job list and may be specified **at most once**. @@ -30,7 +30,7 @@ The dashboard also contains some advice on which metrics are important to monito global: monitoring: - type: prometheus - listen: ':9091' + listen: ':9811' listen_freebind: true # optional, default false