kubeletstats

This commit is contained in:
GitBluub
2026-01-06 20:52:18 +01:00
parent f5a984234a
commit 0c59a98737
2 changed files with 13 additions and 6 deletions
+3
View File
@@ -9,6 +9,9 @@ rules:
- apiGroups: ["apps"]
resources: ["deployments", "statefulsets", "daemonsets", "replicasets"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["nodes/stats"]
verbs: ["get", "watch", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
+10 -6
View File
@@ -4,11 +4,6 @@ metadata:
name: otel
spec:
mode: daemonset
presets:
kubeletMetrics:
enabled: true
hostMetrics:
enabled: true
env:
- name: CLICKHOUSE_PASSWORD
valueFrom:
@@ -54,6 +49,15 @@ spec:
endpoint: 0.0.0.0:4318
auth:
authenticator: basicauth
kubeletstats:
collection_interval: 10s
auth_type: "serviceAccount"
endpoint: "${env:K8S_NODE_NAME}:10250"
insecure_skip_verify: true
metric_groups:
- node
- pod
- container
processors:
memory_limiter:
@@ -112,7 +116,7 @@ spec:
processors: [k8sattributes, memory_limiter, batch]
exporters: [clickhouse]
metrics:
receivers: [otlp, hostmetrics]
receivers: [otlp, hostmetrics, kubeletstats]
processors: [k8sattributes, memory_limiter, batch]
exporters: [clickhouse]
logs: