Monitoring applications on Red Hat OpenShift Container Platform with Prometheus and Grafana
You can set up application monitoring on Red Hat® OpenShift® Container Platform V12 by enabling monitoring for user-defined projects without the need to install an extra monitoring solution. You use Prometheus so that it monitors output metrics from your application while you use the Grafana dashboard to view the application metrics.
This solution deploys a second Prometheus operator instance inside the
openshift-user-workload-monitoring
namespace. This namespace is configured to
monitor all namespaces except the openshift-
prefixed namespaces, which are already
monitored by the default platform monitoring for the cluster.
Before you begin
Ensure that the MicroProfile Metrics feature is built as part of your Liberty image.
Ensure that the Liberty image that is running your application is deployed to the Red Hat OpenShift Container Platform cluster inside your project namespace.
- The running application must be deployed to the Red Hat OpenShift Container Platform cluster inside your project namespace.
- The Prometheus metrics endpoint must be exposed on the /metrics path.