jsonpath-rs
jsonpath-rs copied to clipboard
Path of the found value
trafficstars
I'm writing a converter from json to prometheus metrics format. I have a config that look like:
path: $.buffer_pools.*
name: buffer_pool # |
labels: # |
- name: type # |
value: $1 # <------+ a placeholder for second component from the path that matches the selector above
I implemented the feature and if you still support this project I could make a PR.