rpi.carlosedp.cluster-monit.../manifests/prometheus-serviceMonitorKubelet.yaml

40 lines
970 B
YAML
Raw Normal View History

2018-03-02 01:03:53 +01:00
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
k8s-app: kubelet
name: kubelet
namespace: monitoring
2018-03-02 01:03:53 +01:00
spec:
endpoints:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
2018-03-02 01:03:53 +01:00
interval: 30s
port: http-metrics
2019-11-17 16:05:27 +01:00
relabelings:
- sourceLabels:
- __metrics_path__
targetLabel: metrics_path
scheme: http
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
2018-03-02 01:03:53 +01:00
honorLabels: true
interval: 30s
2019-11-17 16:05:27 +01:00
metricRelabelings:
- action: drop
regex: container_(network_tcp_usage_total|network_udp_usage_total|tasks_state|cpu_load_average_10s)
sourceLabels:
- __name__
path: /metrics/cadvisor
port: http-metrics
2019-11-17 16:05:27 +01:00
relabelings:
- sourceLabels:
- __metrics_path__
targetLabel: metrics_path
scheme: http
jobLabel: k8s-app
2018-03-02 01:03:53 +01:00
namespaceSelector:
matchNames:
- kube-system
selector:
matchLabels:
k8s-app: kubelet