How to connect a simple REST API to Prometheus

1,104 views
Skip to first unread message

Shutima Potivorakun

unread,
Apr 6, 2021, 3:58:58 AM4/6/21
to Prometheus Users
Hello all,

I am new to Prometheus. I need to learn how to configure Prometheus, therefore I setup Prometheus and Grafana locally using docker-compose. Then I wrote a simple REST API that display some text on the browser. Now, I would like to connect this API to Prometheus. Could you please point me out to the document on how to do this? Thank you very much in advance. Here is my simple project:

Best Regards,
Shutima

Evelyn Pereira Souza

unread,
Apr 6, 2021, 6:24:30 AM4/6/21
to promethe...@googlegroups.com
Hi Shutima

A very easy way is to use https://github.com/prometheus/blackbox_exporter

> The blackbox exporter allows blackbox probing of endpoints over HTTP,
HTTPS, DNS, TCP and ICMP.

We included lots of RESTful APIs in our blackbox config

best regards
Evelyn
OpenPGP_0x61776FA8E38403FB.asc
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages