Signed-off-by: Zachary Caldarola <zmc2005@gmail.com>
This commit is contained in:
Zachary Caldarola
2023-01-28 17:40:46 -05:00
parent 1ec69c9168
commit f3952f941b

View File

@@ -86,7 +86,7 @@ func (PGReplicationSlotCollector) Update(ctx context.Context, db *sql.DB, ch cha
} }
ch <- prometheus.MustNewConstMetric( ch <- prometheus.MustNewConstMetric(
pgReplicationSlot["is_active"], pgReplicationSlot["is_active"],
prometheus.GaugeValue, int(flush_lsn), slot_name, prometheus.GaugeValue, float64(flush_lsn), slot_name,
) )
} }
if err := rows.Err(); err != nil { if err := rows.Err(); err != nil {