| 1 |
# "otlp" Receiver Reference |
| 2 |
|
| 3 |
Config defines configuration for OTLP receiver. |
| 4 |
|
| 5 |
|
| 6 |
### Config |
| 7 |
|
| 8 |
| Name | Type | Default | Docs | |
| 9 |
|-----------|---------------------------------------------------|------------|-------------------------------------------------------------------------------------------------------| |
| 10 |
| protocols | [otlpreceiver-Protocols](#otlpreceiver-protocols) | <no value> | Protocols is the configuration for the supported protocols, currently gRPC and HTTP (Proto and JSON). | |
| 11 |
|
| 12 |
### otlpreceiver-Protocols |
| 13 |
|
| 14 |
| Name | Type | Default | Docs | |
| 15 |
|------|-----------------------------------------------------------------|------------|-----------------------------------------------------------------------------| |
| 16 |
| grpc | [configgrpc-GRPCServerSettings](#configgrpc-grpcserversettings) | <no value> | GRPCServerSettings defines common settings for a gRPC server configuration. | |
| 17 |
| http | [confighttp-HTTPServerSettings](#confighttp-httpserversettings) | <no value> | HTTPServerSettings defines settings for creating an HTTP server. | |
| 18 |
|
| 19 |
### configgrpc-GRPCServerSettings |
| 20 |
|
| 21 |
| Name | Type | Default | Docs | |
| 22 |
|------------------------|-----------------------------------------------------------------------|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| 23 |
| endpoint | string | localhost:4317 | Endpoint configures the address for this network connection. For TCP and UDP networks, the address has the form "host:port". The host must be a literal IP address, or a host name that can be resolved to IP addresses. The port must be a literal port number or a service name. If the host is a literal IPv6 address it must be enclosed in square brackets, as in "[2001:db8::1]:80" or "[fe80::1%zone]:80". The zone specifies the scope of the literal IPv6 address as defined in RFC 4007. | |
| 24 |
| transport | string | tcp | Transport to use. Known protocols are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), "udp6" (IPv6-only), "ip", "ip4" (IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and "unixpacket". | |
| 25 |
| tls | [configtls-TLSServerSetting](#configtls-tlsserversetting) | <no value> | Configures the protocol to use TLS. The default value is nil, which will cause the protocol to not use TLS. | |
| 26 |
| max_recv_msg_size_mib | uint64 | <no value> | MaxRecvMsgSizeMiB sets the maximum size (in MiB) of messages accepted by the server. | |
| 27 |
| max_concurrent_streams | uint32 | <no value> | MaxConcurrentStreams sets the limit on the number of concurrent streams to each ServerTransport. It has effect only for streaming RPCs. | |
| 28 |
| read_buffer_size | int | 524288 | ReadBufferSize for gRPC server. See grpc.ReadBufferSize (https://godoc.org/google.golang.org/grpc#ReadBufferSize). | |
| 29 |
| write_buffer_size | int | <no value> | WriteBufferSize for gRPC server. See grpc.WriteBufferSize (https://godoc.org/google.golang.org/grpc#WriteBufferSize). | |
| 30 |
| keepalive | [configgrpc-KeepaliveServerConfig](#configgrpc-keepaliveserverconfig) | <no value> | Keepalive anchor for all the settings related to keepalive. | |
| 31 |
| auth | [configauth-Authentication](#configauth-authentication) | <no value> | Auth for this receiver | |
| 32 |
|
| 33 |
### configtls-TLSServerSetting |
| 34 |
|
| 35 |
| Name | Type | Default | Docs | |
| 36 |
|----------------|--------|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| 37 |
| ca_file | string | <no value> | Path to the CA cert. For a client this verifies the server certificate. For a server this verifies client certificates. If empty uses system root CA. (optional) | |
| 38 |
| cert_file | string | <no value> | Path to the TLS cert to use for TLS required connections. (optional) | |
| 39 |
| key_file | string | <no value> | Path to the TLS key to use for TLS required connections. (optional) | |
| 40 |
| client_ca_file | string | <no value> | Path to the TLS cert to use by the server to verify a client certificate. (optional) This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to https://godoc.org/crypto/tls#Config for more information. (optional) | |
| 41 |
|
| 42 |
### configgrpc-KeepaliveServerConfig |
| 43 |
|
| 44 |
| Name | Type | Default | Docs | |
| 45 |
|--------------------|---------------------------------------------------------------------------------|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| 46 |
| server_parameters | [configgrpc-KeepaliveServerParameters](#configgrpc-keepaliveserverparameters) | <no value> | KeepaliveServerParameters allow configuration of the keepalive.ServerParameters. The same default values as keepalive.ServerParameters are applicable and get applied by the server. See https://godoc.org/google.golang.org/grpc/keepalive#ServerParameters for details. | |
| 47 |
| enforcement_policy | [configgrpc-KeepaliveEnforcementPolicy](#configgrpc-keepaliveenforcementpolicy) | <no value> | KeepaliveEnforcementPolicy allow configuration of the keepalive.EnforcementPolicy. The same default values as keepalive.EnforcementPolicy are applicable and get applied by the server. See https://godoc.org/google.golang.org/grpc/keepalive#EnforcementPolicy for details. | |
| 48 |
|
| 49 |
### configgrpc-KeepaliveServerParameters |
| 50 |
|
| 51 |
| Name | Type | Default | Docs | |
| 52 |
|--------------------------|---------------------------------|------------|------| |
| 53 |
| max_connection_idle | [time-Duration](#time-duration) | <no value> | | |
| 54 |
| max_connection_age | [time-Duration](#time-duration) | <no value> | | |
| 55 |
| max_connection_age_grace | [time-Duration](#time-duration) | <no value> | | |
| 56 |
| time | [time-Duration](#time-duration) | <no value> | | |
| 57 |
| timeout | [time-Duration](#time-duration) | <no value> | | |
| 58 |
|
| 59 |
### configgrpc-KeepaliveEnforcementPolicy |
| 60 |
|
| 61 |
| Name | Type | Default | Docs | |
| 62 |
|-----------------------|---------------------------------|------------|------| |
| 63 |
| min_time | [time-Duration](#time-duration) | <no value> | | |
| 64 |
| permit_without_stream | bool | <no value> | | |
| 65 |
|
| 66 |
### configauth-Authentication |
| 67 |
|
| 68 |
| Name | Type | Default | Docs | |
| 69 |
|---------------|--------|------------|----------------------------------------------------------------------------------------------------------------| |
| 70 |
| authenticator | string | <no value> | AuthenticatorName specifies the name of the extension to use in order to authenticate the incoming data point. | |
| 71 |
|
| 72 |
### confighttp-HTTPServerSettings |
| 73 |
|
| 74 |
| Name | Type | Default | Docs | |
| 75 |
|-----------------------|-----------------------------------------------------------|--------------|-----------------------------------------------------------------------------------------------------------------------------------------| |
| 76 |
| endpoint | string | localhost:4318 | Endpoint configures the listening address for the server. | |
| 77 |
| tls | [configtls-TLSServerSetting](#configtls-tlsserversetting) | <no value> | TLSSetting struct exposes TLS client configuration. | |
| 78 |
| cors | [confighttp-CORSConfig](#confighttp-corsconfig) | <no value> | CORSConfig configures a receiver for HTTP cross-origin resource sharing (CORS). | |
| 79 |
| max_request_body_size | int | 20971520 | MaxRequestBodySize configures the maximum allowed body size in bytes for a single request. The default `20971520` means 20MiB | |
| 80 |
|
| 81 |
### confighttp-CORSConfig |
| 82 |
|
| 83 |
| Name | Type | Default | Docs | |
| 84 |
|-----------------|----------|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| 85 |
| allowed_origins | []string | <no value> | AllowedOrigins sets the allowed values of the Origin header for HTTP/JSON requests to an OTLP receiver. An origin may contain a wildcard (`*`) to replace 0 or more characters (e.g., `"https://*.example.com"`, or `"*"` to allow any origin). | |
| 86 |
| allowed_headers | []string | <no value> | AllowedHeaders sets what headers will be allowed in CORS requests. The Accept, Accept-Language, Content-Type, and Content-Language headers are implicitly allowed. If no headers are listed, X-Requested-With will also be accepted by default. Include `"*"` to allow any request header. | |
| 87 |
| max_age | int | <no value> | MaxAge sets the value of the Access-Control-Max-Age response header. Set it to the number of seconds that browsers should cache a CORS preflight response for. | |
| 88 |
|
| 89 |
### configtls-TLSServerSetting |
| 90 |
|
| 91 |
| Name | Type | Default | Docs | |
| 92 |
|----------------|--------|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
| 93 |
| ca_file | string | <no value> | Path to the CA cert. For a client this verifies the server certificate. For a server this verifies client certificates. If empty uses system root CA. (optional) | |
| 94 |
| cert_file | string | <no value> | Path to the TLS cert to use for TLS required connections. (optional) | |
| 95 |
| key_file | string | <no value> | Path to the TLS key to use for TLS required connections. (optional) | |
| 96 |
| client_ca_file | string | <no value> | Path to the TLS cert to use by the server to verify a client certificate. (optional) This sets the ClientCAs and ClientAuth to RequireAndVerifyClientCert in the TLSConfig. Please refer to https://godoc.org/crypto/tls#Config for more information. (optional) | |
| 97 |
|
| 98 |
### time-Duration |
| 99 |
An optionally signed sequence of decimal numbers, each with a unit suffix, such as `300ms`, `-1.5h`, or `2h45m`. Valid time units are `ns`, `us`, `ms`, `s`, `m`, `h`. |