Re: [prometheus-users] Prometheus Api to json to use in react.js

2022-08-12 Thread Stuart Clark

On 06/08/2022 22:58, Geet wrote:

Hi ,

What is the best way to collect data from Prometheus metrics which is 
in dev environment and convert the metrics to json and to use in 
react.js for making bar charts?



Take a look at the HTTP query API which returns a JSON response for a 
query you send:


https://prometheus.io/docs/prometheus/latest/querying/api/

--
Stuart Clark

--
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/adb4f598-806d-8563-5625-5aa425e622b7%40Jahingo.com.


[prometheus-users] Prometheus Api to json to use in react.js

2022-08-12 Thread Geet
Hi ,

What is the best way to collect data from Prometheus metrics which is in 
dev environment and convert the metrics to json and to use in react.js for 
making bar charts?

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/dd2bda38-758e-469a-8a00-ff5a3c30ab39n%40googlegroups.com.