From 6ffe504f7e46025902488c8909dde2a023abb893 Mon Sep 17 00:00:00 2001 From: Jody Treffers Date: Mon, 17 Jun 2019 11:56:26 +0200 Subject: [PATCH] Changed conversion from microseconds to seconds to match the description of the metric --- collector/mssql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/mssql.go b/collector/mssql.go index b322f7d7e..93a55f643 100644 --- a/collector/mssql.go +++ b/collector/mssql.go @@ -2575,7 +2575,7 @@ func (c *MSSQLCollector) collectDatabaseReplica(ch chan<- prometheus.Metric, sql ch <- prometheus.MustNewConstMetric( c.DBReplicaTransactionDelay, prometheus.GaugeValue, - float64(v.TransactionDelay)*1000.0, + float64(v.TransactionDelay)/1000.0, sqlInstance, replicaName, ) }