Skip to content

Commit

Permalink
fix(inputs.postgresql_extensible): support bool tags
Browse files Browse the repository at this point in the history
  • Loading branch information
phemmer committed Feb 8, 2024
1 parent ae7fbc5 commit ecda89b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/inputs/postgresql_extensible/postgresql_extensible.go
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 ecda89b

Please sign in to comment.