Adding podmonitor to bodhi-web.
This commit is contained in:
parent
f3aa156600
commit
18cba631bb
3 changed files with 24 additions and 0 deletions
|
@ -113,6 +113,11 @@
|
||||||
file: servicemonitor.yml
|
file: servicemonitor.yml
|
||||||
objectname: servicemonitor.yml
|
objectname: servicemonitor.yml
|
||||||
when: env != "production"
|
when: env != "production"
|
||||||
|
- role: openshift/object
|
||||||
|
app: bodhi
|
||||||
|
file: podmonitor.yml
|
||||||
|
objectname: podmonitor.yml
|
||||||
|
when: env != "production"
|
||||||
- role: openshift/route
|
- role: openshift/route
|
||||||
app: bodhi
|
app: bodhi
|
||||||
routename: bodhi-web
|
routename: bodhi-web
|
||||||
|
|
|
@ -13,6 +13,12 @@ spec:
|
||||||
serviceMonitorSelector:
|
serviceMonitorSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
monitoring-key: cpe
|
monitoring-key: cpe
|
||||||
|
podMonitorNamespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
monitoring-key: cpe
|
||||||
|
podMonitorSelector:
|
||||||
|
matchLabels:
|
||||||
|
monitoring-key: cpe
|
||||||
alerting:
|
alerting:
|
||||||
alertmanagers:
|
alertmanagers:
|
||||||
- namespace: application-monitoring
|
- namespace: application-monitoring
|
||||||
|
|
13
roles/openshift-apps/bodhi/files/podmonitor.yml
Normal file
13
roles/openshift-apps/bodhi/files/podmonitor.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue