Skip to content

Commit

Permalink
feat(compression): Make the compression type configurable, default: zstd
Browse files Browse the repository at this point in the history
  • Loading branch information
rnishtala-sumo committed May 14, 2024
1 parent 537978b commit 661245d
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions .changelog/3704.added.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat(compression): Make the compression type configurable, default: zstd
2 changes: 2 additions & 0 deletions deploy/helm/sumologic/conf/events/otelcol/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ exporters:
sumologic:
client: {{ include "sumologic.sumo_client" . }}
endpoint: {{ include "sumologic.events.exporter.endpoint" . }}
compression: {{ .Values.metadata.compression }}
log_format: {{ include "sumologic.events.exporter.format" . }}
sending_queue:
enabled: true
Expand All @@ -18,6 +19,7 @@ exporters:
sumologic/sumologic-mock:
client: {{ include "sumologic.sumo_client" . }}
endpoint: {{ include "sumologic-mock.receiver-endpoint" . }}
compression: {{ .Values.metadata.compression }}
log_format: {{ include "sumologic.events.exporter.format" . }}
sending_queue:
enabled: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
exporters:
otlphttp:
endpoint: http://${LOGS_METADATA_SVC}.${NAMESPACE}.svc.{{ .Values.sumologic.clusterDNSDomain }}.:4318
compression: {{ .Values.metadata.compression }}
sending_queue:
queue_size: 10
# this improves load balancing at the cost of more network traffic
Expand Down
14 changes: 14 additions & 0 deletions deploy/helm/sumologic/conf/logs/otelcol/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ exporters:
{{ if .Values.sumologic.logs.container.enabled }}
sumologic/containers:
endpoint: ${SUMO_ENDPOINT_DEFAULT_LOGS_SOURCE}
compression: {{ .Values.metadata.compression }}
json_logs:
add_timestamp: false
log_format: {{ include "logs.otelcol.container.exporter.format" . }}
sending_queue:
enabled: true
Expand All @@ -20,6 +23,9 @@ exporters:
{{- if eq (include "sumologic-mock.forward-logs-metadata" .) "true" }}
sumologic/sumologic-mock-containers:
endpoint: {{ include "sumologic-mock.receiver-endpoint" . }}
compression: {{ .Values.metadata.compression }}
json_logs:
add_timestamp: false
log_format: {{ include "logs.otelcol.container.exporter.format" . }}
sending_queue:
enabled: true
Expand All @@ -35,6 +41,9 @@ exporters:
{{ if .Values.sumologic.logs.systemd.enabled }}
sumologic/systemd:
endpoint: ${SUMO_ENDPOINT_DEFAULT_LOGS_SOURCE}
compression: {{ .Values.metadata.compression }}
json_logs:
add_timestamp: false
log_format: json
sending_queue:
enabled: true
Expand All @@ -47,6 +56,9 @@ exporters:
{{- if eq (include "sumologic-mock.forward-logs-metadata" .) "true" }}
sumologic/sumologic-mock-systemd:
endpoint: {{ include "sumologic-mock.receiver-endpoint" . }}
compression: {{ .Values.metadata.compression }}
json_logs:
add_timestamp: false
log_format: json
sending_queue:
enabled: true
Expand All @@ -63,6 +75,7 @@ exporters:
sumologic:
client: {{ include "sumologic.sumo_client" . }}
endpoint: ${SUMO_ENDPOINT_DEFAULT_OTLP_LOGS_SOURCE}
compression: {{ .Values.metadata.compression }}
log_format: otlp
sending_queue:
enabled: true
Expand All @@ -76,6 +89,7 @@ exporters:
sumologic/sumologic-mock:
client: {{ include "sumologic.sumo_client" . }}
endpoint: {{ include "sumologic-mock.receiver-endpoint" . }}
compression: {{ .Values.metadata.compression }}
log_format: otlp
sending_queue:
enabled: true
Expand Down
10 changes: 10 additions & 0 deletions deploy/helm/sumologic/conf/metrics/otelcol/exporters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ sumologic/sumologic-mock-default:
client: {{ include "sumologic.sumo_client" . }}
metric_format: {{ include "metrics.otelcol.exporter.format" . }}
endpoint: {{ include "sumologic-mock.receiver-endpoint" . }}
compression: {{ .Values.metadata.compression }}
## Sumo doesn't yet natively support OTLP Histograms
decompose_otlp_histograms: true
## Configuration for sending queue
Expand All @@ -29,6 +30,7 @@ sumologic/sumologic-mock-http:
client: {{ include "sumologic.sumo_client" . }}
metric_format: prometheus
endpoint: {{ include "sumologic-mock.receiver-endpoint" . }}
compression: {{ .Values.metadata.compression }}
sending_queue:
enabled: true
{{- if .Values.metadata.persistence.enabled }}
Expand All @@ -47,6 +49,7 @@ sumologic/default:
client: {{ include "sumologic.sumo_client" . }}
metric_format: {{ include "metrics.otelcol.exporter.format" . }}
endpoint: {{ include "metrics.otelcol.exporter.endpoint" . }}
compression: {{ .Values.metadata.compression }}
## Sumo doesn't yet natively support OTLP Histograms
decompose_otlp_histograms: true
## Configuration for sending queue
Expand All @@ -68,6 +71,7 @@ sumologic/apiserver:
client: {{ include "sumologic.sumo_client" . }}
metric_format: prometheus
endpoint: ${SUMO_ENDPOINT_APISERVER_METRICS_SOURCE}
compression: {{ .Values.metadata.compression }}
sending_queue:
enabled: true
{{- if .Values.metadata.persistence.enabled }}
Expand All @@ -82,6 +86,7 @@ sumologic/control_plane:
client: {{ include "sumologic.sumo_client" . }}
metric_format: prometheus
endpoint: ${SUMO_ENDPOINT_CONTROL_PLANE_METRICS_SOURCE}
compression: {{ .Values.metadata.compression }}
sending_queue:
enabled: true
{{- if .Values.metadata.persistence.enabled }}
Expand All @@ -96,6 +101,7 @@ sumologic/controller:
client: {{ include "sumologic.sumo_client" . }}
metric_format: prometheus
endpoint: ${SUMO_ENDPOINT_CONTROLLER_METRICS_SOURCE}
compression: {{ .Values.metadata.compression }}
sending_queue:
enabled: true
{{- if .Values.metadata.persistence.enabled }}
Expand All @@ -110,6 +116,7 @@ sumologic/kubelet:
client: {{ include "sumologic.sumo_client" . }}
metric_format: prometheus
endpoint: ${SUMO_ENDPOINT_KUBELET_METRICS_SOURCE}
compression: {{ .Values.metadata.compression }}
sending_queue:
enabled: true
{{- if .Values.metadata.persistence.enabled }}
Expand All @@ -124,6 +131,7 @@ sumologic/node:
client: {{ include "sumologic.sumo_client" . }}
metric_format: prometheus
endpoint: ${SUMO_ENDPOINT_NODE_METRICS_SOURCE}
compression: {{ .Values.metadata.compression }}
sending_queue:
enabled: true
{{- if .Values.metadata.persistence.enabled }}
Expand All @@ -138,6 +146,7 @@ sumologic/scheduler:
client: {{ include "sumologic.sumo_client" . }}
metric_format: prometheus
endpoint: ${SUMO_ENDPOINT_SCHEDULER_METRICS_SOURCE}
compression: {{ .Values.metadata.compression }}
sending_queue:
enabled: true
{{- if .Values.metadata.persistence.enabled }}
Expand All @@ -152,6 +161,7 @@ sumologic/state:
client: {{ include "sumologic.sumo_client" . }}
metric_format: prometheus
endpoint: ${SUMO_ENDPOINT_STATE_METRICS_SOURCE}
compression: {{ .Values.metadata.compression }}
sending_queue:
enabled: true
{{- if .Values.metadata.persistence.enabled }}
Expand Down
3 changes: 3 additions & 0 deletions deploy/helm/sumologic/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,9 @@ metadata:
size: 10Gi
## Add custom labels to all otelcol statefulset PVC (logs and metrics)
pvcLabels: {}

## Compression for logs, metrics and events:
compression: zstd

## Configure metrics pipeline.
## This section affects only otelcol provider.
Expand Down

0 comments on commit 661245d

Please sign in to comment.