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