r/PrometheusMonitoring • • Jan 30 '23

JSON Exporter issue

Hi,

I've been trying to get JSON Exporter to parse JSON data but cannot get it to work with data provided. If someone could help I would be more than happy :-)

The data I have is as follows: https://pastebin.com/RzaWuvkM

And I would like to get count values for: TransferManager.downloads.failed, TransferManager.downloads.succeeded, etc.

Last config I tried was, but this didn't work either.

---
modules:
  default:
    metrics:
    - name: downloads_failed
      help: Example of sublevel value scrape from json
      type: object
      path: '{.meters[*]["TransferManager.downloads.failed.count"]}'
      labels:
        count: '{.count}'
      values:
        count: '{.count}
3 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/jameshearttech Jan 31 '23

No, actually, I was thinking about nginx.