Prometheus integration with RESt API

23 views
Skip to first unread message

s.saurab...@gmail.com

unread,
Feb 2, 2021, 10:45:33 AM2/2/21
to Prometheus Developers

Hi Everyone ...

Is it possible to integrate target device whose REST API is exposed with prometheus ??? Pls suggest options if possible.


Thanks,
Saurabh

Stuart Clark

unread,
Feb 2, 2021, 6:10:51 PM2/2/21
to s.saurab...@gmail.com, Prometheus Developers
On 02/02/2021 15:45, s.saurab...@gmail.com wrote:

Hi Everyone ...

Is it possible to integrate target device whose REST API is exposed with prometheus ??? Pls suggest options if possible.

Are you meaning that you are wanting to fetch metrics from this REST API?

If so, this is where an exporter would be used. In whichever language you choose and the appropriate Prometheus client library you can call your API to fetch the metrics and then reply to Prometheus. You would then be able to scrape those metrics.

-- 
Stuart Clark

Julien Pivotto

unread,
Feb 3, 2021, 5:28:39 PM2/3/21
to Stuart Clark, s.saurab...@gmail.com, Prometheus Developers
Hello,

If you do no own the API, the json_exporter might also help:

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

Regards,

>
> --
> Stuart Clark
>
> --
> You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/53edf054-ea50-9125-c6eb-6e96140f497f%40Jahingo.com.

--
Julien Pivotto
@roidelapluie
Reply all
Reply to author
Forward
0 new messages