| 1 | type: '*otlpexporter.Config' |
| 2 | fields: |
| 3 | - name: timeout |
| 4 | type: time.Duration |
| 5 | kind: int64 |
| 6 | default: 5s |
| 7 | doc: | |
| 8 | Timeout is the timeout for every attempt to send data to the backend. |
| 9 | - name: sending_queue |
| 10 | type: exporterhelper.QueueConfig |
| 11 | kind: struct |
| 12 | fields: |
| 13 | - name: enabled |
| 14 | kind: bool |
| 15 | default: true |
| 16 | doc: | |
| 17 | Enabled indicates whether to not enqueue batches before sending to the consumerSender. |
| 18 | - name: num_consumers |
| 19 | kind: int |
| 20 | default: 10 |
| 21 | doc: | |
| 22 | NumConsumers is the number of consumers from the queue. |
| 23 | - name: queue_size |
| 24 | kind: int |
| 25 | default: 1000 |
| 26 | doc: | |
| 27 | QueueSize is the maximum number of batches allowed in queue at a given time. |
| 28 | - name: retry_on_failure |
| 29 | type: exporterhelper.RetrySettings |
| 30 | kind: struct |
| 31 | fields: |
| 32 | - name: enabled |
| 33 | kind: bool |
| 34 | default: true |
| 35 | doc: | |
| 36 | Enabled indicates whether to not retry sending batches in case of export failure. |
| 37 | - name: initial_interval |
| 38 | type: time.Duration |
| 39 | kind: int64 |
| 40 | default: 5s |
| 41 | doc: | |
| 42 | InitialInterval the time to wait after the first failure before retrying. |
| 43 | - name: randomization_factor |
| 44 | kind: float64 |
| 45 | default: 0.5 |
| 46 | doc: | |
| 47 | RandomizationFactor is a random factor used to calculate next backoffs. |
| 48 | Randomized interval = RetryInterval * (1 ± RandomizationFactor) |
| 49 | - name: multiplier |
| 50 | kind: float64 |
| 51 | default: 1.5 |
| 52 | doc: | |
| 53 | Multiplier is the value multiplied by the backoff interval bounds |
| 54 | - name: max_interval |
| 55 | type: time.Duration |
| 56 | kind: int64 |
| 57 | default: 30s |
| 58 | doc: | |
| 59 | MaxInterval is the upper bound on backoff interval. Once this value is reached the delay between |
| 60 | consecutive retries will always be `MaxInterval`. |
| 61 | - name: max_elapsed_time |
| 62 | type: time.Duration |
| 63 | kind: int64 |
| 64 | default: 5m0s |
| 65 | doc: | |
| 66 | MaxElapsedTime is the maximum amount of time (including retries) spent trying to send a request/batch. |
| 67 | Once this value is reached, the data is discarded. |
| 68 | - name: endpoint |
| 69 | kind: string |
| 70 | doc: | |
| 71 | The target to which the exporter is going to send traces, metrics, logs or |
| 72 | profiles using the gRPC protocol. The valid syntax is described at |
| 73 | https://github.com/grpc/grpc/blob/master/doc/naming.md. |
| 74 | - name: compression |
| 75 | kind: string |
| 76 | doc: | |
| 77 | The compression key for supported compression types within |
| 78 | collector. Supports `gzip`, `snappy` and `zstd`. |
| 79 | - name: ca_file |
| 80 | kind: string |
| 81 | doc: | |
| 82 | Path to the CA cert. For a client this verifies the server certificate. |
| 83 | For a server this verifies client certificates. If empty uses system root CA. |
| 84 | (optional) |
| 85 | - name: cert_file |
| 86 | kind: string |
| 87 | doc: | |
| 88 | Path to the TLS cert to use for TLS required connections. (optional) |
| 89 | - name: key_file |
| 90 | kind: string |
| 91 | doc: | |
| 92 | Path to the TLS key to use for TLS required connections. (optional) |
| 93 | - name: insecure |
| 94 | kind: bool |
| 95 | doc: | |
| 96 | In gRPC when set to true, this is used to disable the client transport security. |
| 97 | See https://godoc.org/google.golang.org/grpc#WithInsecure. |
| 98 | In HTTP, this disables verifying the server's certificate chain and host name |
| 99 | (InsecureSkipVerify in the tls Config). Please refer to |
| 100 | https://godoc.org/crypto/tls#Config for more information. |
| 101 | (optional, default false) |
| 102 | - name: server_name_override |
| 103 | kind: string |
| 104 | doc: | |
| 105 | ServerName requested by client for virtual hosting. |
| 106 | This sets the ServerName in the TLSConfig. Please refer to |
| 107 | https://godoc.org/crypto/tls#Config for more information. (optional) |
| 108 | - name: keepalive |
| 109 | type: '*configgrpc.KeepaliveClientConfig' |
| 110 | kind: ptr |
| 111 | doc: | |
| 112 | The keepalive parameters for gRPC client. See grpc.WithKeepaliveParams |
| 113 | (https://godoc.org/google.golang.org/grpc#WithKeepaliveParams). |
| 114 | fields: |
| 115 | - name: time |
| 116 | type: time.Duration |
| 117 | kind: int64 |
| 118 | - name: timeout |
| 119 | type: time.Duration |
| 120 | kind: int64 |
| 121 | - name: permit_without_stream |
| 122 | kind: bool |
| 123 | - name: read_buffer_size |
| 124 | kind: int |
| 125 | doc: | |
| 126 | ReadBufferSize for gRPC client. See grpc.WithReadBufferSize |
| 127 | (https://godoc.org/google.golang.org/grpc#WithReadBufferSize). |
| 128 | - name: write_buffer_size |
| 129 | kind: int |
| 130 | default: 524288 |
| 131 | doc: | |
| 132 | WriteBufferSize for gRPC gRPC. See grpc.WithWriteBufferSize |
| 133 | (https://godoc.org/google.golang.org/grpc#WithWriteBufferSize). |
| 134 | - name: wait_for_ready |
| 135 | kind: bool |
| 136 | doc: | |
| 137 | WaitForReady parameter configures client to wait for ready state before sending data. |
| 138 | (https://github.com/grpc/grpc/blob/master/doc/wait-for-ready.md) |
| 139 | - name: headers |
| 140 | type: map[string]string |
| 141 | kind: map |
| 142 | doc: | |
| 143 | The headers associated with gRPC requests. |
| 144 | - name: per_rpc_auth |
| 145 | type: '*configgrpc.PerRPCAuthConfig' |
| 146 | kind: ptr |
| 147 | doc: | |
| 148 | PerRPCAuth parameter configures the client to send authentication data on a per-RPC basis. |
| 149 | fields: |
| 150 | - name: type |
| 151 | kind: string |
| 152 | doc: | |
| 153 | AuthType represents the authentication type to use. Currently, only 'bearer' is supported. |
| 154 | - name: bearer_token |
| 155 | kind: string |
| 156 | doc: | |
| 157 | BearerToken specifies the bearer token to use for every RPC. |
| 158 | - name: balancer_name |
| 159 | kind: string |
| 160 | doc: | |
| 161 | Sets the balancer in grpclb_policy to discover the servers. Default is pick_first |
| 162 | https://github.com/grpc/grpc-go/blob/master/examples/features/load_balancing/README.md |