Added bodhi-web servicemonitor to work with the prometheus operator in application-monitoring.
This commit is contained in:
parent
5b4dd3cbf3
commit
94444e10c4
2 changed files with 18 additions and 0 deletions
|
@ -108,6 +108,11 @@
|
||||||
app: bodhi
|
app: bodhi
|
||||||
file: service.yml
|
file: service.yml
|
||||||
objectname: service.yml
|
objectname: service.yml
|
||||||
|
- role: openshift/object
|
||||||
|
app: bodhi
|
||||||
|
file: servicemonitor.yml
|
||||||
|
objectname: servicemonitor.yml
|
||||||
|
when: env != "production"
|
||||||
- role: openshift/route
|
- role: openshift/route
|
||||||
app: bodhi
|
app: bodhi
|
||||||
routename: bodhi-web
|
routename: bodhi-web
|
||||||
|
|
13
roles/openshift-apps/bodhi/files/servicemonitor.yml
Normal file
13
roles/openshift-apps/bodhi/files/servicemonitor.yml
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
apiVersion: monitoring.coreos.com/v1
|
||||||
|
kind: ServiceMonitor
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
monitoring-key: 'middleware'
|
||||||
|
name: bodhi-web
|
||||||
|
spec:
|
||||||
|
endpoints:
|
||||||
|
- path: /metrics
|
||||||
|
port: web
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: bodhi
|
Loading…
Add table
Add a link
Reference in a new issue