--- apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: labels: app.kubernetes.io/name: cadvisor app.kubernetes.io/component: exporter app.kubernetes.io/part-of: {{ $.Chart.Name }} app.kubernetes.io/version: {{ $.Chart.Version }} app.kubernetes.io/managed-by: {{ $.Release.Service }} name: cadvisor namespace: monitoring spec: endpoints: - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token honorLabels: true honorTimestamps: false interval: 30s metricRelabelings: - action: drop regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s) sourceLabels: - __name__ - action: drop regex: (container_spec_.*|container_file_descriptors|container_sockets|container_threads_max|container_threads|container_start_time_seconds|container_last_seen);; sourceLabels: - __name__ - pod - namespace - action: drop regex: (container_blkio_device_usage_total);.+ sourceLabels: - __name__ - container path: /metrics/cadvisor port: https-metrics #jobName: cadvisor relabelings: - sourceLabels: - __metrics_path__ targetLabel: metrics_path - targetLabel: "job" replacement: "cadvisor" scheme: https tlsConfig: insecureSkipVerify: true namespaceSelector: matchNames: - kube-system selector: matchLabels: app.kubernetes.io/name: kubelet