fix(inputs.postgresql_extensible): Add support for bool tags (#14707)
This commit is contained in:
parent
cb81959e69
commit
ad9b771e50
|
|
@ -7,6 +7,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
|
@ -258,6 +259,8 @@ COLUMN:
|
||||||
tags[col] = string(v)
|
tags[col] = string(v)
|
||||||
case int64, int32, int:
|
case int64, int32, int:
|
||||||
tags[col] = fmt.Sprintf("%d", v)
|
tags[col] = fmt.Sprintf("%d", v)
|
||||||
|
case bool:
|
||||||
|
tags[col] = strconv.FormatBool(v)
|
||||||
default:
|
default:
|
||||||
p.Log.Debugf("Failed to add %q as additional tag", col)
|
p.Log.Debugf("Failed to add %q as additional tag", col)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue