Port Monitoring

19 views
Skip to first unread message

Anthony Billones

unread,
Dec 16, 2020, 12:16:36 AM12/16/20
to Prometheus Users
Hi, 

Is it possible to monitor how many http requests there will be for an exposed container? 

The sample is I have a service running in a container with an exposed port 3100.
I want to know how many GET requests and POST requests it's handling.

Hope you understood my question.

Regards,
Anthony

Ben Kochie

unread,
Dec 16, 2020, 2:12:46 AM12/16/20
to Anthony Billones, Prometheus Users

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/9e30997c-8814-4170-9187-eeda69d898e4n%40googlegroups.com.

Anthony Billones

unread,
Dec 16, 2020, 3:06:49 AM12/16/20
to Prometheus Users
Hi,

We have multiple containers in an instance. based on my understanding, we would need to add a clientlib to each of the container. Is there a way that we can add something to the instance, instead of per container, for prometheus to monitor the http requests for the ports?

Stuart Clark

unread,
Dec 16, 2020, 3:39:14 AM12/16/20
to Anthony Billones, Prometheus Users
On 16/12/2020 08:06, Anthony Billones wrote:
> Hi,
>
> We have multiple containers in an instance. based on my understanding,
> we would need to add a clientlib to each of the container. Is there a
> way that we can add something to the instance, instead of per
> container, for prometheus to monitor the http requests for the ports?

Something needs to be able to count those connections to produce some
metrics.

If you aren't able to instrument the actual applications (which would be
the best option) you could also:

- Add in a proxy which has metrics
- Produce metrics from log files

Reply all
Reply to author
Forward
0 new messages