File tree Expand file tree Collapse file tree 3 files changed +113
-49
lines changed
clusterloader2/pkg/prometheus/manifests/exporters/node_exporter Expand file tree Collapse file tree 3 files changed +113
-49
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : monitoring.coreos.com/v1
2
+ kind : PodMonitor
3
+ metadata :
4
+ name : node-exporter
5
+ namespace : monitoring
6
+ labels :
7
+ app : node-exporter # must match your Prometheus CR's `podMonitorSelector`
8
+ spec :
9
+ selector :
10
+ matchLabels :
11
+ app : node-exporter
12
+ namespaceSelector :
13
+ matchNames :
14
+ - monitoring
15
+ podMetricsEndpoints :
16
+ - port : metrics
17
+ path : /metrics
18
+ interval : 5s
19
+
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : ServiceAccount
3
+ metadata :
4
+ name : node-exporter
5
+ namespace : monitoring
6
+ ---
7
+ apiVersion : rbac.authorization.k8s.io/v1
8
+ kind : ClusterRole
9
+ metadata :
10
+ name : node-exporter
11
+ rules :
12
+ - apiGroups : [""]
13
+ resources :
14
+ - nodes
15
+ - nodes/proxy
16
+ - services
17
+ - endpoints
18
+ - pods
19
+ verbs : ["get", "list", "watch"]
20
+ - apiGroups : [""]
21
+ resources :
22
+ - nodes/metrics
23
+ verbs : ["get"]
24
+ ---
25
+ apiVersion : rbac.authorization.k8s.io/v1
26
+ kind : ClusterRoleBinding
27
+ metadata :
28
+ name : node-exporter
29
+ roleRef :
30
+ apiGroup : rbac.authorization.k8s.io
31
+ kind : ClusterRole
32
+ name : node-exporter
33
+ subjects :
34
+ - kind : ServiceAccount
35
+ name : node-exporter
36
+ namespace : monitoring
37
+ ---
38
+ apiVersion : apps/v1
39
+ kind : DaemonSet
40
+ metadata :
41
+ name : node-exporter
42
+ namespace : monitoring
43
+ labels :
44
+ app : node-exporter
45
+ spec :
46
+ selector :
47
+ matchLabels :
48
+ app : node-exporter
49
+ template :
50
+ metadata :
51
+ labels :
52
+ app : node-exporter
53
+ spec :
54
+ serviceAccountName : node-exporter
55
+ hostNetwork : true
56
+ hostPID : true
57
+ containers :
58
+ - name : node-exporter
59
+ image : quay.io/prometheus/node-exporter:latest
60
+ args :
61
+ - " --path.procfs=/host/proc"
62
+ - " --path.sysfs=/host/sys"
63
+ - " --collector.disable-defaults"
64
+ - " --collector.cpu"
65
+ - " --collector.meminfo"
66
+ - " --collector.loadavg"
67
+ - " --collector.stat"
68
+ ports :
69
+ - containerPort : 9100
70
+ hostPort : 9100
71
+ name : metrics
72
+ resources :
73
+ limits :
74
+ memory : 100Mi
75
+ requests :
76
+ cpu : 100m
77
+ memory : 50Mi
78
+ volumeMounts :
79
+ - name : proc
80
+ mountPath : /host/proc
81
+ readOnly : true
82
+ - name : sys
83
+ mountPath : /host/sys
84
+ readOnly : true
85
+ nodeSelector :
86
+ kubernetes.io/os : linux
87
+ volumes :
88
+ - name : proc
89
+ hostPath :
90
+ path : /proc
91
+ - name : sys
92
+ hostPath :
93
+ path : /sys
94
+ terminationGracePeriodSeconds : 30
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments