We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0865563 commit ef264a1Copy full SHA for ef264a1
config/config.go
@@ -187,6 +187,12 @@ func (m *MetricPathConfig) ParseLabel(val interface{}) (ret string) {
187
ret = fmt.Sprintf("%d", v)
188
case string:
189
ret = v
190
+ case bool:
191
+ if v {
192
+ ret = "true"
193
+ } else {
194
+ ret = "false"
195
+ }
196
}
197
198
return m.DoConvertLabel(ret)
@@ -201,6 +207,12 @@ func (m *MetricPathConfig) ParseValue(val interface{}) (ret *float64) {
201
207
valueString = fmt.Sprintf("%d", v)
202
208
203
209
valueString = v
210
211
212
+ valueString = "1"
213
214
+ valueString = "0"
215
204
216
205
217
206
218
return m.DoConvertValue(valueString)
0 commit comments