From f487f5724d07ebbe9cf6925d452ce792b6099604 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Fri, 20 Dec 2024 12:03:26 +0100 Subject: [PATCH] feat(kubelet): Add metrics --- manifests/kubelet-servicemonitor.yaml | 12 ++++++++++++ manifests/kustomization.yaml | 1 + 2 files changed, 13 insertions(+) create mode 100644 manifests/kubelet-servicemonitor.yaml diff --git a/manifests/kubelet-servicemonitor.yaml b/manifests/kubelet-servicemonitor.yaml new file mode 100644 index 0000000..3b827d5 --- /dev/null +++ b/manifests/kubelet-servicemonitor.yaml @@ -0,0 +1,12 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: kubelet-metrics + namespace: kube-system +spec: + selector: + matchLabels: + app.kubernetes.io/name: kubelet + endpoints: + - port: http-metrics + path: /metrics diff --git a/manifests/kustomization.yaml b/manifests/kustomization.yaml index 688c2c3..22eb990 100644 --- a/manifests/kustomization.yaml +++ b/manifests/kustomization.yaml @@ -11,3 +11,4 @@ resources: - grafana - node-exporter - kube-state-metrics + - kubelet-servicemonitor.yaml