Skip to content

Commit

Permalink
[otel-integration] Add cluster and cloud attributes to gateway metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv committed Jun 26, 2024
1 parent 1f986a3 commit 497c7c4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
3 changes: 3 additions & 0 deletions otel-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## OpenTelemtry-Integration

### v0.0.83 / 2024-06-26
- [Fix] Add cluster.name and resource detection processors to gateway-collector metrics

### v0.0.82 / 2024-06-26
- [Fix] Add k8s labels to gateway-collector metrics

Expand Down
2 changes: 1 addition & 1 deletion otel-integration/k8s-helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: otel-integration
description: OpenTelemetry Integration
version: 0.0.82
version: 0.0.83
keywords:
- OpenTelemetry Collector
- OpenTelemetry Agent
Expand Down
20 changes: 19 additions & 1 deletion otel-integration/k8s-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ global:
defaultSubsystemName: "integration"
logLevel: "warn"
collectionInterval: "30s"
version: "0.0.82"
version: "0.0.83"

extensions:
kubernetesDashboard:
Expand Down Expand Up @@ -667,6 +667,10 @@ opentelemetry-gateway:
presets:
kubernetesAttributes:
enabled: true
metadata:
enabled: true
clusterName: "{{.Values.global.clusterName}}"
integrationName: "coralogix-integration-helm"

config:
extensions:
Expand Down Expand Up @@ -715,6 +719,18 @@ opentelemetry-gateway:
- "k8s.job.name"
- "k8s.pod.name"
- "k8s.node.name"
resourcedetection/env:
detectors: ["system", "env"]
timeout: 2s
override: false
system:
resource_attributes:
host.id:
enabled: true
resourcedetection/region:
detectors: ["gcp", "ec2"]
timeout: 2s
override: true
batch:
send_batch_size: 1024
send_batch_max_size: 2048
Expand Down Expand Up @@ -759,6 +775,8 @@ opentelemetry-gateway:
processors:
- transform/prometheus
- k8sattributes
- resourcedetection/env
- resourcedetection/region
- memory_limiter
- batch
receivers:
Expand Down

0 comments on commit 497c7c4

Please sign in to comment.