You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-12-21 04:00:58 +03:00
Fix checkpoint_sync_time value type
Error: sql: Scan error on column index 3, name \"checkpoint_sync_time\": converting driver.Value type float64 (\"1.876469e+06\") to a int: invalid syntax See also: https://github.com/prometheus-community/postgres_exporter/issues/633 https://github.com/prometheus-community/postgres_exporter/pull/666 Signed-off-by: Nicolas Rodriguez <nico@nicoladmin.fr>
This commit is contained in:
@@ -123,7 +123,7 @@ func (PGStatBGWriterCollector) Update(ctx context.Context, db *sql.DB, ch chan<-
|
||||
var cpt int
|
||||
var cpr int
|
||||
var cpwt float64
|
||||
var cpst int
|
||||
var cpst float64
|
||||
var bcp int
|
||||
var bc int
|
||||
var mwc int
|
||||
|
||||
Reference in New Issue
Block a user