Regarding converting the Prometheus output format into Python dictionary format

17 views
Skip to first unread message

chekurthi manvith

unread,
Nov 4, 2022, 2:57:28 AM11/4/22
to Prometheus Users

Hi Team,

I have importing output from the Prometheus with using Python library where want to convert into dictionary format as Prometheus output is in different format. Can you please suggest how can I do it.

Waiting for your reply.

Regards,
Manvith

Brian Candler

unread,
Nov 4, 2022, 5:50:01 AM11/4/22
to Prometheus Users
Sorry, your question doesn't make any sense.

The response from the Prometheus HTTP API is JSON.  When receiving this with any sensible HTTP client library, normally JSON objects will be converted into Python dicts.  If this isn't happening, then you need to show your code, and show what you *are* receiving.

Reply all
Reply to author
Forward
0 new messages