Add way to change default separator for json pathes

This commit is contained in:
michey
2021-12-24 23:34:28 +03:00
parent 7f22fd5e98
commit 4f1b56fe2f
8 changed files with 133 additions and 8 deletions

View File

@@ -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 {