Port reference › Monitoring

Port 9090 · Prometheus

Prometheus server UI and API

TCP Monitoring Exposure risk: Medium

What is port 9090 used for?

Default Prometheus server port. Cockpit (Linux web admin) also uses 9090.

Registered port (1024-49151): the range used by ordinary applications.

Security notes

Prometheus has no auth by default, and its metrics reveal your infrastructure. Block from outside.

Allow port 9090 through the firewall

This port is risky to expose, so the commands below allow only the IPs you specify.

# Replace 203.0.113.10/32 with the IP or network you want to allow
sudo ufw allow from 203.0.113.10/32 to any port 9090 proto tcp
sudo ufw status

Check whether port 9090 is open

sudo ss -tlpn | grep ':9090 '

Ports used together