From f3952f941b833f8626330d64ea885f3086b1f3a1 Mon Sep 17 00:00:00 2001
From: Zachary Caldarola <zmc2005@gmail.com>
Date: Sat, 28 Jan 2023 17:40:46 -0500
Subject: [PATCH] typing

Signed-off-by: Zachary Caldarola <zmc2005@gmail.com>
---
 collector/replication_slots.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/collector/replication_slots.go b/collector/replication_slots.go
index 8705f69c..129b2efd 100644
--- a/collector/replication_slots.go
+++ b/collector/replication_slots.go
@@ -86,7 +86,7 @@ func (PGReplicationSlotCollector) Update(ctx context.Context, db *sql.DB, ch cha
 		}
 		ch <- prometheus.MustNewConstMetric(
 			pgReplicationSlot["is_active"],
-			prometheus.GaugeValue, int(flush_lsn), slot_name,
+			prometheus.GaugeValue, float64(flush_lsn), slot_name,
 		)
 	}
 	if err := rows.Err(); err != nil {