This is documentation for the next version of Grafana Loki documentation. For the latest stable release, go to the latest version.
Loki network ports
Loki components communicate with each other over the network, and clients such as Grafana and Grafana Alloy reach Loki over HTTP. Use this page to plan firewall rules, Kubernetes NetworkPolicies, or service mesh configuration for a Loki deployment.
All port numbers on this page are defaults. If you change a port in your configuration, use your value instead.
Ports that Loki listens on
Every Loki process opens the HTTP and gRPC ports. Components that share hash rings through memberlist also open the memberlist port.
Memberlist in Loki sends all gossip traffic over TCP, so you don’t need to open UDP for port 7946.
If you enable TLS with server.http_tls_config, server.grpc_tls_config, or memberlist.tls_enabled, the encrypted traffic uses the same ports.
For details, refer to the
server and
memberlist configuration blocks.
Connections between components
The following table lists the main connections between Loki components. In monolithic and simple scalable modes, one process runs several components, but the components still use these ports to reach each other, including across replicas.
Loki also connects to services outside the deployment, such as object storage and caches. Use the ports that those services expose, for example 443 for HTTPS object storage endpoints.
Additional ports in the Helm chart
The Loki Helm chart deploys some components that aren’t part of Loki itself. These components use the following ports:
When the gateway is enabled, clients send push and query requests to the gateway Service on port 80. The gateway forwards them to the Loki components on port 3100.
Some Services, such as the query frontend Service, also expose port 9096, named grpclb.
This port forwards to the gRPC container port, so it doesn’t open another port in the pod.
The chart can create NetworkPolicies for this traffic.
To enable them, set networkPolicy.enabled: true.
For the related values, such as networkPolicy.alertmanager.port, refer to the
Helm chart values.


