Skip to content

Commit 9a2b1e2

Browse files
fix for exporter issue 633
fix for exporter issue 633: prometheus-community#633 "Scan error on column index 2, name \"checkpoint_write_time\": converting driver.Value type float64 (\"6.594096e+06\") to a int: invalid syntax prometheus-community#633" Signed-off-by: bravosierrasierra <[email protected]>
1 parent e552a37 commit 9a2b1e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

collector/pg_stat_bgwriter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (PGStatBGWriterCollector) Update(ctx context.Context, db *sql.DB, ch chan<-
122122

123123
var cpt int
124124
var cpr int
125-
var cpwt int
125+
var cpwt floatr6
126126
var cpst int
127127
var bcp int
128128
var bc int

0 commit comments

Comments
 (0)