Skip to content

Commit

Permalink
add lsminterval 60min aggregations
Browse files Browse the repository at this point in the history
  • Loading branch information
rogercoll committed Feb 24, 2025
1 parent 53fb4c9 commit e90171e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion kubernetes/elastic-helm/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ opentelemetry-collector:
mode: otel
processors:
batch: {}
batch/aggs:
send_batch_size: 16384 # 2x the default
timeout: 10s
resource:
attributes:
- key: deployment.environment
Expand Down Expand Up @@ -365,6 +368,11 @@ opentelemetry-collector:
- set(resource.attributes["metricset.interval"], "10m")
- set(attributes["data_stream.dataset"], Concat([attributes["metricset.name"], "10m"], "."))
- set(attributes["processor.event"], "metric")
- duration: 60m
statements:
- set(resource.attributes["metricset.interval"], "60m")
- set(attributes["data_stream.dataset"], Concat([attributes["metricset.name"], "60m"], "."))
- set(attributes["processor.event"], "metric")
# [Resource Detection Processor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/resourcedetectionprocessor)
resourcedetection/eks:
detectors: [env, eks] # Detects resources from environment variables and EKS (Elastic Kubernetes Service).
Expand Down Expand Up @@ -551,7 +559,7 @@ opentelemetry-collector:
receivers:
- signaltometrics
processors:
- batch
- batch/aggs
- lsminterval
exporters:
- debug
Expand Down
10 changes: 9 additions & 1 deletion src/otel-collector/otelcol-elastic-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ receivers:
match_type: strict

processors:
batch/aggs:
send_batch_size: 16384 # 2x the default
timeout: 10s
batch:
elasticinframetrics:
add_system_metrics: true
Expand Down Expand Up @@ -177,6 +180,11 @@ processors:
- set(resource.attributes["metricset.interval"], "10m")
- set(attributes["data_stream.dataset"], Concat([attributes["metricset.name"], "10m"], "."))
- set(attributes["processor.event"], "metric")
- duration: 60m
statements:
- set(resource.attributes["metricset.interval"], "60m")
- set(attributes["data_stream.dataset"], Concat([attributes["metricset.name"], "60m"], "."))
- set(attributes["processor.event"], "metric")

connectors:
spanmetrics:
Expand Down Expand Up @@ -476,7 +484,7 @@ service:
receivers:
- signaltometrics
processors:
- batch
- batch/aggs
- lsminterval
exporters:
- debug
Expand Down

0 comments on commit e90171e

Please # to comment.