mirror of
https://github.com/carlosedp/cluster-monitoring.git
synced 2024-12-04 19:07:43 +01:00
27 lines
597 B
YAML
27 lines
597 B
YAML
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
labels:
|
|
k8s-app: kubelet
|
|
name: kubelet
|
|
namespace: monitoring
|
|
spec:
|
|
endpoints:
|
|
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|
|
interval: 30s
|
|
port: http-metrics
|
|
scheme: http
|
|
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|
|
honorLabels: true
|
|
interval: 30s
|
|
path: /metrics/cadvisor
|
|
port: http-metrics
|
|
scheme: http
|
|
jobLabel: k8s-app
|
|
namespaceSelector:
|
|
matchNames:
|
|
- kube-system
|
|
selector:
|
|
matchLabels:
|
|
k8s-app: kubelet
|