mirror of
https://github.com/zoriya/snow.git
synced 2026-08-15 18:44:14 +00:00
kubeletstats
This commit is contained in:
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user