How to check how many ports running in my local system Grafana

I want to know how many ports running in my local system…then what’s the metrics that i can see in Grafana how many ports running…