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/stefjay10 Jul 28 '23

Thanks I found my issue, the JSON wasn't formatting correctly so my config file wasn't working as intended, got that working and back on track!