diff --git a/surveyor/collector_statz.go b/surveyor/collector_statz.go index 28acfa9..5bca039 100644 --- a/surveyor/collector_statz.go +++ b/surveyor/collector_statz.go @@ -1096,7 +1096,7 @@ func (sc *StatzCollector) Collect(ch chan<- prometheus.Metric) { metrics.newCounterMetric(sc.descs.accBytesSent, float64(as.Data.Sent.Bytes), serverAndAccLabels) metrics.newCounterMetric(sc.descs.accBytesRecv, float64(as.Data.Received.Bytes), serverAndAccLabels) metrics.newCounterMetric(sc.descs.accMsgsSent, float64(as.Data.Sent.Msgs), serverAndAccLabels) - metrics.newCounterMetric(sc.descs.accMsgsRecv, float64(as.Data.Sent.Bytes), serverAndAccLabels) + metrics.newCounterMetric(sc.descs.accMsgsRecv, float64(as.Data.Received.Msgs), serverAndAccLabels) } metrics.newGaugeMetric(sc.descs.accJetstreamEnabled, stat.jetstreamEnabled, accLabels)