From 3b5a1a8b9a14c167d1af3ab7af115d5f9ffe9c2f Mon Sep 17 00:00:00 2001 From: Lapo Luchini Date: Fri, 26 Mar 2021 07:57:43 +0100 Subject: [PATCH] docs/monitoring: change suggested prometheus port to 9811 Change to 9811 as registered with the prometheus project now. Closes #444. --- config/config_global_test.go | 4 ++-- docs/configuration/monitoring.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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