jsonpath-rs icon indicating copy to clipboard operation
jsonpath-rs copied to clipboard

Path of the found value

Open anti-social opened this issue 5 years ago • 0 comments
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.

anti-social avatar Nov 16 '20 09:11 anti-social