Is there a way to monitor port using node exporter on prometheus?

6,521 views
Skip to first unread message

nikhil...@alefmobitech.com

unread,
May 24, 2017, 6:47:14 AM5/24/17
to Prometheus Users
I wish to monitor 1-2 ports (CPU-usage, port-status, etc) on my server. Is there a way to do it using node exporter?

Ben Kochie

unread,
May 24, 2017, 7:21:46 AM5/24/17
to nikhil...@alefmobitech.com, Prometheus Users
I'm not sure what you mean by "monitor ports".  The node_exporter exposes a number of metrics via various collectors[0]

Maybe if you describe how you currently monitor the things you want, we can better answer your question.


On Wed, May 24, 2017 at 12:47 PM, <nikhil...@alefmobitech.com> wrote:
I wish to monitor 1-2 ports (CPU-usage, port-status, etc) on my server. Is there a way to do it using node exporter?

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/3a5b6151-5a9a-438f-a3b7-fe19f59d5e47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nikhil...@alefmobitech.com

unread,
May 24, 2017, 7:26:20 AM5/24/17
to Prometheus Users, nikhil...@alefmobitech.com
Currently, I am monitoring CPU-usage, Memory-usage and other metrics at the system-level. 
What I wish to monitor is some specific ports where I have few of my process(es) running. I would like to use it to monitor if the port (process) has gone down and something similar. So, in a nut shell I want to use node exporter to monitor process as well (if there is a way to do it).

I hope this should help or please let me know if I need to be more descriptive.




On Wednesday, May 24, 2017 at 4:51:46 PM UTC+5:30, Ben Kochie wrote:
I'm not sure what you mean by "monitor ports".  The node_exporter exposes a number of metrics via various collectors[0]

Maybe if you describe how you currently monitor the things you want, we can better answer your question.

On Wed, May 24, 2017 at 12:47 PM, <nikhil...@alefmobitech.com> wrote:
I wish to monitor 1-2 ports (CPU-usage, port-status, etc) on my server. Is there a way to do it using node exporter?

--
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 post to this group, send email to promethe...@googlegroups.com.

nikhil...@alefmobitech.com

unread,
May 25, 2017, 2:34:41 AM5/25/17
to Prometheus Users, nikhil...@alefmobitech.com
Also, in addition something that can help to send alerts n email incase a process has gone down?

Stuart Clark

unread,
May 25, 2017, 3:01:22 AM5/25/17
to nikhil...@alefmobitech.com, Prometheus Users
It sounds like you are wanting a few different things. The blackbox exporter can be used to check ports are accessible and responding, while the process exporter can tell you about individual applications running.

The node exporter is mainly for system level metrics like overall CPU and memory usage. Other exporters or direct instrumentation should be used for additional application insights. Depending what applications you have there may already be a more specific exporter available (eg. Nginx, MySQL, JMX for Java, etc.)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Nikhil Goenka

unread,
May 25, 2017, 7:25:03 AM5/25/17
to Stuart Clark, Prometheus Users
Thanks Charles.
In blackbox the available options are http, tcp, http_2xx. Please suggest me how can I use these to monitor port ?

Ben Kochie

unread,
May 25, 2017, 11:37:32 AM5/25/17
to Nikhil Goenka, Stuart Clark, Prometheus Users
Yes, the blackbox_exporter is what you want for probing listening services.  Which probe depends on the protocol that the process uses to communicate.

Without more specific information on what you're running, I can't give any better advice.

To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAKH5-WEi760fqE_nCJqrnrqY-U%2BbKtyRX8RfDW%3DHAjKCf8VcpA%40mail.gmail.com.

skv...@gmail.com

unread,
Nov 8, 2017, 10:40:21 AM11/8/17
to Prometheus Users
Hi Nikhil ,

Since we have a similar requirement to monitor port status, please let me know if you have used any specific exporter to monitor the port status in Prometheus.

Thanks,
Srikanth.

Brian Brazil

unread,
Nov 8, 2017, 10:41:27 AM11/8/17
to skv...@gmail.com, Prometheus Users
On 8 November 2017 at 15:40, <skv...@gmail.com> wrote:
Hi Nikhil ,

Since we have a similar requirement to monitor port status, please let me know if you have used any specific exporter to monitor the port status in Prometheus.

As Ben said, the blackbox exporter is what you're looking for.

Brian
 
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/34368d77-09a0-41ee-ad34-247efb413c2d%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Anupama Kumar

unread,
Dec 11, 2018, 6:57:27 AM12/11/18
to Prometheus Users
how do we monitor ports on a server, without using HTTP(s) using prometheus. for example servername port#
I don't see that option on the blackbox exporter.
Reply all
Reply to author
Forward
0 new messages