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] feat support host.id from system resource detector #280

Merged
merged 1 commit into from
Aug 21, 2023
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
4 changes: 4 additions & 0 deletions otel-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## OpenTelemtry-Integration

### v0.0.12 / 2023-08-21

* [FEATURE] Support host.id from system resource detector.

### v0.0.11 / 2023-08-18

* [CHORE] Upgrading upstream chart. (v0.71.0).
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.11
version: 0.0.12
keywords:
- OpenTelemetry Collector
- OpenTelemetry Agent
Expand Down
21 changes: 21 additions & 0 deletions otel-integration/k8s-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@ opentelemetry-agent:
enabled: true
mode: daemonset
fullnameOverride: coralogix-opentelemetry-agent
extraVolumes:
- name: etcmachineid
hostPath:
path: /etc/machine-id
- name: varlibdbusmachineid
hostPath:
path: /var/lib/dbus/machine-id

extraVolumeMounts:
- mountPath: /etc/machine-id
mountPropagation: HostToContainer
name: etcmachineid
readOnly: true
- mountPath: /var/lib/dbus/machine-id
mountPropagation: HostToContainer
name: varlibdbusmachineid
readOnly: true
extraEnvs:
- name: CORALOGIX_PRIVATE_KEY
valueFrom:
Expand Down Expand Up @@ -100,6 +117,10 @@ opentelemetry-agent:
detectors: ["system", "env"]
timeout: 2s
override: false
system:
resource_attributes:
host.id:
enabled: true
resourcedetection/region:
detectors: ["gcp", "ec2"]
timeout: 2s
Expand Down
Loading