From ede70a78d64af84af962a633431bbd28b45d4095 Mon Sep 17 00:00:00 2001 From: Martynas Pumputis Date: Mon, 31 Oct 2016 13:23:12 +0000 Subject: [PATCH] Rename weave_connection_termination_count metric To make it follow the Prometheus naming conventions: https://prometheus.io/docs/practices/naming/ --- prog/weaver/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/weaver/metrics.go b/prog/weaver/metrics.go index 5041d914..4f6a5a64 100644 --- a/prog/weaver/metrics.go +++ b/prog/weaver/metrics.go @@ -56,7 +56,7 @@ var metrics []metric = []metric{ ch <- intGauge(desc, len(s.Router.Connections)-established, "non-established") ch <- intGauge(desc, established, "established") }}, - {desc("weave_connection_termination_count", "Number of peer-to-peer connections terminated."), + {desc("weave_connection_terminations_total", "Number of peer-to-peer connections terminated."), func(s WeaveStatus, desc *prometheus.Desc, ch chan<- prometheus.Metric) { ch <- uint64Counter(desc, uint64(s.Router.TerminationCount)) }},