From 00c8c3d3cf8d58efff7fecddf49676ce2f22f4cf Mon Sep 17 00:00:00 2001 From: Termina1 Date: Tue, 24 Dec 2024 18:03:50 +0200 Subject: [PATCH] fix metric --- sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync.go b/sync.go index 4ae1df3..d08f589 100644 --- a/sync.go +++ b/sync.go @@ -604,7 +604,7 @@ func (sync *Syncer) Drain(ctx context.Context, recs protocol.Records) (err error if len(recs) == 0 { return nil } - SessionsStates.WithLabelValues(sync.Name, "drain").Set(float64(sync.GetDrainState())) + SessionsStates.WithLabelValues(sync.Name, "drain", version).Set(float64(sync.GetDrainState())) recs = sync.processPings(recs)