Added bodhi-web servicemonitor to work with the prometheus operator in application-monitoring.

This commit is contained in:
Adam Saleh 2021-03-15 11:38:34 +01:00
parent 5b4dd3cbf3
commit 94444e10c4
2 changed files with 18 additions and 0 deletions

View file

@ -108,6 +108,11 @@
app: bodhi
file: service.yml
objectname: service.yml
- role: openshift/object
app: bodhi
file: servicemonitor.yml
objectname: servicemonitor.yml
when: env != "production"
- role: openshift/route
app: bodhi
routename: bodhi-web

View 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