Caution
Grafana Agent has reached End-of-Life (EOL) on November 1, 2025. Agent is no longer receiving vendor support and will no longer receive security or bug fixes. Current users of Agent Static mode, Agent Flow mode, and Agent Operator should proceed with migrating to Grafana Alloy. If you have already migrated to Alloy, no further action is required. Read more about why we recommend migrating to Grafana Alloy.
otelcol.extension.jaeger_remote_sampling
EXPERIMENTAL: This is an experimental component. Experimental components are subject to frequent breaking changes, and may be removed with no equivalent replacement.
otelcol.extension.jaeger_remote_sampling serves a specified Jaeger remote sampling
document.
NOTE:
otelcol.extension.jaeger_remote_samplingis a wrapper over the upstream OpenTelemetry Collectorjaegerremotesamplingextension. Bug reports or feature requests will be redirected to the upstream repository, if necessary.
Multiple otelcol.extension.jaeger_remote_sampling components can be specified by giving them
different labels.
Usage
otelcol.extension.jaeger_remote_sampling "LABEL" {
source {
}
}Arguments
otelcol.extension.jaeger_remote_sampling doesn’t support any arguments and is configured fully
through inner blocks.
Blocks
The following blocks are supported inside the definition of
otelcol.extension.jaeger_remote_sampling:
The > symbol indicates deeper levels of nesting. For example, grpc > tls
refers to a tls block defined inside a grpc block.
http block
The http block configures an HTTP server which serves the Jaeger remote
sampling document.
The following arguments are supported:
tls block
The tls block configures TLS settings used for a server. If the tls block
isn’t provided, TLS won’t be used for connections to the server.
The following arguments are supported:
If the server doesn’t support TLS, you must set the insecure argument to true.
To disable tls for connections to the server, set the insecure argument to true.
If reload_interval is set to "0s", the certificate never reloaded.
The following pairs of arguments are mutually exclusive and can’t both be set simultaneously:
ca_pemandca_filecert_pemandcert_filekey_pemandkey_file
If cipher_suites is left blank, a safe default list is used.
See the Go TLS documentation for a list of supported cipher suites.
cors block
The cors block configures CORS settings for an HTTP server.
The following arguments are supported:
The allowed_headers specifies which headers are acceptable from a CORS
request. The following headers are always implicitly allowed:
AcceptAccept-LanguageContent-TypeContent-Language
If allowed_headers includes "*", all headers will be permitted.
grpc block
The grpc block configures a gRPC server which serves the Jaeger remote
sampling document.
The following arguments are supported:
keepalive block
The keepalive block configures keepalive settings for connections to a gRPC
server.
keepalive doesn’t support any arguments and is configured fully through inner
blocks.
server_parameters block
The server_parameters block controls keepalive and maximum age settings for gRPC
servers.
The following arguments are supported:
enforcement_policy block
The enforcement_policy block configures the keepalive enforcement policy for
gRPC servers. The server will close connections from clients that violate the
configured policy.
The following arguments are supported:
source block
The source block configures the method of retrieving the Jaeger remote sampling document
that is served by the servers specified in the grpc and http blocks.
The following arguments are supported:
Exactly one of the file argument, content argument or remote block must be specified.
remote block
The remote block configures the gRPC client used by the component.
The following arguments are supported:
By default, requests are compressed with gzip.
The compression argument controls which compression mechanism to use. Supported strings are:
"gzip""zlib""deflate""snappy""zstd"
If compression is set to "none" or an empty string "", no compression is used.
The supported values for balancer_name are listed in the gRPC documentation on Load balancing:
pick_first: Tries to connect to the first address, uses it for all RPCs if it connects, or tries the next address if it fails (and keeps doing that until one connection is successful). Because of this, all the RPCs will be sent to the same backend.round_robin: Connects to all the addresses it sees and sends an RPC to each backend one at a time in order. For example, the first RPC is sent to backend-1, the second RPC is sent to backend-2, and the third RPC is sent to backend-1.
The :authority header in gRPC specifies the host to which the request is being sent.
It’s similar to the Host header in HTTP requests.
By default, the value for :authority is derived from the endpoint URL used for the gRPC call.
Overriding :authority could be useful when routing traffic using a proxy like Envoy, which makes routing decisions based on the value of the :authority header.
An HTTP proxy can be configured through the following environment variables:
HTTPS_PROXYNO_PROXY
The HTTPS_PROXY environment variable specifies a URL to use for proxying
requests. Connections to the proxy are established via the HTTP CONNECT
method.
The NO_PROXY environment variable is an optional list of comma-separated
hostnames for which the HTTPS proxy should not be used. Each hostname can be
provided as an IP address (1.2.3.4), an IP address in CIDR notation
(1.2.3.4/8), a domain name (example.com), or *. A domain name matches
that domain and all subdomains. A domain name with a leading “.”
(.example.com) matches subdomains only. NO_PROXY is only read when
HTTPS_PROXY is set.
Because otelcol.extension.jaeger_remote_sampling uses gRPC, the configured proxy server must be
able to handle and proxy HTTP/2 traffic.
tls client block
The tls block configures TLS settings used for the connection to the gRPC
server.
The following arguments are supported:
If the server doesn’t support TLS, you must set the insecure argument to true.
To disable tls for connections to the server, set the insecure argument to true.
If reload_interval is set to "0s", the certificate never reloaded.
The following pairs of arguments are mutually exclusive and can’t both be set simultaneously:
ca_pemandca_filecert_pemandcert_filekey_pemandkey_file
If cipher_suites is left blank, a safe default list is used.
See the Go TLS documentation for a list of supported cipher suites.
keepalive client block
The keepalive block configures keepalive settings for gRPC client
connections.
The following arguments are supported:
Component health
otelcol.extension.jaeger_remote_sampling is only reported as unhealthy if given an invalid
configuration.
Debug information
otelcol.extension.jaeger_remote_sampling does not expose any component-specific debug information.
Examples
Serving from a file
This example configures the Jaeger remote sampling extension to load a local json document and serve it over the default http port of 5778. Currently this config style exists for consistency with upstream Opentelemetry Collector components and may be removed.
otelcol.extension.jaeger_remote_sampling "example" {
http {
}
source {
file = "/path/to/jaeger-sampling.json"
reload_interval = "10s"
}
}Serving from another component
This example uses the output of a component to determine what sampling rules to serve:
local.file "sampling" {
filename = "/path/to/jaeger-sampling.json"
}
otelcol.extension.jaeger_remote_sampling "example" {
http {
}
source {
content = local.file.sampling.content
}
}


