mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-04-22 23:15:26 +00: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:
parent
6e778e7939
commit
8855b7a604
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user