Skip to content

Commit

Permalink
Merge pull request prometheus-community#587 from credativ/azure-ff-fix
Browse files Browse the repository at this point in the history
Avoid parsing error from bogus Azure Flexible Server custom GUC
  • Loading branch information
sysadmind authored Feb 9, 2022
2 parents cd5a16c + f99d087 commit 10371b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/postgres_exporter/pg_setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func querySettings(ch chan<- prometheus.Metric, server *Server) error {
//
// NOTE: If you add more vartypes here, you must update the supported
// types in normaliseUnit() below
query := "SELECT name, setting, COALESCE(unit, ''), short_desc, vartype FROM pg_settings WHERE vartype IN ('bool', 'integer', 'real');"
query := "SELECT name, setting, COALESCE(unit, ''), short_desc, vartype FROM pg_settings WHERE vartype IN ('bool', 'integer', 'real') AND name != 'sync_commit_cancel_wait';"

rows, err := server.db.Query(query)
if err != nil {
Expand Down

0 comments on commit 10371b3

Please sign in to comment.