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
No known key found for this signature in database
GPG Key ID: 1422E0B90A2D0CC4

View File

@ -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 {