diff --git a/plugins/inputs/postgresql_extensible/postgresql_extensible.go b/plugins/inputs/postgresql_extensible/postgresql_extensible.go index 5a51dbf6f..39dfea904 100644 --- a/plugins/inputs/postgresql_extensible/postgresql_extensible.go +++ b/plugins/inputs/postgresql_extensible/postgresql_extensible.go @@ -7,6 +7,7 @@ import ( "fmt" "io" "os" + "strconv" "strings" "time" @@ -258,6 +259,8 @@ COLUMN: tags[col] = string(v) case int64, int32, int: tags[col] = fmt.Sprintf("%d", v) + case bool: + tags[col] = strconv.FormatBool(v) default: p.Log.Debugf("Failed to add %q as additional tag", col) }