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 # Replace 203.0.113.10/32 with the IP or network you want to allow
sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="203.0.113.10/32" port port="9090" protocol="tcp" accept'
sudo firewall-cmd --reload # Replace 203.0.113.10/32 with the IP or network you want to allow
sudo iptables -A INPUT -p tcp -s 203.0.113.10/32 --dport 9090 -j ACCEPT # Replace 203.0.113.10/32 with the IP or network you want to allow
New-NetFirewallRule -DisplayName "Allow TCP 9090" -Direction Inbound -Protocol TCP -LocalPort 9090 -RemoteAddress 203.0.113.10/32 -Action Allow # Replace sg-0123456789abcdef0 with your security group ID
aws ec2 authorize-security-group-ingress --group-id sg-0123456789abcdef0 --protocol tcp --port 9090 --cidr 203.0.113.10/32 Check whether port 9090 is open
sudo ss -tlpn | grep ':9090 ' netstat -ano | findstr :9090 nc -zv SERVER 9090
# Windows
Test-NetConnection SERVER -Port 9090 sudo lsof -i :9090 Ports used together
- 9100 node_exporter · Linux server metrics, network printers
- 9093 Alertmanager · Prometheus alert manager
- 3000 Dev server / Grafana · Node.js and React dev servers, Grafana