Changed the service name and added even more permissions.
This commit is contained in:
parent
725fcf76ce
commit
fac52a1f1f
2 changed files with 15 additions and 2 deletions
|
@ -3,6 +3,18 @@ kind: ClusterRole
|
|||
metadata:
|
||||
name: prometheus
|
||||
rules:
|
||||
- apiGroups:
|
||||
- authentication.k8s.io
|
||||
resources:
|
||||
- tokenreviews
|
||||
verbs:
|
||||
- create
|
||||
- apiGroups:
|
||||
- authorization.k8s.io
|
||||
resources:
|
||||
- subjectaccessreviews
|
||||
verbs:
|
||||
- create
|
||||
- apiGroups: [""]
|
||||
resources:
|
||||
- nodes
|
||||
|
@ -13,6 +25,7 @@ rules:
|
|||
- apiGroups: [""]
|
||||
resources:
|
||||
- configmaps
|
||||
- namespaces # Required to get through the alertmanager oauth proxy
|
||||
verbs: ["get"]
|
||||
- nonResourceURLs: ["*"]
|
||||
verbs: ["get"]
|
||||
|
|
|
@ -3,11 +3,11 @@ kind: ServiceMonitor
|
|||
metadata:
|
||||
labels:
|
||||
monitoring-key: 'cpe'
|
||||
name: bodhi-web
|
||||
name: bodhi-service
|
||||
spec:
|
||||
endpoints:
|
||||
- path: /metrics
|
||||
port: web
|
||||
selector:
|
||||
matchLabels:
|
||||
service: web
|
||||
app: bodhi
|
Loading…
Add table
Add a link
Reference in a new issue