Skip to content
Open
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: 1 addition & 1 deletion charts/otel-collector/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: otel-collector
description: Workflows otel-collector
type: application
version: 0.1.2
version: 0.1.3
dependencies:
- name: opentelemetry-collector
repository: https://open-telemetry.github.io/opentelemetry-helm-charts
Expand Down
9 changes: 9 additions & 0 deletions charts/otel-collector/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@ rules:
- apiGroups: [""]
resources: ["pods", "services", "endpoints"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["nodes", "namespaces", "replicationcontrollers", "resourcequotas"]
verbs: ["list", "watch"]
- apiGroups: ["apps"]
resources: ["deployments", "replicasets", "statefulsets", "daemonsets"]
verbs: ["list", "watch"]
- apiGroups: ["autoscaling"]
resources: ["horizontalpodautoscalers"]
verbs: ["list", "watch"]
12 changes: 12 additions & 0 deletions charts/otel-collector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ opentelemetry-collector:
presets:
kubernetesAttributes:
enabled: true
clusterMetrics:
enabled: true
ports:
prometheus:
enabled: true
Expand Down Expand Up @@ -70,6 +72,15 @@ opentelemetry-collector:
- sources:
- from: connection
receivers:
k8s_cluster:
node_condition_to_report: [Ready, MemoryPressure, DiskPressure]
allocatable_types_to_report: [cpu, memory, ephemerl-storage, pods]
collection_interval: 30s
metrics:
k8s.node.condition:
enabled: true
k8s.pod.status_reason:
enabled: true
prometheus:
config:
scrape_configs:
Expand Down Expand Up @@ -145,6 +156,7 @@ opentelemetry-collector:
pipelines:
metrics:
receivers:
- k8s_cluster
- prometheus
- otlp
processors:
Expand Down