User Workload Monitoring on Azure Red Hat OpenShift
This content is authored by Red Hat experts, but has not yet been tested on every supported configuration.
In Azure Red Hat OpenShift (ARO) Monitoring for User Defined Projects is disabled by default. Follow these instructions to enable it.
Enabling
See docs for more indepth details.
Check the cluster-monitoring-config ConfigMap object
Enable User Workload Monitoring by doing one of the following
If the
data.config.yamlis not{}you should edit it and add theenableUserWorkload: trueline manually.Otherwise if its
{}then you can run the following command safely.Create a config for User Workload Monitoring to set retention and
This will configure the user workload instance to have PVC storage and will set basic data retention values. Feel free to edit it to suit your needs. Remember if you’re going to have PVCs enabled they are tied to an AZ, to for a multi-AZ cluster you should ensure you have at least 2 workers per AZ so that they can failover.
Deploy an example application with a service monitor resource
Wait a few minutes and then check your cluster metrics.
- Switch to Developer mode
- Change the Project to
ns1 - Click the Monitoring button

Grafana
Create a Project for the Grafana Operator + Application
Install the Grafana Operator (or via the OperatorHub in the GUI)
Once the Grafana Operator is running create a Grafana Instance
Once the instance has been created you should be able to log in by getting the route and using the admin user/pass from above.
The output should look like
Copy and paste the host into your browser and log in to verify its working.
Grant the grafana instance access to cluster-metrics
Save the service accounts bearer token as a variable
Create a datasource to access the Thanos Querier
Add system dashboards to Grafana
The
dashboards.yamlfile was created by running the scriptgenerate-dashboards.shwhich fetches the dashboard json files from theopenshift-monitoringnamespace.