mirror of
https://github.com/hikhvar/mqtt2prometheus.git
synced 2026-02-14 09:59:52 +00:00
Add way to change default separator for json pathes
This commit is contained in:
@@ -28,7 +28,7 @@ func Fuzz(data []byte) int {
|
||||
PrometheusName: "kartoffeln",
|
||||
ValueType: "counter",
|
||||
},
|
||||
})
|
||||
}, ".")
|
||||
json := metrics.NewJSONObjectExtractor(p)
|
||||
mc, err := json("foo", data, "bar")
|
||||
if err != nil && len(mc) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user