Adding podmonitor to bodhi-web.

This commit is contained in:
Adam Saleh 2021-03-17 10:26:07 +01:00
parent f3aa156600
commit 18cba631bb
3 changed files with 24 additions and 0 deletions

View file

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

View file

@ -13,6 +13,12 @@ spec:
serviceMonitorSelector:
matchLabels:
monitoring-key: cpe
podMonitorNamespaceSelector:
matchLabels:
monitoring-key: cpe
podMonitorSelector:
matchLabels:
monitoring-key: cpe
alerting:
alertmanagers:
- namespace: application-monitoring

View file

@ -0,0 +1,13 @@
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
labels:
monitoring-key: 'cpe'
name: bodhi-web
spec:
selector:
matchLabels:
app: bodhi-web
podMetricsEndpoints:
- port: web
path: /metrics