Rename weave_connection_termination_count metric

To make it follow the Prometheus naming conventions:
https://prometheus.io/docs/practices/naming/
This commit is contained in:
Martynas Pumputis committed 2016-10-31 13:23:12 +00:00
1 parent fda035d8d6
commit ede70a78d6
1 file changed
+1 -1
+1 -1
View File
@@ -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))
}},