File tree 3 files changed +33
-1
lines changed
variants/prometheus-operator-example
3 files changed +33
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Allows the "k8s" prometheus from Prometheus Operator contrib to do service discovery in the kafka namespace
2
+ ---
3
+ apiVersion : rbac.authorization.k8s.io/v1
4
+ kind : ClusterRole
5
+ metadata :
6
+ name : prometheus-k8s
7
+ rules :
8
+ - apiGroups :
9
+ - " "
10
+ resources :
11
+ - services
12
+ - endpoints
13
+ - pods
14
+ verbs :
15
+ - get
16
+ - list
17
+ - watch
18
+ ---
19
+ apiVersion : rbac.authorization.k8s.io/v1
20
+ kind : ClusterRoleBinding
21
+ metadata :
22
+ name : prometheus-k8s
23
+ roleRef :
24
+ apiGroup : rbac.authorization.k8s.io
25
+ kind : ClusterRole
26
+ name : prometheus-k8s
27
+ subjects :
28
+ - kind : ServiceAccount
29
+ name : prometheus-k8s
30
+ namespace : monitoring
Original file line number Diff line number Diff line change 1
- # Allows the "k8s" prometheus from Prometheus Operator contrib to do service discovery iin the kafka namespace
1
+ # Allows the "k8s" prometheus from Prometheus Operator contrib to do service discovery in the kafka namespace
2
2
---
3
3
apiVersion : rbac.authorization.k8s.io/v1
4
4
kind : Role
Original file line number Diff line number Diff line change 9
9
# - ../../prometheus
10
10
resources :
11
11
- k8s-kafka-rbac.yaml
12
+ # or, to scrape all namespaces
13
+ # - k8s-cluster-rbac.yaml
12
14
# with base ../../prometheus
13
15
# - k8s-kafka-servicemonitor.yaml
14
16
# with base ../../consumers-prometheus
You can’t perform that action at this time.
0 commit comments