Skip to content

Commit

Permalink
[otel-integration] feat support host.id from system resource detector
Browse files Browse the repository at this point in the history
  • Loading branch information
povilasv committed Aug 21, 2023
1 parent bab14b4 commit 2c157a5
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
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

0 comments on commit 2c157a5

Please sign in to comment.