第5章 Monitoring OpenShift Serverless components
You are viewing documentation for a release of Red Hat OpenShift Serverless that is no longer supported. Red Hat OpenShift Serverless is currently supported on OpenShift Container Platform 4.3 and newer.
As a cluster administrator, you can deploy the OpenShift Container Platform monitoring stack and monitor the metrics of OpenShift Serverless components.
When using the OpenShift Serverless Operator, the required ServiceMonitor objects are created automatically for monitoring the deployed components.
OpenShift Serverless components, such as Knative Serving, expose metrics data. Administrators can monitor this data by using the OpenShift Container Platform web console.
5.1. Configuring cluster for application monitoring
Before application developers can monitor their applications, the human operator of the cluster needs to configure the cluster accordingly. This procedure shows how to.
Prerequisites
- You must log in as a user that belongs to a role with administrative privileges for the cluster.
Procedure
-
In the OpenShift Container Platform web console, navigate to the Operators
OperatorHub page and install the Prometheus Operator in the namespace where your application is. -
Navigate to the Operators
Installed Operators page and install Prometheus, Alertmanager, Prometheus Rule, and Service Monitor in the same namespace.