Application Monitoring example
Deploy cluster wide workload monitoring (cluster-admin needed)
Enabling monitoring for user-defined projects
Enable user workload monitoring
| oc create -f - <<EOF
apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-monitoring-config
namespace: openshift-monitoring
data:
config.yaml: |
enableUserWorkload: true
EOF
|
Check user workload monitoring stack
| $ oc get pods -n openshift-user-workload-monitoring
NAME READY STATUS RESTARTS AGE
prometheus-operator-84d9857947-wlmws 2/2 Running 0 49s
prometheus-user-workload-0 5/5 Running 1 37s
prometheus-user-workload-1 5/5 Running 1 37s
thanos-ruler-user-workload-0 3/3 Running 0 38s
thanos-ruler-user-workload-1 3/3 Running 0 37s
|
Granting permission
Deploy application
Official
example
Create Service Monitoring
Result
2021-07-15
2020-07-30
Contributors: