Skip to content

Commit

Permalink
Add the ability to set buffer sizes for the tempo service
Browse files Browse the repository at this point in the history
Signed-off-by: Pete Wall <[email protected]>
  • Loading branch information
petewall committed Sep 19, 2024
1 parent bacf05d commit 4e2d328
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/k8s-monitoring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ The Prometheus and Loki services may be hosted on the same cluster, or remotely
| externalServices.tempo.host | string | `""` | Tempo host where traces will be sent |
| externalServices.tempo.hostKey | string | `"host"` | The key for the host property in the secret |
| externalServices.tempo.protocol | string | `"otlp"` | The type of server protocol for writing metrics Options: * "otlp" will use OTLP * "otlphttp" will use OTLP HTTP |
| externalServices.tempo.readBufferSize | string | `""` | Size of the read buffer the gRPC client to use for reading server responses. |
| externalServices.tempo.searchEndpoint | string | `"/api/search"` | Tempo search endpoint. |
| externalServices.tempo.secret.create | bool | `true` | Should this Helm chart create the secret. If false, you must define the name and namespace values. |
| externalServices.tempo.secret.name | string | `""` | The name of the secret. |
Expand All @@ -375,6 +376,7 @@ The Prometheus and Loki services may be hosted on the same cluster, or remotely
| externalServices.tempo.tenantIdKey | string | `"tenantId"` | The key for the tenant ID property in the secret |
| externalServices.tempo.tls | object | `{}` | [TLS settings](https://grafana.com/docs/alloy/latest/reference/components/otelcol.exporter.otlp/#tls-block) to configure for the traces service. |
| externalServices.tempo.tlsOptions | string | `""` | Define the [TLS block](https://grafana.com/docs/alloy/latest/reference/components/otelcol.exporter.otlp/#tls-block). Example: `tlsOptions: insecure = true` This option will be deprecated and removed soon. Please switch to `tls` and use yaml format. |
| externalServices.tempo.writeBufferSize | string | `""` | Size of the write buffer the gRPC client to use for writing requests. |

### Metrics Global

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ otelcol.exporter.otlphttp "traces_service" {
{{ $key | quote }} = {{ $value }},
{{- end }}
}
{{- if .readBufferSize }}
read_buffer_size = {{ .readBufferSize | quote }}
{{- end }}
{{- if .writeBufferSize }}
write_buffer_size = {{ .writeBufferSize | quote }}
{{- end }}
{{- if .tlsOptions }}
tls {
{{ .tlsOptions | indent 6 }}
Expand Down
8 changes: 8 additions & 0 deletions charts/k8s-monitoring/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,14 @@ externalServices:
# @section -- External Services (Tempo)
tlsOptions: ""

# -- Size of the read buffer the gRPC client to use for reading server responses.
# @section -- External Services (Tempo)
readBufferSize: ""

# -- Size of the write buffer the gRPC client to use for writing requests.
# @section -- External Services (Tempo)
writeBufferSize: ""

# Connection information for Grafana Pyroscope
pyroscope:
# -- Pyroscope host where profiles will be sent
Expand Down
1 change: 1 addition & 0 deletions examples/traces-enabled/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ externalServices:
basicAuth:
username: 12345
password: "It's a secret to everyone"
writeBufferSize: "1024KiB"

traces:
enabled: true
Expand Down
1 change: 1 addition & 0 deletions examples/traces-enabled/metrics.alloy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions examples/traces-enabled/output.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions examples/traces-enabled/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ externalServices:
basicAuth:
username: 12345
password: "It's a secret to everyone"
writeBufferSize: "1024KiB"

traces:
enabled: true
Expand Down

0 comments on commit 4e2d328

Please sign in to comment.