Skip to content

Commit

Permalink
fix(inputs.postgresql_extensible): Add support for bool tags (#14707)
Browse files Browse the repository at this point in the history
(cherry picked from commit ad9b771)
  • Loading branch information
phemmer authored and powersj committed Feb 20, 2024
1 parent 39a40a6 commit 06d70f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/inputs/postgresql_extensible/postgresql_extensible.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"
"io"
"os"
"strconv"
"strings"
"time"

Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 06d70f6

Please sign in to comment.