-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathservicemonitors.yaml
38 lines (38 loc) · 1.04 KB
/
servicemonitors.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
# From https://github.com/istio/tools/blob/1.13.2/perf/istio-install/addons/servicemonitors.yaml
# with namespace and release replaced.
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: kubelet
namespace: test-infra-system
labels:
monitoring: kubelet-monitor
release: grpc-testing
spec:
endpoints:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
honorLabels: true
interval: 1s
relabelings:
- sourceLabels: [job]
action: replace
replacement: kubernetes-cadvisor
targetLabel: job
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
scheme: http
tlsConfig:
insecureSkipVerify: true
jobLabel: k8s-app
namespaceSelector:
matchNames:
- kube-system
selector:
matchLabels:
k8s-app: kubelet