2020-05-18 18:55:58 +00:00
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: ServiceMonitor
|
|
|
|
metadata:
|
|
|
|
name: kubelet
|
|
|
|
labels:
|
2021-08-26 16:42:32 +00:00
|
|
|
monitor: prometheus
|
2020-05-18 18:55:58 +00:00
|
|
|
spec:
|
|
|
|
namespaceSelector:
|
|
|
|
matchNames:
|
|
|
|
- kube-system
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
k8s-app: kubelet
|
|
|
|
endpoints:
|
|
|
|
- port: https-metrics
|
|
|
|
scheme: https
|
|
|
|
path: /metrics
|
|
|
|
honorLabels: true
|
2021-09-06 16:40:08 +00:00
|
|
|
interval: 30s
|
2020-05-18 18:55:58 +00:00
|
|
|
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|
|
|
|
tlsConfig:
|
|
|
|
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
|
|
|
insecureSkipVerify: true
|
|
|
|
- port: https-metrics
|
|
|
|
scheme: https
|
|
|
|
path: /metrics/cadvisor
|
|
|
|
honorLabels: true
|
2021-09-06 16:40:08 +00:00
|
|
|
interval: 10s
|
2020-05-18 18:55:58 +00:00
|
|
|
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|
|
|
|
tlsConfig:
|
|
|
|
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
2021-09-06 16:40:08 +00:00
|
|
|
insecureSkipVerify: true
|