2018-03-02 01:03:53 +01:00
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: ServiceMonitor
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: kubelet
|
2018-12-12 18:18:00 +01:00
|
|
|
name: kubelet
|
|
|
|
namespace: monitoring
|
2018-03-02 01:03:53 +01:00
|
|
|
spec:
|
|
|
|
endpoints:
|
2018-12-12 18:18:00 +01:00
|
|
|
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|
2019-08-20 21:35:09 +02:00
|
|
|
honorLabels: true
|
2018-03-02 01:03:53 +01:00
|
|
|
interval: 30s
|
2019-08-20 21:35:09 +02:00
|
|
|
port: https-metrics
|
|
|
|
scheme: https
|
|
|
|
tlsConfig:
|
|
|
|
insecureSkipVerify: true
|
2018-12-12 18:18:00 +01:00
|
|
|
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|
2018-03-02 01:03:53 +01:00
|
|
|
honorLabels: true
|
2018-12-12 18:18:00 +01:00
|
|
|
interval: 30s
|
2019-08-20 21:35:09 +02:00
|
|
|
metricRelabelings:
|
|
|
|
- action: drop
|
|
|
|
regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
|
|
|
|
sourceLabels:
|
|
|
|
- __name__
|
2018-12-12 18:18:00 +01:00
|
|
|
path: /metrics/cadvisor
|
2019-08-20 21:35:09 +02:00
|
|
|
port: https-metrics
|
|
|
|
scheme: https
|
|
|
|
tlsConfig:
|
|
|
|
insecureSkipVerify: true
|
2018-12-12 18:18:00 +01:00
|
|
|
jobLabel: k8s-app
|
2018-03-02 01:03:53 +01:00
|
|
|
namespaceSelector:
|
|
|
|
matchNames:
|
|
|
|
- kube-system
|
2018-12-12 18:18:00 +01:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
k8s-app: kubelet
|