Chapter 12. Manage observability
Red Hat OpenShift AI provides centralized platform observability: an integrated solution for monitoring the health and performance of your OpenShift AI instance and user workloads.
This centralized solution includes a dedicated, pre-configured observability stack, featuring the OpenTelemetry Collector (OTC) for standardized data ingestion, Prometheus for metrics, and the Red Hat build of Tempo for distributed tracing. This architecture enables a common set of health metrics and alerts for OpenShift AI components and offers mechanisms to integrate with your existing external observability tools.
12.1. Enable the observability stack Copy linkLink copied to clipboard!
The observability stack collects and correlates metrics, traces, and alerts for OpenShift AI so that you can monitor, troubleshoot, and optimize OpenShift AI components. A cluster administrator must explicitly enable this capability in the DataScienceClusterInitialization (DSCI) custom resource.
Once enabled, you can perform the following actions:
- Accelerate troubleshooting by viewing metrics, traces, and alerts for OpenShift AI components in one place.
- Maintain platform stability by monitoring health and resource usage and receiving alerts for critical issues.
- Integrate with existing tools by exporting telemetry to third-party observability solutions through the Red Hat build of OpenTelemetry.
Prerequisites
- You have cluster administrator privileges for your OpenShift cluster.
- You have installed Red Hat OpenShift AI.
You have installed the following Operators, which provide the components of the observability stack:
- Cluster Observability Operator: Deploys and manages Prometheus and Alertmanager for metrics and alerts.
- Tempo Operator: Provides the Tempo backend for distributed tracing.
- Red Hat build of OpenTelemetry: Deploys the OpenTelemetry Collector for collecting and exporting telemetry data.
Procedure
- Log in to the OpenShift web console as a cluster administrator.
Go to the Installed Operators page. The navigation path depends on your OpenShift version:
-
On OpenShift 4.20 and later, click Ecosystem
Installed Operators. -
On OpenShift 4.19, click Operators
Installed Operators.
-
On OpenShift 4.20 and later, click Ecosystem
- Search for the Red Hat OpenShift AI Operator, and then click the Operator name to open the Operator details page.
- Click the DSCInitialization tab.
- Click the default instance name (for example, default-dsci) to open the instance details page.
- Click the YAML tab to show the instance specifications.
In the
spec.monitoringsection, set the value of themanagementStatefield toManaged, and configure metrics, alerting, and tracing settings as shown in the following example:Example monitoring configuration
# ... spec: monitoring: managementState: Managed # Required: Enables and manages the observability stack namespace: redhat-ods-monitoring # Required: Namespace where monitoring components are deployed alerting: {} # Alertmanager configuration, uses default settings if empty metrics: # Prometheus configuration for metrics collection replicas: 1 # Optional: Number of Prometheus instances resources: # CPU and memory requests and limits for Prometheus pods cpulimit: 500m # Optional: Maximum CPU allocation in millicores cpurequest: 100m # Optional: Minimum CPU allocation in millicores memorylimit: 512Mi # Optional: Maximum memory allocation in mebibytes memoryrequest: 256Mi # Optional: Minimum memory allocation in mebibytes storage: # Storage configuration for metrics data size: 5Gi # Required: Storage size for Prometheus data retention: 90d # Required: Retention period for metrics data in days exporters: {} # External metrics exporters traces: # Tempo backend for distributed tracing sampleRatio: '0.1' # Optional: Portion of traces to sample, expressed as a decimal storage: # Storage configuration for trace data backend: pv # Required: Storage backend for Tempo traces (pv, s3, or gcs) retention: 2160h # Optional: Retention period for trace data in hours exporters: {} # External traces exporters # ...- Click Save to apply your changes.
Verification
Verify that the observability stack components are running in the configured namespace:
-
In the OpenShift web console, click Workloads
Pods. - From the project list, select redhat-ods-monitoring.
Confirm that there are running pods for your configuration. The following pods indicate that the observability stack is active:
alertmanager-data-science-monitoringstack-# 2/2 Running 0 1m data-science-collector-collector-# 1/1 Running 0 1m prometheus-data-science-monitoringstack-# 2/2 Running 0 1m tempo-data-science-tempomonolithic-# 1/1 Running 0 1m thanos-querier-data-science-thanos-querier-# 2/2 Running 0 1m
Next step
- Collecting metrics from user workloads
12.2. Observe platform and model metrics Copy linkLink copied to clipboard!
Use the built-in observability dashboards in OpenShift AI to monitor cluster infrastructure health and model deployment performance. Dashboard metrics are scoped to the namespaces each user has access to.
12.2.1. Observability dashboards overview Copy linkLink copied to clipboard!
Red Hat OpenShift AI provides built-in observability dashboards that display curated metrics for monitoring cluster infrastructure health and model deployment performance. The dashboards are available in the OpenShift AI console at Observe & monitor
The observability dashboards provide an opinionated view of the metrics that cluster administrators and non-admin users should monitor. The dashboards do not display all available Prometheus metrics. For metrics that are not included in the built-in dashboards, you can query Prometheus directly or export metrics to external observability tools.
12.2.1.1. Available dashboards Copy linkLink copied to clipboard!
OpenShift AI includes the following built-in dashboards:
- Cluster
- Displays cluster-wide infrastructure health, resource utilization, and capacity metrics. This dashboard is available only to cluster administrators.
- Models
- Displays model deployment performance metrics for the namespaces that the user has access to. Users can filter by project and model deployment.
- Usage
- Displays Models-as-a-Service token consumption, request counts, and rate-limit violations across subscriptions and users. See the Additional resources section for more information about Models-as-a-Service observability.
- LLM Traffic
- Displays cluster-level request health indicators for Distributed Inference with llm-d deployments, including request rate, error rate, and token consumption. See the Additional resources section for more information about Distributed Inference with llm-d observability.
- LLM Performance
- Displays latency and cache diagnostics for Distributed Inference with llm-d deployments, including time to first token percentiles, inter-token latency, and KV cache hit rate. See the Additional resources section for more information about Distributed Inference with llm-d observability.
- LLM Utilization
- Displays per-replica resource consumption for Distributed Inference with llm-d deployments, including GPU utilization, memory utilization, and request queue depth. See the Additional resources section for more information about Distributed Inference with llm-d observability.
12.2.1.2. Dashboard access Copy linkLink copied to clipboard!
Dashboard access is automatic and based on user permissions:
- Cluster administrators can view the Cluster tab and the Models tab with metrics across all projects.
- Non-admin users can view the Models tab with metrics scoped to the namespaces they have access to. The Cluster tab is not available to non-admin users.
No additional role-based access control (RBAC) configuration is required. The dashboards use the user’s authentication token to determine which namespaces and metrics are visible.
12.2.1.3. Dashboard controls Copy linkLink copied to clipboard!
All dashboards provide the following global controls:
- Time range selector
- Select a time period to display metrics for a specific duration.
- Auto-refresh
- Enable automatic refresh to keep dashboard metrics current.
- Project filter
- Filter metrics by project. Cluster administrators can select from all projects. Non-admin users see only their accessible projects.
12.2.2. Enable the observability dashboards Copy linkLink copied to clipboard!
Enable the observability dashboards to monitor cluster health and model deployment performance from the OpenShift AI console. After the monitoring metrics stack is enabled, the dashboards are available automatically.
Prerequisites
- You have cluster administrator privileges for your OpenShift cluster.
- You have installed Red Hat OpenShift AI.
- You have installed the Cluster Observability Operator.
-
You have enabled the observability stack in the
DataScienceClusterInitialization(DSCI) custom resource with at least themetricssection configured. Thealertingandtracessections are not required for the observability dashboards. For more information, see Enabling the observability stack.
Procedure
- Log in to the OpenShift AI dashboard as a user with cluster administrator privileges.
In the left navigation menu, click Observe & monitor
Dashboard. The observability dashboard page displays the Cluster and Models tabs.
Verification
- The Cluster tab displays overview metrics, cluster resource utilization charts, and project resource usage charts.
- The Models tab displays the model deployments table and performance metrics charts.
12.2.3. Cluster dashboard metrics Copy linkLink copied to clipboard!
The Cluster dashboard provides cluster administrators with an overview of infrastructure health, resource utilization, and project-level resource consumption. This dashboard is available only to cluster administrators and requires the observability stack to be enabled.
12.2.3.1. Overview metrics Copy linkLink copied to clipboard!
The overview section displays summary statistics for cluster health.
| Metric | Description |
|---|---|
| System health |
The percentage and count of healthy nodes in the cluster. A node is considered healthy when its |
| Deployed models | The total number of active model deployments across the cluster. This count is derived from unique model deployments that are currently running and processing requests. |
| GPU utilization | The average GPU utilization percentage across all GPUs in the cluster. High utilization can indicate compute bottlenecks that affect model serving performance. |
| Request success rate | The percentage of successfully completed model serving requests during the selected time period. A declining success rate separates slow responses from actual failures and warrants investigation. |
12.2.3.2. Cluster resource overview Copy linkLink copied to clipboard!
The cluster resource overview section displays time-series charts for resource usage trends over the selected time period.
| Metric | Description |
|---|---|
| GPU utilization | Average GPU utilization across all GPUs in the cluster, displayed as a percentage over time. Use this chart to identify GPU capacity trends and plan for scaling. |
| Memory allocated | Total container working-set memory usage as a proportion of total node memory, displayed over time. Rising memory allocation can indicate growing workload demands or potential memory pressure. |
| CPU utilization | Total container CPU usage as a proportion of total allocatable CPU across all nodes, displayed over time. Use this chart to assess overall compute capacity and identify utilization trends. |
| Inbound traffic | Total inbound network traffic rate across all containers, displayed in bytes over time. Use this chart to monitor network load patterns associated with model serving traffic. |
12.2.3.3. Project resource usage Copy linkLink copied to clipboard!
The project resource usage section displays stacked time-series charts that compare resource usage across projects.
| Metric | Description |
|---|---|
| GPU utilization | GPU utilization broken down by project, displayed as a stacked chart to show each project’s contribution to total GPU usage. |
| CPU utilization | CPU utilization broken down by project, displayed as a stacked chart to show each project’s contribution to total CPU usage. |
| Memory allocated | Memory usage broken down by project, displayed as a stacked chart to show each project’s contribution to total memory usage. |
12.2.3.4. Cluster details Copy linkLink copied to clipboard!
The cluster details section displays cluster configuration metadata.
| Field | Description |
|---|---|
| Provider | The infrastructure provider for the cluster. |
| OpenShift version | The version of OpenShift running on the cluster. |
| Channel | The update channel configured for the cluster. |
| API server | The API server URL for the cluster. |
12.2.4. Models dashboard metrics Copy linkLink copied to clipboard!
The Models dashboard displays model deployment performance metrics, including a deployments inventory table and time-series performance charts. All users can view this dashboard, with metrics scoped to the namespaces they have access to. The observability stack must be enabled by a cluster administrator to view this dashboard.
12.2.4.1. Model deployments table Copy linkLink copied to clipboard!
The model deployments table displays an inventory of model deployments with real-time performance and resource information. You can sort the table by clicking column headers and use pagination to browse results.
| Column | Description |
|---|---|
| Model deployment | The name of the model deployment. |
| Project | The namespace where the model is deployed. |
| Total requests | The total count of successfully completed inference requests during the selected time period. |
| P90 E2E request latency | The 90th percentile end-to-end latency of a request, from when it is received to when it completes. A rising value indicates slower response times for users. |
| Error rate | The percentage of requests that failed due to errors or aborts during the selected time period. Use this metric to distinguish between slow responses and actual failures. |
| GPU utilization | The GPU utilization percentage attributed to the model deployment. High utilization can indicate a bottleneck that affects latency and throughput. |
| CPU usage (cores) | The CPU consumption of the model deployment in cores. |
| CPU quota utilization | The CPU usage of the model deployment as a percentage of the namespace CPU quota. |
12.2.4.2. Performance metrics Copy linkLink copied to clipboard!
The performance metrics section displays time-series charts for monitoring model serving health, latency, throughput, and scaling signals.
| Metric | Description |
|---|---|
| Request queue length | The current number of requests waiting in the queue for processing. This is the earliest saturation indicator; an increasing queue length typically precedes latency degradation. |
| Replica count | The number of running replicas serving each model deployment. Changes in replica count indicate autoscaling reactions to load changes. |
| P90 E2E request latency | The 90th percentile end-to-end latency of a request, from when it is received to when it completes. This is the primary user-visible experience metric. |
| P90 Time to first token (TTFT) | The 90th percentile latency from request start until the first output token is generated. This LLM-specific responsiveness metric often degrades before overall latency increases, making it an early warning signal for performance issues. |
| Token throughput (tokens/sec) | The combined rate of prompt tokens processed and generation tokens produced per second. Prompt tokens represent input tokens processed by the model; generation tokens represent output tokens produced. Use this metric to measure model and runtime processing speed. |
| Request success rate (requests/sec) |
The rate of successfully completed requests per second. Successful requests are those that completed with a |
12.2.4.3. Response time distribution Copy linkLink copied to clipboard!
The response time distribution section displays a bar chart that categorizes requests by response time, providing a quick view of overall request performance.
| Category | Description |
|---|---|
| Fast <1s | Requests that completed in less than 1 second. |
| Acceptable 1-5s | Requests that completed between 1 and 5 seconds. |
| Slow 5-30s | Requests that completed between 5 and 30 seconds. |
| Degraded >30s | Requests that took longer than 30 seconds to complete. |
12.2.4.4. Filters Copy linkLink copied to clipboard!
In addition to the global time range and auto-refresh controls, the Models dashboard provides the following filters:
- Model deployment
- Filter performance metrics by one or more model deployments. You can select multiple deployments to compare metrics side by side.
- Project
Filter metrics by project.
- Cluster administrators can select from all projects or filter by a specific project.
- Non-admin users see only the namespaces they have access to. The project filter is automatically scoped to accessible namespaces.
12.2.5. View model performance metrics Copy linkLink copied to clipboard!
You can use the Models dashboard in OpenShift AI to monitor performance metrics for your deployed models, including latency, throughput, resource utilization, and request success rates. The dashboard displays metrics only for models deployed in namespaces that you have access to.
Prerequisites
- You have access to at least one namespace with deployed models in OpenShift AI.
- A cluster administrator has enabled the monitoring metrics stack for OpenShift AI.
Procedure
-
In the OpenShift AI dashboard, click Observe & monitor
Dashboard in the left navigation menu. - Click the Models tab.
- Optional: To filter by specific model deployments, select one or more models from the Model deployment dropdown.
- Optional: To change the time range, select a value from the time range selector.
- Review the Model deployments table for an overview of all model deployments, including total requests, latency, error rate, and resource utilization.
- Review the Performance metrics section for time-series charts showing request queue length, replica count, latency, time to first token, token throughput, and request success rate.
- Review the Response time distribution chart for a breakdown of requests by response time categories.
Verification
- The Model deployments table lists model deployments from your accessible namespaces.
- The Performance metrics charts display data for the selected model deployments and time range.
12.2.6. Metrics beyond the built-in dashboards Copy linkLink copied to clipboard!
The built-in observability dashboards in OpenShift AI display a curated subset of the available Prometheus metrics. If you need metrics that are not included in the built-in dashboards, you can access Prometheus directly or export metrics to external observability tools.
12.2.6.1. Query Prometheus directly Copy linkLink copied to clipboard!
You can query the full set of available Prometheus metrics through the OpenShift web console. To access Prometheus metrics, navigate to Observe
The following Prometheus metric prefixes are relevant to OpenShift AI model serving:
kserve_vllm:*- Metrics from vLLM model serving runtimes, including request counts, latency histograms, token counts, and queue depth.
accelerator_gpu_utilization- GPU utilization metrics from the DCGM Exporter.
container_*- Container-level resource metrics, including CPU and memory usage.
kube_*- Kubernetes resource metrics, including node status, resource quotas, and pod health.
12.2.6.2. Export metrics to external tools Copy linkLink copied to clipboard!
You can export OpenShift AI metrics to external observability platforms such as Grafana or any OpenTelemetry-compatible backend. With external tools, you can create custom dashboards that combine OpenShift AI metrics with data from other systems.
Additional resources
12.3. Collect metrics from user workloads Copy linkLink copied to clipboard!
After a cluster administrator enables the observability stack in your cluster, metric collection becomes available but is not automatically active for all deployed workloads. The monitoring system relies on a specific label to identify which pods Prometheus should scrape for metrics.
To include a workload, such as a user-created workbench, training job, or inference service, in the centralized observability stack, add the label monitoring.opendatahub.io/scrape=true to the pod template in the workload’s deployment configuration. This ensures that all pods created by the deployment include the label and are automatically scraped by Prometheus.
Apply the monitoring.opendatahub.io/scrape=true label only to workloads that expose metrics and that you want the observability stack to monitor. Do not add this label to operator-managed workloads, because the operator might overwrite or remove it during reconciliation.
Prerequisites
- A cluster administrator has enabled the observability stack as described in Enabling the observability stack.
- You have OpenShift AI administrator privileges or you are the project owner.
-
You have deployed a workload that exposes a
/metricsendpoint, such as a workbench server or model service pod. - You have access to the project where the workload is running.
Procedure
- Log in to the OpenShift web console as a cluster administrator or project owner.
-
Click Workloads
Deployments. - In the Project list at the top of the page, select the project where your workload is deployed.
- Identify the deployment that you want to collect metrics from and click its name.
- On the Deployment details page, click the YAML tab.
In the YAML editor, add the required label under the
spec.template.metadata.labelssection, as shown in the following example:apiVersion: apps/v1 kind: Deployment metadata: name: <example_name> namespace: <example_namespace> spec: template: metadata: labels: monitoring.opendatahub.io/scrape: 'true' # ...Click Save.
OpenShift automatically rolls out a new ReplicaSet and pods with the updated label. When the new pods start, the observability stack begins scraping their metrics.
Verification
Verify that metrics are being collected by accessing the Prometheus instance deployed by OpenShift AI.
Access Prometheus by using a route:
-
In the OpenShift web console, click Networking
Routes. - From the project list, select redhat-ods-monitoring.
-
Locate the route associated with the Prometheus service, such as
data-science-prometheus-route. - Click the Location URL to open the Prometheus web console.
-
In the OpenShift web console, click Networking
Alternatively, access Prometheus locally by using port forwarding:
List the Prometheus pods:
$ oc get pods -n redhat-ods-monitoring -l prometheus=data-science-monitoringstackStart port forwarding:
$ oc port-forward __<prometheus-pod-name>__ 9090:9090 -n redhat-ods-monitoringIn a web browser, open the following URL:
http://localhost:9090
In the Prometheus web console, search for a metric exposed by your workload.
If the label is applied correctly and the workload exposes metrics, the metrics appear in the Prometheus instance deployed by OpenShift AI.
12.4. Export metrics to external observability tools Copy linkLink copied to clipboard!
You can export OpenShift AI operational metrics to an external observability platform, such as Grafana, Prometheus, or any OpenTelemetry-compatible backend. This allows you to visualize and monitor OpenShift AI metrics alongside data from other systems in your existing observability environment.
Metrics export is configured in the DataScienceClusterInitialization (DSCI) custom resource by populating the .spec.monitoring.metrics.exporters field. When you define one or more exporters in this field, the OpenTelemetry Collector (OTC) deployed by OpenShift AI automatically updates its configuration to include each exporter in its metrics pipeline. If this field is empty or undefined, metrics are collected only by the in-cluster Prometheus instance that is deployed with OpenShift AI.
Prerequisites
- You have cluster administrator privileges for your OpenShift cluster.
- The observability stack is enabled as described in Enabling the observability stack.
- The external observability platform can receive metrics through a supported export protocol.
- You know the URL of your external metrics receiver endpoint.
Procedure
- Log in to the OpenShift web console as a cluster administrator.
Go to the Installed Operators page. The navigation path depends on your OpenShift version:
-
On OpenShift 4.20 and later, click Ecosystem
Installed Operators. -
On OpenShift 4.19, click Operators
Installed Operators.
-
On OpenShift 4.20 and later, click Ecosystem
- Select the Red Hat OpenShift AI Operator from the list.
- Click the DSCInitialization tab.
- Click the default DSCI instance, for example, default-dsci, to open its details page.
- Click the YAML tab.
In the
spec.monitoring.metricssection, add anexporterslist that defines the external receiver configuration, as shown in the following example:spec: monitoring: metrics: exporters: - name: <external_exporter_name> type: <type> endpoint: https://example-otlp-receiver.example.com:4317-
name: A unique, descriptive name for the exporter configuration. Do not use reserved names such asprometheusorotlp/tempo. type: The protocol used for export, for example:-
otlp: For OpenTelemetry-compatible backends using gRPC or HTTP. -
prometheusremotewrite: For Prometheus-compatible systems that use the remote write protocol.
-
endpoint: The full URL of your external metrics receiver. For OTLP, endpoints typically use port4317(gRPC) or4318(HTTP). For Prometheus remote write, endpoints typically end with/api/v1/write. For example:-
otlp:https://example-otlp-receiver.example.com:4317(gRPC) orhttps://example-otlp-receiver.example.com:4318(HTTP) -
prometheusremotewrite:https://example-prometheus-remote.example.com/api/v1/write
-
-
Click Save.
The OpenTelemetry Collector automatically reloads its configuration and begins forwarding metrics to the specified external endpoint.
Verification
Verify that the OpenTelemetry Collector pods restart and apply the new configuration:
$ oc get pods -n redhat-ods-monitoringThe
data-science-collector-collector-*pods should restart and display a Running status.- In your external observability platform, verify that new metrics from OpenShift AI appear in the metrics list or dashboard.
If you remove the .spec.monitoring.metrics.exporters configuration from the DSCI, the OpenTelemetry Collector automatically reverts to collecting metrics only for the in-cluster Prometheus instance.
12.5. View traces in external tracing platforms Copy linkLink copied to clipboard!
When tracing is enabled in the DataScienceClusterInitialization (DSCI) custom resource, OpenShift AI deploys the Red Hat build of Tempo as the tracing backend and the Red Hat build of OpenTelemetry Collector (OTC) to receive and route trace data.
To view and analyze traces outside of OpenShift AI, complete the following tasks:
- Configure your instrumented applications to send traces to the OpenTelemetry Collector.
- Connect your preferred visualization tool, such as Grafana or Jaeger, to the Tempo Query API.
Prerequisites
- A cluster administrator has enabled tracing as part of the observability stack in the DSCI configuration.
-
You have access to the monitoring namespace, for example
redhat-ods-monitoring. - You have network access or cluster administrator privileges to create a route or port forward from the cluster.
- Your application is instrumented with an OpenTelemetry SDK or library to generate and export trace data.
Procedure
Find the OpenTelemetry Collector endpoint.
The OpenTelemetry Collector receives trace data from instrumented applications by using the OpenTelemetry Protocol (OTLP).
-
In the OpenShift web console, navigate to Networking
Services. -
In the Project list, select the monitoring namespace, for example,
redhat-ods-monitoring. -
Locate the Service named
data-science-collectoror a similar name associated with the OpenTelemetry Collector. Use the Service name or ClusterIP as the OTLP endpoint in your application configuration.
Your application must export traces to one of the following ports on the collector service:
-
gRPC:
4317 HTTP:
4318Example environment variable:
OTEL_EXPORTER_OTLP_ENDPOINT=http://data-science-collector.redhat-ods-monitoring.svc.cluster.local:4318NoteSee the Red Hat build of OpenTelemetry documentation for details about configuring application instrumentation.
-
gRPC:
-
In the OpenShift web console, navigate to Networking
Connect your visualization tool to the Tempo query service.
You can use a visualization tool, such as Grafana or Jaeger, to query and display traces from the Red Hat build of Tempo deployed by OpenShift AI.
-
In the OpenShift web console, navigate to Networking
Services. -
In the Project list, select the monitoring namespace, for example,
redhat-ods-monitoring. -
Locate the Service named
tempo-queryortempo-query-frontend. To make the service accessible to external tools, a cluster administrator must perform one of the following actions:
- Create a route: Expose the Tempo Query service externally by creating an OpenShift route.
Use port forwarding: Temporarily forward a local port to the Tempo Query service by using the OpenShift CLI (
oc):$ oc port-forward svc/tempo-query-frontend 3200:3200 -n redhat-ods-monitoringAfter the port is forwarded, connect your visualization tool to the Tempo Query API endpoint, for example:
http://localhost:3200NoteSee the Tempo Operator documentation for details about connecting to Tempo.
-
In the OpenShift web console, navigate to Networking
Verification
- Confirm that your instrumented application is generating and exporting trace data.
Verify that the OpenTelemetry Collector pod is running in the monitoring namespace:
$ oc get pods -n redhat-ods-monitoring | grep collectorThe
data-science-collector-collector-*pod should display a Running status.- Access your visualization tool and confirm that new traces appear in the trace list or search view.
12.6. Access built-in alerts Copy linkLink copied to clipboard!
The centralized observability stack deploys a Prometheus Alertmanager instance that provides a common set of built-in alerts for OpenShift AI components. These alerts monitor critical platform conditions, such as operator downtime, crashlooping pods, and unresponsive services.
By default, the Alertmanager is internal to the cluster and is not exposed through a route. You can access the Alertmanager web interface locally by using the OpenShift CLI (oc).
Prerequisites
- You have OpenShift AI administrator privileges.
- The observability stack is enabled as described in Enabling the observability stack.
-
You know the monitoring namespace, for example
redhat-ods-monitoring. You have installed the OpenShift CLI (
oc) as described in the appropriate documentation for your cluster:- Installing the OpenShift CLI for OpenShift Container Platform
- Installing the OpenShift CLI for Red Hat OpenShift Service on AWS
Procedure
In a terminal window, log in to the OpenShift CLI (
oc) as a cluster administrator:$ oc login https://api.198.51.100.10:6443Verify that the Alertmanager pods are running in the monitoring namespace:
$ oc get pods -n redhat-ods-monitoring | grep alertmanagerExample output:
alertmanager-data-science-monitoringstack-0 2/2 Running 0 2h alertmanager-data-science-monitoringstack-1 2/2 Running 0 2hConfirm that a ClusterIP service exposes the Alertmanager web interface on port 9093:
$ oc get svc -n redhat-ods-monitoring | grep alertmanagerExample output:
data-science-monitoringstack-alertmanager ClusterIP 198.51.100.5 <none> 9093/TCPStart a local port forward to the Alertmanager service:
$ oc port-forward svc/data-science-monitoringstack-alertmanager 9093:9093 -n redhat-ods-monitoringIn a web browser, open the following URL to access the Alertmanager web interface:
http://localhost:9093
Verification
-
Confirm that the Alertmanager web interface opens at
http://localhost:9093and displays active alerts for OpenShift AI components.