-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(metrics): add ability to use OTLP source
- Loading branch information
Showing
31 changed files
with
495 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
feat(metrics): add ability to use OTLP source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 45 additions & 39 deletions
84
deploy/helm/sumologic/conf/metrics/otelcol/exporters.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,112 @@ | ||
sumologic/apiserver: | ||
endpoint: ${SUMO_ENDPOINT_APISERVER_METRICS_SOURCE} | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
metric_format: prometheus | ||
## Configuration for Sumo Logic Exporter | ||
## ref: https://github.com/SumoLogic/sumologic-otel-collector/blob/main/pkg/exporter/sumologicexporter | ||
sumologic/default: | ||
metric_format: {{ include "metrics.otelcol.exporter.format" . }} | ||
endpoint: {{ include "metrics.otelcol.exporter.endpoint" . }} | ||
## Configuration for sending queue | ||
## ref: https://github.com/open-telemetry/opentelemetry-collector/tree/release/v0.37.x/exporter/exporterhelper#configuration | ||
sending_queue: | ||
enabled: true | ||
num_consumers: 10 | ||
queue_size: 10_000 | ||
{{- if .Values.metadata.persistence.enabled }} | ||
storage: file_storage | ||
{{- end }} | ||
num_consumers: 10 | ||
## setting queue_size a high number, so we always use maximum space of the storage | ||
## minimal alert non-triggering queue size (if only one exporter is being used): 10GB/16MB = 640 | ||
queue_size: 10_000 | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
## set timeout to 30s due to big requests | ||
timeout: 30s | ||
sumologic/control_plane: | ||
endpoint: ${SUMO_ENDPOINT_CONTROL_PLANE_METRICS_SOURCE} | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
{{- if eq .Values.sumologic.metrics.sourceType "http" }} | ||
sumologic/apiserver: | ||
metric_format: prometheus | ||
endpoint: ${SUMO_ENDPOINT_APISERVER_METRICS_SOURCE} | ||
sending_queue: | ||
enabled: true | ||
num_consumers: 10 | ||
queue_size: 10_000 | ||
{{- if .Values.metadata.persistence.enabled }} | ||
storage: file_storage | ||
{{- end }} | ||
num_consumers: 10 | ||
queue_size: 10_000 | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
## set timeout to 30s due to big requests | ||
timeout: 30s | ||
sumologic/controller: | ||
endpoint: ${SUMO_ENDPOINT_CONTROLLER_METRICS_SOURCE} | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
sumologic/control_plane: | ||
metric_format: prometheus | ||
endpoint: ${SUMO_ENDPOINT_CONTROL_PLANE_METRICS_SOURCE} | ||
sending_queue: | ||
enabled: true | ||
num_consumers: 10 | ||
queue_size: 10_000 | ||
{{- if .Values.metadata.persistence.enabled }} | ||
storage: file_storage | ||
{{- end }} | ||
num_consumers: 10 | ||
queue_size: 10_000 | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
## set timeout to 30s due to big requests | ||
timeout: 30s | ||
sumologic/default: | ||
endpoint: ${SUMO_ENDPOINT_DEFAULT_METRICS_SOURCE} | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
sumologic/controller: | ||
metric_format: prometheus | ||
endpoint: ${SUMO_ENDPOINT_CONTROLLER_METRICS_SOURCE} | ||
sending_queue: | ||
enabled: true | ||
num_consumers: 10 | ||
## setting queue_size a high number, so we always use maximum space of the storage | ||
## minimal alert non-triggering queue size (if only one exporter is being used): 10GB/16MB = 640 | ||
queue_size: 10_000 | ||
{{- if .Values.metadata.persistence.enabled }} | ||
storage: file_storage | ||
{{- end }} | ||
num_consumers: 10 | ||
queue_size: 10_000 | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
## set timeout to 30s due to big requests | ||
timeout: 30s | ||
sumologic/kubelet: | ||
endpoint: ${SUMO_ENDPOINT_KUBELET_METRICS_SOURCE} | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
metric_format: prometheus | ||
endpoint: ${SUMO_ENDPOINT_KUBELET_METRICS_SOURCE} | ||
sending_queue: | ||
enabled: true | ||
num_consumers: 10 | ||
queue_size: 10_000 | ||
{{- if .Values.metadata.persistence.enabled }} | ||
storage: file_storage | ||
{{- end }} | ||
num_consumers: 10 | ||
queue_size: 10_000 | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
## set timeout to 30s due to big requests | ||
timeout: 30s | ||
sumologic/node: | ||
endpoint: ${SUMO_ENDPOINT_NODE_METRICS_SOURCE} | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
metric_format: prometheus | ||
endpoint: ${SUMO_ENDPOINT_NODE_METRICS_SOURCE} | ||
sending_queue: | ||
enabled: true | ||
num_consumers: 10 | ||
queue_size: 10_000 | ||
{{- if .Values.metadata.persistence.enabled }} | ||
storage: file_storage | ||
{{- end }} | ||
num_consumers: 10 | ||
queue_size: 10_000 | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
## set timeout to 30s due to big requests | ||
timeout: 30s | ||
sumologic/scheduler: | ||
endpoint: ${SUMO_ENDPOINT_SCHEDULER_METRICS_SOURCE} | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
metric_format: prometheus | ||
endpoint: ${SUMO_ENDPOINT_SCHEDULER_METRICS_SOURCE} | ||
sending_queue: | ||
enabled: true | ||
num_consumers: 10 | ||
queue_size: 10_000 | ||
{{- if .Values.metadata.persistence.enabled }} | ||
storage: file_storage | ||
{{- end }} | ||
num_consumers: 10 | ||
queue_size: 10_000 | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
## set timeout to 30s due to big requests | ||
timeout: 30s | ||
sumologic/state: | ||
endpoint: ${SUMO_ENDPOINT_STATE_METRICS_SOURCE} | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
metric_format: prometheus | ||
endpoint: ${SUMO_ENDPOINT_STATE_METRICS_SOURCE} | ||
sending_queue: | ||
enabled: true | ||
num_consumers: 10 | ||
queue_size: 10_000 | ||
{{- if .Values.metadata.persistence.enabled }} | ||
storage: file_storage | ||
{{- end }} | ||
num_consumers: 10 | ||
queue_size: 10_000 | ||
max_request_body_size: 16_777_216 # 16 MB before compression | ||
## set timeout to 30s due to big requests | ||
timeout: 30s | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
tests/helm/testdata/goldenfile/metadata_metrics_otc/custom.input.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
sumologic: | ||
metrics: | ||
sourceType: otlp |
Oops, something went wrong.