From ad9b771e50c1ac5627fad7faa097c708f9a4ddff Mon Sep 17 00:00:00 2001 From: Patrick Hemmer Date: Fri, 9 Feb 2024 14:13:57 -0500 Subject: [PATCH] fix(inputs.postgresql_extensible): Add support for bool tags (#14707) --- plugins/inputs/postgresql_extensible/postgresql_extensible.go | 3 +++ 1 file changed, 3 insertions(+) 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) }