From fa69ddd9847a7bb2ec2c41fbe71199f4d82d1e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Fri, 17 Mar 2023 20:20:23 +0100 Subject: [PATCH] streamsink total bytes metric counter. --- internal/capture/streamsink.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/capture/streamsink.go b/internal/capture/streamsink.go index adda86c2..8df41a54 100644 --- a/internal/capture/streamsink.go +++ b/internal/capture/streamsink.go @@ -81,7 +81,7 @@ func streamSinkNew(c codec.RTPCodec, pipelineFn func() (string, error), id strin "codec_type": c.Type.String(), }, }), - totalBytes: promauto.NewGauge(prometheus.GaugeOpts{ + totalBytes: promauto.NewCounter(prometheus.CounterOpts{ Name: "streamsink_bytes", Namespace: "neko", Subsystem: "capture",