diff --git a/plugins/inputs/pgbouncer/pgbouncer.go b/plugins/inputs/pgbouncer/pgbouncer.go index 44f90b79eff84..8c5918032ea8a 100644 --- a/plugins/inputs/pgbouncer/pgbouncer.go +++ b/plugins/inputs/pgbouncer/pgbouncer.go @@ -139,7 +139,7 @@ func (p *PgBouncer) accRow(row scanner, acc telegraf.Accumulator, columns []stri err := row.Scan(columnVars...) if err != nil { - return nil,nil, err + return nil, nil, err } if columnMap["database"] != nil { // extract the database name from the column map