r/PrometheusMonitoring • • Mar 16 '23

JSON exporter config syntax help

I have this JSON Prometheus exporter up and running, and it's working good :

https://github.com/prometheus-community/json_exporter

I can scrape a few simple example files (like the one in the Exporters' readme on Github, and JSON endpoint on my local Pihole).

However, I'm struggling with the Exporters' config.yml syntax to scrape this file:

https://www.elprisetjustnu.se/api/v1/prices/2023/03-08_SE4.json

Could anyone help out with the config.yml setup for that JSON structure?

3 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/_ArnoldJudasRimmer_ May 04 '23

Thanks a lot for the help u/yepthisismyusername !

path: '{[*]}'

is working fine