github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/scripts/vagrant/provision/manifests/kube-prometheus/prometheus-serviceMonitorKubelet.yaml (about) 1 apiVersion: monitoring.coreos.com/v1 2 kind: ServiceMonitor 3 metadata: 4 labels: 5 k8s-app: kubelet 6 name: kubelet 7 namespace: monitoring 8 spec: 9 endpoints: 10 - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token 11 honorLabels: true 12 interval: 30s 13 port: https-metrics 14 scheme: https 15 tlsConfig: 16 insecureSkipVerify: true 17 - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token 18 honorLabels: true 19 interval: 30s 20 metricRelabelings: 21 - action: drop 22 regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s) 23 sourceLabels: 24 - __name__ 25 path: /metrics/cadvisor 26 port: https-metrics 27 scheme: https 28 tlsConfig: 29 insecureSkipVerify: true 30 jobLabel: k8s-app 31 namespaceSelector: 32 matchNames: 33 - kube-system 34 selector: 35 matchLabels: 36 k8s-app: kubelet