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

Enable additional resource attributes for cluster metrics #547

Merged
merged 1 commit into from
Nov 4, 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
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
Loading