How to show how many ports running in Server on Grafana?

I want to know that what’s the metrics how many ports are running in server i want to see in Grafana like if i want to see in terminal then i run netstat -tulpn | grep LISTEN command i’ll get how many ports running in my server then plz suggest me…

Hi,

You can use script exporter that run some command and format the output that can understand by Prometheus.

Below some examples:

Regards,
Fadjar Tandabawana