Skip to content

Commit 415fa29

Browse files
committed
Add config for sample_percent
1 parent e791183 commit 415fa29

5 files changed

Lines changed: 16 additions & 2 deletions

File tree

charts/lightstepsatellite/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.14
2+
3+
* Add `lightstep.sample_percent` for configuring sample percentage from the microsatellite. Note this can also be configured through the Lightstep API, and the API takes precedence.
4+
15
## 2.0.13
26

37
* Bug fix for OTLP/HTTP responses. This was a latent bug that surfaced with partial success responses introduced in OTLP v0.19. This will fix client errors such as: `proto: cannot parse invalid wire-format data`

charts/lightstepsatellite/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v1
22
name: lightstep
3-
version: 2.0.13
3+
version: 2.0.14
44
appVersion: "2022-10-03_20-16-42Z"
55
description: Lightstep microsatellite to collect telemetry data.
66
home: https://lightstep.com/

charts/lightstepsatellite/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# lightstep
22

3-
![Version: 2.0.13](https://img.shields.io/badge/Version-2.0.13-informational?style=flat-square) ![AppVersion: 2022-10-03_20-16-42Z](https://img.shields.io/badge/AppVersion-2022--10--03_20--16--42Z-informational?style=flat-square)
3+
![Version: 2.0.14](https://img.shields.io/badge/Version-2.0.14-informational?style=flat-square) ![AppVersion: 2022-10-03_20-16-42Z](https://img.shields.io/badge/AppVersion-2022--10--03_20--16--42Z-informational?style=flat-square)
44

55
Lightstep microsatellite to collect telemetry data.
66

@@ -39,6 +39,7 @@ Lightstep microsatellite to collect telemetry data.
3939
| lightstep.max_msg_size_bytes | int | `0` | Configure max gRPC receive message size in bytes. https://pkg.go.dev/google.golang.org/grpc#MaxRecvMsgSize Defaults to the library default of 4MiB if falsy. |
4040
| lightstep.plain_port | int | `8383` | |
4141
| lightstep.project_name | string | `""` | REQUIRED if `lightstep.disable_access_token_checking` is `true` |
42+
| lightstep.sample_percent | int | `0` | Configure sampling by percentage. https://docs.lightstep.com/docs/micro-satellite-configuration-parameters#sample_percent Defaults to 0, which means unconfigured here. |
4243
| lightstep.satelliteKey | string | `""` | REQUIRED: your Satellite Key - if not set, `lightstep.collector_satellite_key_secret_name` and `lightstep.collector_satellite_key_secret_key` must be set |
4344
| lightstep.secure_port | int | `9393` | |
4445
| lightstep.tls_cert_prefix | string | `nil` | |

charts/lightstepsatellite/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ spec:
120120
- name: COLLECTOR_MAX_MSG_SIZE_BYTES
121121
value: {{ .Values.lightstep.max_msg_size_bytes | quote }}
122122
{{ end }}
123+
{{- if .Values.lightstep.sample_percent }}
124+
- name: COLLECTOR_SAMPLE_PERCENT
125+
value: {{ .Values.lightstep.sample_percent | quote }}
126+
{{- end }}
123127
ports:
124128
- containerPort: {{ .Values.lightstep.diagnostic_port }}
125129
name: diagnostics

charts/lightstepsatellite/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ lightstep:
121121
# https://pkg.go.dev/google.golang.org/grpc#MaxRecvMsgSize
122122
# Defaults to the library default of 4MiB if falsy.
123123
max_msg_size_bytes: 0
124+
# -- Configure sampling by percentage.
125+
# https://docs.lightstep.com/docs/micro-satellite-configuration-parameters#sample_percent
126+
# Defaults to 0, which means unconfigured here.
127+
sample_percent: 0
128+
124129

125130
# Recommended resources would be 2Gi memory and 2 cpu
126131
resources:

0 commit comments

Comments
 (0)