Required ports on Grafana and Prometheus servers

Hello,
Which ports should be open on a server with Grafana and Prometheus installed? Are ports 3000 and 9090 enough to be open?

Thank you.