fix(inputs.postgresql_extensible): Add support for bool tags (#14707)

This commit is contained in:
Patrick Hemmer 2024-02-09 14:13:57 -05:00 committed by GitHub
parent cb81959e69
commit ad9b771e50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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)
}