Просмотр исходного кода

Correctly decrease a value for prometheus metrics

tags/v2.0.0-rc1
9seconds 5 лет назад
Родитель
Сommit
bbe8f34e72
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      stats/prometheus.go

+ 1
- 1
stats/prometheus.go Просмотреть файл

@@ -78,7 +78,7 @@ func (p prometheusProcessor) EventFinish(evt mtglib.EventFinish) {
78 78
 
79 79
 	duration := evt.CreatedAt.Sub(sInfo.createdAt)
80 80
 
81
-	p.factory.metricClientConnections.WithLabelValues(sInfo.GetRemoteIPType()).Dec()
81
+	p.factory.metricClientConnections.WithLabelValues(sInfo.GetClientIPType()).Dec()
82 82
 	p.factory.metricSessionDuration.Observe(float64(duration) / float64(time.Second))
83 83
 
84 84
 	if sInfo.remoteIP == nil {

Загрузка…
Отмена
Сохранить