Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/grafana-agent
Path: blob/main/docs/sources/shared/flow/reference/components/loki-server-grpc.md
4096 views
---
aliases: - /docs/agent/shared/flow/reference/components/loki-server-grpc/ headless: true
---

The grpc block configures the gRPC server.

The following arguments can be used to configure the grpc block. Any omitted fields take their default values.

NameTypeDescriptionDefaultRequired
listen_addressstringNetwork address on which the server will listen for new connections. Defaults to accepting all incoming connections.""no
listen_portintPort number on which the server will listen for new connections.8081no
conn_limitintMaximum number of simultaneous http connections. Defaults to no limit.0no
max_connection_agedurationThe duration for the maximum amount of time a connection may exist before it will be closed."infinity"no
max_connection_age_gracedurationAn additive period after max_connection_age after which the connection will be forcibly closed."infinity"no
max_connection_idledurationThe duration after which an idle connection should be closed."infinity"no
server_max_recv_msg_sizeintLimit on the size of a gRPC message this server can receive (bytes).4MBno
server_max_send_msg_sizeintLimit on the size of a gRPC message this server can send (bytes).4MBno
server_max_concurrent_streamsintLimit on the number of concurrent streams for gRPC calls (0 = unlimited).100no