Skip to content

Commit aef05b0

Browse files
authored
Merge pull request #44 from lightstep/more-hostmetrics
Adjust chart's default values and the hostmetrics receiver
2 parents 6eb50d6 + 64865db commit aef05b0

File tree

3 files changed

+32
-19
lines changed

3 files changed

+32
-19
lines changed

charts/otel-cloud-stack/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: "0.2.2"
18+
version: "0.2.3"
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/otel-cloud-stack/templates/collector.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ spec:
115115
apiVersion: v1
116116
fieldPath: status.podIP
117117
- name: OTEL_RESOURCE_ATTRIBUTES
118-
value: "k8s.cluster.name={{ $collector.clusterName | default "unknown" }}"
118+
{{- if (eq $collector.mode "daemonset") }}
119+
value: "k8s.cluster.name={{ $collector.clusterName | default $.Values.clusterName }},k8s.node.name=$(K8S_NODE_NAME)"
120+
{{- else }}
121+
value: "k8s.cluster.name={{ $collector.clusterName | default $.Values.clusterName }}"
122+
{{- end }}
119123
config: |
120124
exporters:
121125
{{- toYaml $collector.config.exporters | nindent 6 }}

charts/otel-cloud-stack/values.yaml

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
extraEnvs: []
22
debug: false
3+
clusterName: "unknown"
34

45
## Auto-Instrumentation resource to be installed in the cluster
56
## Can be used by setting the following:
@@ -39,7 +40,7 @@ autoinstrumentation:
3940
daemonCollector:
4041
name: daemon
4142
clusterName: ""
42-
image: otel/opentelemetry-collector-contrib:0.83.0
43+
image: otel/opentelemetry-collector-contrib:0.85.0
4344
enabled: true
4445
mode: daemonset
4546
mountHostFS: true
@@ -51,10 +52,10 @@ daemonCollector:
5152
name: otel-collector-secret
5253
resources:
5354
limits:
54-
cpu: 250m
55-
memory: 500Mi
55+
cpu: 100m
56+
memory: 250Mi
5657
requests:
57-
cpu: 250m
58+
cpu: 100m
5859
memory: 128Mi
5960
scrape_configs_file: "daemon_scrape_configs.yaml"
6061
config:
@@ -84,9 +85,15 @@ daemonCollector:
8485
root_path: /hostfs
8586
scrapers:
8687
cpu:
87-
disk:
88-
load:
88+
metrics:
89+
system.cpu.utilization:
90+
enabled: true
91+
disk: {}
92+
load: {}
8993
filesystem:
94+
metrics:
95+
system.filesystem.utilization:
96+
enabled: true
9097
exclude_mount_points:
9198
match_type: regexp
9299
mount_points:
@@ -124,10 +131,13 @@ daemonCollector:
124131
- sysfs
125132
- tracefs
126133
memory:
134+
metrics:
135+
system.memory.utilization:
136+
enabled: true
127137
# paging:
128138
# processes:
129139
# process:
130-
network:
140+
network: {}
131141
processors:
132142
resourcedetection/env:
133143
detectors: [env]
@@ -230,17 +240,17 @@ daemonCollector:
230240
clusterCollector:
231241
name: cluster-stats
232242
clusterName: ""
233-
image: otel/opentelemetry-collector-contrib:0.83.0
243+
image: otel/opentelemetry-collector-contrib:0.85.0
234244
replicas: 1
235245
mode: deployment
236246
enabled: true
237-
mountHostFS: true
247+
mountHostFS: false
238248
resources:
239249
limits:
240-
cpu: 250m
250+
cpu: 100m
241251
memory: 500Mi
242252
requests:
243-
cpu: 250m
253+
cpu: 100m
244254
memory: 500Mi
245255
env:
246256
- name: LS_TOKEN
@@ -350,7 +360,7 @@ tracesCollector:
350360
enabled: false
351361
name: traces
352362
clusterName: ""
353-
image: otel/opentelemetry-collector-contrib:0.83.0
363+
image: otel/opentelemetry-collector-contrib:0.85.0
354364
mode: deployment
355365
hpa:
356366
minReplicas: 1
@@ -464,15 +474,15 @@ logsCollector:
464474
enabled: false
465475
name: logs
466476
clusterName: ""
467-
image: otel/opentelemetry-collector-contrib:0.83.0
477+
image: otel/opentelemetry-collector-contrib:0.85.0
468478
mode: daemonset
469479
resources:
470480
limits:
471-
cpu: 250m
481+
cpu: 100m
472482
memory: 250Mi
473483
requests:
474-
cpu: 250m
475-
memory: 250Mi
484+
cpu: 100m
485+
memory: 128Mi
476486
env:
477487
- name: LS_TOKEN
478488
valueFrom:
@@ -620,7 +630,6 @@ logsCollector:
620630
receivers: [k8s_events, filelog]
621631
processors:
622632
- memory_limiter
623-
- resource
624633
- resourcedetection/env
625634
- k8sattributes
626635
- batch

0 commit comments

Comments
 (0)