Skip to content

Commit

Permalink
Enable additional resource attributes for cluster metrics (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthccv authored Nov 4, 2024
1 parent 0a250ce commit 4c3c5c1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/k8s-infra/templates/_config.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ receivers:
{{- toYaml .Values.presets.clusterMetrics.allocatableTypesToReport | nindent 6 }}
metrics:
{{- toYaml .Values.presets.clusterMetrics.metrics | nindent 6 }}
resource_attributes:
{{- toYaml .Values.presets.clusterMetrics.resourceAttributes | nindent 6 }}
{{- end }}

{{- define "opentelemetry-collector.applyK8sEventsConfig" -}}
Expand Down
11 changes: 11 additions & 0 deletions charts/k8s-infra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,17 @@ presets:
clusterMetrics:
enabled: true
collectionInterval: 30s
resourceAttributes:
k8s.pod.qos_class:
enabled: true
k8s.kubelet.version:
enabled: true
container.runtime:
enabled: true
container.runtime.version:
enabled: true
k8s.container.status.last_terminated_reason:
enabled: true
nodeConditionsToReport:
- Ready
- MemoryPressure
Expand Down

0 comments on commit 4c3c5c1

Please sign in to comment.