Phase 7: Observability (Optional)
In Red Hat OpenShift AI 3.5, the monitoring stack uses the Cluster Observability Operator (COO) and its MonitoringStack CR for metrics collection. User Workload Monitoring (UWM) is no longer required. The RHOAI operator creates its own ServiceMonitors with monitoring.opendatahub.io/scrape labels that the COO-managed Prometheus scrapes.
This phase installs the optional observability operators and configuration:
Tempo Operator - provides the
TempoStackCRD that the RHOAI operator’s Monitoring controller requires for distributed tracing. Without this operator, the Monitoring CR cannot provision tracing infrastructure.Red Hat build of OpenTelemetry Operator - provides the
OpenTelemetryCollectorCRD that the RHOAI operator’s Monitoring controller requires. Without this operator, the Monitoring CR fails with: “OpenTelemetryCollector operator must be installed for OpenTelemetry configuration”. This blocks the full observability chain: MonitoringStack, ThanosQuerier, Perses, and PrometheusDatasource.Cluster Observability Operator (COO) - required for the Observability Dashboard tab in the Red Hat OpenShift AI UI. COO provides the Perses CRDs (
Perses,PersesDatasource,PersesDashboard) that the RHOAI operator uses to deploy the dashboard backend.Gateway Telemetry (auto-created) - the RHOAI operator auto-creates a TelemetryPolicy and Istio Telemetry CR when telemetry is enabled on the MaasTenantConfig (3.5) or Tenant (3.4). These add per-model, per-subscription, and per-organization labels to gateway metrics for usage attribution.
Loki Operator + Usage Dashboards (RHOAI 3.5+ only) - log-based per-request usage tracking. The gateway emits structured OTLP access logs with token counts, user identity, and subscription info. Logs are shipped to a LokiStack via an OpenTelemetry Collector. The RHOAI console shows admin and user-scoped usage dashboards under Observe & monitor.
All file paths and oc apply commands in this guide are relative to the CAI-Field-Manual-MaaS repository root. Make sure you have cloned it and are working from its root directory (see Getting Started).
Step 1: Install the Tempo Operator
Wait for the operator CSV to reach Succeeded:
Step 2: Install the Red Hat build of OpenTelemetry Operator
Wait for the operator CSV to reach Succeeded:
Step 3: Install the Cluster Observability Operator
Wait for the operator CSV to reach Succeeded:
Step 4: Enable DSCI Monitoring
Now that all three observability operators are installed, configure the DSCI monitoring section to trigger the operator’s observability cascade (MonitoringStack, ThanosQuerier, Perses, tracing):
This step is required for the Observability Dashboard tab in the RHOAI UI to show metrics. Without it, the DSCI monitoring section remains empty (metrics: {}) and the dashboard has no data source.
Wait for the DSCI to reconcile:
Step 5: Enable Gateway Telemetry
The RHOAI operator auto-creates a TelemetryPolicy and an Istio Telemetry CR when telemetry is enabled on the MaaS tenant configuration. These add per-model, per-subscription, and per-organization labels to gateway Prometheus metrics. No manual YAML application is needed.
MaasTenantConfig
Patch the MaasTenantConfig to enable telemetry:
The operator creates a TelemetryPolicy with model, subscription, organization_id, and cost_center labels, plus an Istio Telemetry CR for REQUEST_DURATION per subscription. Verify they exist:
Enable per-user metrics, which the MaaS UI Usage tab needs to show per-user activity (RHOAI disables captureUser by default for GDPR compliance):
Tenant
Patch the Tenant CR to enable telemetry:
Verify the auto-created resources:
The manifests in manifests/07-observability/telemetry/ are kept as a reference. The operator-created resources may differ slightly in label expressions and dimensions. You do not need to apply them manually.
Step 6: Usage Dashboards with Loki (RHOAI 3.5+ Only)
RHOAI 3.5 introduces log-based usage dashboards that provide per-request token consumption, user attribution, and subscription tracking. Unlike the Prometheus-based metrics (which aggregate data), this approach emits structured OTLP access logs from the gateway and stores them in Loki for exact per-call granularity.
When enabled, the RHOAI operator automatically creates:
- EnvoyFilter
maas-model-access-logs- emits OTLP structured access logs from the gateway on every inference request - OpenTelemetry Collector
usage-logs- collects the access logs and exports them to the LokiStack - Tenancy Proxy
usage-logs-tenancy-proxy- filters user-scoped usage data so non-admin users only see their own consumption - Perses Dashboards - admin (
dashboard-4-maas-usage-logs-admin) and user-scoped (dashboard-5-maas-usage-logs) dashboards visible in the RHOAI console under Observe & monitor
Step 6a: Install the Loki Operator
Wait for the operator CSV:
Step 6b: Deploy S3 Storage for Loki
Loki requires S3-compatible object storage. For non-production deployments, the guide includes a MinIO setup:
This deploys MinIO in redhat-ods-monitoring, creates a loki bucket, a storage secret, and the LokiStack CR.
The LokiStack manifest uses gp3-csi as default StorageClass (common on AWS). If your cluster uses a different default (e.g. ocs-external-storagecluster-ceph-rbd on OCS), edit manifests/07-observability/usage-logging/lokistack.yaml before applying. For production, replace MinIO with an ObjectBucketClaim (NooBaa/ODF) or a cloud S3 bucket and update minio-secret with the real credentials.
Wait for the LokiStack to be ready:
Step 6c: Enable Usage Logging
Patch the MaaS Config to enable the usage logging pipeline:
The RHOAI operator will create the EnvoyFilter, OTEL Collector, Tenancy Proxy, and Perses Dashboards automatically. Verify:
The usage dashboards will appear in the RHOAI console under Observe & monitor > Dashboard, showing per-model token consumption, per-user breakdowns, and subscription usage.
Step 7: Limitador Persistence with Redis (Optional)
By default, Limitador stores rate-limit counters in memory. If the Limitador pod restarts, scales, or gets rescheduled, all counters reset to zero. For example, with a 7-day rate limit window, a pod restart on day 6 gives every user a full quota refresh for the remaining window period. For production deployments, configure Redis as a persistent backend so counters survive pod lifecycle events.
Limitador supports additional storage backends beyond Redis. See the Limitador configuration documentation for details. This guide focuses on Redis.
Step 7a: Deploy Redis (Dev/Test)
Wait for the Redis deployment:
This deploys a single-replica, non-HA Redis instance with persistence disabled (no RDB/AOF). Data is stored in memory only and will be lost if the Redis pod itself restarts. This is for development and testing. For production, use a supported Redis-based data store - see the production guidance below.
Step 7b: Configure Limitador for Redis
Patch the Limitador CR to use the Redis secret created by the kustomize manifests:
The Limitador operator will restart the pod automatically.
Step 7c: Verify Redis Connection
Verify the Limitador CR has the Redis storage configured:
Test that counters survive a pod restart. First make a few inference requests (using an existing API key) to populate Redis, then restart Limitador:
If the DBSIZE is the same before and after the restart, counters survived and Redis persistence is working.
Production Redis guidance
For production deployments, use a supported Redis-based data store instead of the dev instance above. Supported options include Redis Enterprise, Amazon ElastiCache, and Dragonfly.
The configuration is the same - create a Secret with the Redis URL and patch the Limitador CR:
For complete production setup steps, see the Red Hat Connectivity Link - Configure Redis documentation.
The Track model usage with the OpenShift AI Usage Dashboard article explains how Limitador counters feed the usage dashboard metrics (authorized_calls, rate_limited, authorized_hits). Without Redis, these metrics reset on pod restart. For accurate long-term usage tracking, RHOAI 3.5 also provides logs-based usage dashboards (Step 6 above) which are independent of Limitador counter persistence.
Verification
Check all four observability operators are installed:
Check the required CRDs are registered:
Check the TelemetryPolicy exists (auto-created by the operator):
Check the Istio Telemetry exists (auto-created by the operator):
If these resources are missing, verify that spec.telemetry.enabled: true is set on the MaasTenantConfig (3.5) or Tenant (3.4) CR.
Check Redis is running (if deployed):
Appendix
Directory Structure
References
- RHOAI 3.5 - Enabling the observability stack
- RHOAI 3.4 - Enabling the observability stack
- Cluster Observability Operator documentation
- RHOAI 3.5 Observability dashboard
- RHOAI 3.4 Observability dashboard
- Kuadrant TelemetryPolicy
- Track model usage with the OpenShift AI Usage Dashboard
- MaaS upstream - Logs-based Usage Dashboards
- RHCL - Configure Redis for Limitador
- MaaS upstream - Limitador Persistence
- Limitador server configuration (storage backends)
Next step
Proceed to Phase 8: External Models.