Enabling OpenShift Container Platform monitoring
Monitoring in IBM Cloud Pak® for Integration can be done using the OpenShift monitoring stack. To enable monitoring of user-defined projects, you must configure OpenShift Container Platform monitoring. To learn more about the OCP monitoring stack, see Monitoring Overview in the OpenShift documentation.
If you want to implement Grafana, install the community operator. You can then configure and upload your custom dashboard by using the example JSON in Dashboard examples. For more information, see Grafana Operator. Before installing, confirm that you have sufficient Red Hat OpenShift entitlement to install community software. Entitlement from the OpenShift 'restricted' licenses that are included with Cloud Pak for Integration cannot be used for this purpose.
Enabling the OpenShift monitoring stack
To enable OpenShift to monitor your applications, follow these steps. When enabled, developers can run PromQL queries on application metrics in the OpenShift web console by switching to the Developer perspective and clicking Monitoring in the navigation menu.
To enable the OpenShift monitoring stack:
Create the following
ConfigMap
, withenableUserWorkload: true
:apiVersion: v1 kind: ConfigMap metadata: name: cluster-monitoring-config namespace: openshift-monitoring data: config.yaml: | enableUserWorkload: true
This ensures that OpenShift is configured for user-defined project monitoring. For more information, see the OpenShift documentation: Enabling monitoring for user-defined projects.
Dashboard samples
After you install the Grafana community operator and create a Grafana instance, you can manually import a JSON file to deploy your custom dashboard. The following sample configuration is intended to help you get started.
To configure a monitoring dashboard:
Open the Grafana UI.
Click the dashboard icon in the navigation panel.
Click New and select + Import.
Import a JSON file, using one of the dashboard examples.
Grafana dashboard samples are available on IBM GitHub, for the following instance types:
API management
Integration runtime
Kafka cluster
Enterprise gateway
High speed transfer server
Queue manager
The dashboards provide a monitoring view similar to the following Event Streams example:
![Grafana dashboard example](images/grafana_dashboard.png)