How can I config the prometheus for getting json data from http API?

6,041 views
Skip to first unread message

郑红伟

unread,
Apr 23, 2017, 4:06:29 AM4/23/17
to Prometheus Developers
I want to pull some data from remote servers, the remote servers provides the http api to return json data. how i can config the prometheus ?Maybe I can use the blackbox_exporter or other exporter? Who can give me some advice? 

Brian Brazil

unread,
Apr 23, 2017, 4:21:32 AM4/23/17
to 郑红伟, Prometheus Developers
On 23 April 2017 at 09:06, 郑红伟 <home...@gmail.com> wrote:
I want to pull some data from remote servers, the remote servers provides the http api to return json data. how i can config the prometheus ?Maybe I can use the blackbox_exporter or other exporter? Who can give me some advice? 

郑红伟

unread,
Apr 23, 2017, 10:32:02 AM4/23/17
to Prometheus Developers
can i use nginx-lua-prometheus to reach it?

在 2017年4月23日星期日 UTC+8下午4:06:29,郑红伟写道:

郑红伟

unread,
Apr 23, 2017, 10:42:19 AM4/23/17
to Prometheus Developers, home...@gmail.com
can I use nginx-lua-prometheus to fix this problem?

在 2017年4月23日星期日 UTC+8下午4:21:32,Brian Brazil写道:

Matthias Rampke

unread,
Apr 23, 2017, 12:30:27 PM4/23/17
to 郑红伟, Prometheus Developers
No. nginx-lua-prometheus exposes metrics from nginx, it is not a translation layer. You might be able to use the bits of it to write the exporter in Lua, but that's not what it is made to do.

/MR

--
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 post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/6fba0677-6e28-4707-b036-9401e5ad58fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Muthuveerappan Krishnan

unread,
May 20, 2018, 1:27:11 PM5/20/18
to Prometheus Developers
Reply all
Reply to author
Forward
0 new messages