Open jeremy-albinet opened 3 years ago
Hello, I tried to parse the following JSON with json_exporter
{ "status": "disconnected", "topics": [ { "topic": "production", "count": 606037, "lag": 485172 }, { "topic": "production", "count": 23403, "lag": 2 }, { "topic": "staging", "count": 121, "lag": 0 } ] }
But I failed to:
main
https://example.org/main/topics
production
status
$.status == "connected"
lag
Here the most advanced config I got:
metrics: - name: json_topics type: object path: "{ .topics[*] }" help: Topic info labels: topic: "{ .topic }" values: lag: "{ .lag }" count: "{ .count }"
Thanks in advance
same problem here. really looking forward to this feature
Hello, I tried to parse the following JSON with json_exporter
But I failed to:
main
value fromhttps://example.org/main/topics
production
topicstatus
with something like$.status == "connected"
lag
total for all topicsHere the most advanced config I got:
Thanks in advance