Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[otel-integration] Add cluster and cloud attributes to gateway metrics #422

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading