Why hybrid failures hide in healthy dashboards
At 18:07, the Cape Town office did not lose its application. It lost the path to it. A brief fibre interruption forced traffic through a backup route, increasing round-trip latency to eu-west-1 just enough to make authentication retries…
Predictive Failure Detection for Hybrid Clouds: Catching the Fault Before Johannesburg Notices
At 18:07, the Cape Town office did not lose its application. It lost the path to it. A brief fibre interruption forced traffic through a backup route, increasing round-trip latency to eu-west-1 just enough to make authentication retries pile up. Prometheus showed healthy CPU. Kubernetes showed all pods running. The first useful signal was a rise in request duration, followed by a queue that had nowhere left to drain.
That is the uncomfortable gap Predictive Failure Detection for Hybrid Clouds is meant to close: identifying the conditions that precede an outage, rather than waiting for a service check to turn red. It is not a promise that machine learning will predict every failure. It is a disciplined combination of historical baselines, cross-system signals, traces, logs and operational context.
Why hybrid failures hide in healthy dashboards
Hybrid estates create failure modes that do not belong neatly to one platform. A workload may run in a private data centre, call an API in a South African cloud region, store files in object storage and depend on a database replicated to Europe. Each component can report “up” while the user experiences a broken transaction.
Common precursors include:
- Increasing packet loss between an on-premises network and a cloud virtual network.
- Longer TLS handshakes or DNS lookups before application latency becomes visible.
- Replication lag that grows during a backup window.
- Filesystem saturation caused by logs, database compaction or container image pulls.
- Cloud API throttling during an automated scale-out event.
- Power interruptions that cause repeated failover and recovery cycles.
- Higher egress traffic and rising ZAR costs caused by an unexpected routing change.
Traditional thresholds are poorly suited to this behaviour. A static alert at 80% CPU will miss a network problem, while a static latency threshold may page every time a South African user reaches a slower European dependency. Predictive detection begins with a better question: what normally happens for this service at this time, under this traffic pattern, and what is changing together?
Build the signal path before choosing an algorithm
The first implementation should not be a machine-learning project. It should be a reliable signal path with consistent labels. Prometheus collects infrastructure and application metrics from both the private estate and cloud workloads. Remote write sends selected series to Mimir for durable, horizontally scalable storage and cross-environment queries.
Keep labels useful and bounded. region, environment, cluster, service and dependency are generally more valuable than request IDs or customer identifiers. High-cardinality labels make historical analysis expensive and can destabilise the very monitoring system responsible for detecting failure.
Use Loki for logs, but do not treat log volume as a proxy for application health. Parse structured events such as connection retries, circuit-breaker openings, replication warnings and kernel errors. Tempo then connects the metric and log clues to distributed traces, showing whether latency is being introduced by the application, a database, a network hop or a remote dependency.
A practical architecture looks like this:
- Prometheus or Grafana Alloy gathers local metrics close to each workload.
- Mimir stores the selected metrics centrally, with separate tenants or retention policies where required.
- Loki receives structured logs with sensitive fields removed or masked at collection time.
- Tempo stores traces with sampling rules that retain errors and slow transactions.
- Grafana correlates the signals in dashboards, alert rules and incident views.
- Alertmanager routes warnings to the owning team and pages only when a forecasted breach has operational significance.
This separation matters in South Africa. A monitoring system that depends on one cross-border link is not resilient monitoring. Collect locally during a WAN interruption, buffer where possible, and distinguish “the service is failing” from “the observability path is disconnected”. POPIA and contractual data-residency requirements also mean that traces and logs should be classified before they are exported outside the country. Data sovereignty is increasingly part of cloud architecture discussions in South Africa, alongside the 2024 National Data and Cloud Policy focus on cloud governance.[3]
Turn historical behaviour into a forecast
Start with robust, explainable baselines. For a service with strong daily patterns, compare the current value with the same period on previous days. For noisier workloads, use a moving median and deviation. A forecast is useful only when engineers can explain why it fired.
For example, the following PromQL detects a sustained increase in the 95th-percentile request duration compared with a seven-day baseline. The exact window and multiplier must be tuned against the service’s normal behaviour:
(histogram_quantile(
0.95,
sum by (le, service) (
rate(http_request_duration_seconds_bucket[10m])
)
)
/
(
avg_over_time(
histogram_quantile(
0.95,
sum by (le, service) (
rate(http_request_duration_seconds_bucket[10m])
)
)[7d:10m]
)
)
) > 1.5
and
sum by (service) (rate(http_requests_total[10m])) > 1This does not predict a failure on its own. It says that latency is materially above its recent baseline while the service is receiving traffic. Pair it with a second condition: rising queue depth, database wait time, packet loss or error rate. A warning becomes more credible when independent signals move in the same direction.
For load-shedding-aware alerting, add operational context rather than suppressing alerts blindly. During scheduled outages, a site may legitimately lose connectivity to cloud dependencies. The alert should identify the expected power window, record the affected site and page only for unexpected behaviour, such as a UPS battery draining faster than planned or a failover link failing to establish.
Use traces and logs to test the prediction
Metrics can forecast that a transaction is deteriorating; traces often reveal why. Suppose a payment request is 400 milliseconds slower than its baseline. Tempo may show that 320 milliseconds is spent waiting for a fraud-check API in eu-west-1, while the local application and database remain within normal bounds.
Loki can then confirm whether retries or connection resets are increasing:
{service="payments", environment="production"}
| json
| level="warn"
|~ "timeout|connection reset|retry"
| count_over_time([10m]) > 20That combination supports a more useful incident message: “European fraud dependency latency is 1.8 times baseline and timeout warnings have exceeded normal volume for ten minutes.” It is substantially better than “payments latency high”.
Grafana dashboards should expose the relationship, not merely place four panels beside one another. Link a service’s latency graph to traces filtered by the same service and time range. Add log-derived counters for retry and failover events. Include a small panel for scrape health, remote-write backlog and timestamp freshness so engineers can see whether the forecast is based on current data.
Reduce false positives with SLOs and cost signals
Prediction without an action policy becomes another source of alert fatigue. Define what the team will do at each confidence level:
- Observe: an unusual metric with no user impact; annotate the dashboard and continue collecting evidence.
- Investigate: two correlated precursors, such as rising latency and queue depth; open a ticket or notify the service channel.
- Page: a forecasted SLO breach with a clear owner and a plausible mitigation.
- Automate: execute a tested response, such as shifting traffic, reducing batch concurrency or increasing a connection pool.
Cost is part of the prediction in a ZAR-sensitive environment. A runaway cross-region transfer may not cause an outage, but it can create an operational incident. Track egress bytes, cloud API calls and storage growth beside service demand. A sudden increase in traffic leaving a South African region should trigger a routing review before the invoice arrives.
Recent observability research reflects this direction: Grafana Labs reported that training-based alerts were the most requested AI/ML observability capability in its 2025 survey, while faster root-cause analysis was another leading request.[1] That does not justify replacing engineering judgement with an opaque model. It supports investing in alerts that learn normal behaviour and provide evidence engineers can inspect.
Roll out Predictive Failure Detection for Hybrid Clouds safely
Choose one service with a measurable SLO and a known dependency chain. Capture at least several weeks of normal behaviour, including month-end processing, maintenance windows, backup periods and connectivity changes. Run predictive rules in shadow mode first: calculate alerts without paging, then review what would have happened.
- Define the service owner, SLO and failure budget.
- Map local, cloud and cross-region dependencies.
- Standardise metric labels and trace attributes.
- Store only the telemetry needed for the diagnostic purpose.
- Create baseline rules for latency, errors, saturation and dependency health.
- Correlate warnings with Loki events and Tempo traces.
- Measure false positives, missed incidents and lead time before enabling paging.
- Add runbooks that describe a human response to each forecast.
Review the rules after every real incident. If a forecast gave the team 20 minutes of lead time, preserve the conditions that made it useful. If it paged during a planned Eskom-related transition, encode that context properly instead of adding a permanent mute.
The strongest implementation is not the one with the most sophisticated model. It is the one that detects a meaningful change early, explains the evidence, respects data boundaries and gives an on-call engineer enough time to act. In a hybrid cloud spanning Johannesburg, Cape Town, private infrastructure and eu-west, that practical lead time is often worth more than a perfect prediction that arrives after the service has already failed.