Monitoring
Set up Prometheus metrics, structured log queries, and alert rules for the Cluster Readiness Engine (CRE) controller.
Prometheus integration
ServiceMonitor
The Helm chart installs a ServiceMonitor for the Prometheus Operator by default (metrics.serviceMonitor.enabled: true; set it to false on clusters without the Prometheus Operator CRDs). The shipped monitor scrapes the controller’s HTTPS metrics endpoint:
Verify it is installed:
Key metrics
The table below highlights the most important metrics. See the Metrics Reference for the full list, labels, and example PromQL queries.
Structured logging
The controller emits structured zap logs. In the shipped manager configuration, zap development mode is enabled, so logs use console encoding unless you set --zap-encoder=json.
Key fields
Log levels
Enable debug logging by adding the flag to the manager container args in the Deployment spec:
Example log queries
Using Loki or a similar log aggregation system (adjust the stream selector to how your agent labels the controller pods — the pods carry the control-plane=manager label in the cluster-readiness-engine namespace):
If you switch the manager to JSON logs with --zap-encoder=json, you can filter on fields like controller, name, and reconcileID directly in your log backend.
Recommended alerts
Production GPU fleets require alerting across three dimensions: hardware failures (GPU faults, NVLink errors, ECC violations detected during workloads), performance regressions (bandwidth or goodput falling below expected thresholds), and operational health (controller reconciliation latency, error rates). The starter rules below cover all three.
Tune alert thresholds: the for durations and thresholds above are starting points. Adjust them based on your workload profiles — long-running multi-day training jobs will need a longer CREJobStuck threshold.
Next steps
- Metrics Reference — Full list of metrics with labels and PromQL examples.
- Troubleshooting — Diagnose issues using logs and metrics.
- Deployment — Resource sizing and health-check configuration.