Health is a relationship, not a collection of green panels
At 02:17, a payment API in Johannesburg began timing out. CPU stayed below 40%, memory looked normal and every Kubernetes pod reported “Running”. The useful clue was elsewhere: packet loss between the application nodes and a database hosted…
Real-Time Infrastructure Health Analytics: From Noisy Dashboards to Faster Incident Decisions
At 02:17, a payment API in Johannesburg began timing out. CPU stayed below 40%, memory looked normal and every Kubernetes pod reported “Running”. The useful clue was elsewhere: packet loss between the application nodes and a database hosted in another availability zone. A single infrastructure dashboard had flattened that signal into an average latency line, so the first response focused on restarting healthy containers.
This is the problem Real-Time Infrastructure Health Analytics should solve. It is not simply a larger dashboard or more alerts. It is the practice of joining metrics, logs, traces and infrastructure context quickly enough to explain whether a system is healthy, degraded or approaching failure.
Health is a relationship, not a collection of green panels
Traditional monitoring asks whether a host has crossed a threshold. Real-time health analytics asks whether several related signals describe the same user-impacting condition.
- Prometheus measures resource saturation, request rates, errors and latency.
- Loki preserves the log detail needed to explain failed requests or noisy nodes.
- Tempo connects a slow user transaction to the service, database call or external dependency responsible for the delay.
- Mimir provides durable, horizontally scalable storage for Prometheus-compatible metrics across clusters and regions.
The distinction matters in a hybrid South African estate. A retail platform may run workloads in a local cloud region, retain an on-premise database, and depend on a payment or identity provider reached through a congested last-mile link. “All servers are up” says very little when the customer journey crosses four networks.
Modern observability practice is also moving towards common telemetry pipelines and eBPF-assisted visibility. Grafana Labs’ 2024 survey reported broad investment in Prometheus and OpenTelemetry, while its 2025 outlook highlighted the convergence of profiling, tracing and platform engineering around eBPF.[8][1] The practical lesson is to standardise telemetry before adding more visual panels.
Build the signal path before designing the dashboard
A useful architecture starts at the workload and ends at a queryable, retained data set. Prometheus should scrape node exporters, kube-state-metrics, application endpoints and exporters for databases, load balancers and network devices. An OpenTelemetry Collector or Grafana Alloy can receive application telemetry, add consistent attributes and route data to the appropriate backend.
Keep dimensions deliberate. Every metric label multiplies storage and query cost. service, cluster, namespace, region and environment are usually useful. Request IDs, user IDs and unbounded URLs are not suitable metric labels; place that detail in logs and traces instead.
apiVersion: v1
kind: ConfigMap
metadata:
name: alloy-observability
data:
config.alloy: |
prometheus.remote_write "mimir" {
endpoint {
url = "https://mimir.example.net/api/v1/push"
}
}
loki.write "central" {
endpoint {
url = "https://loki.example.net/loki/api/v1/push"
}
}
otelcol.receiver.otlp "apps" {
grpc {}
http {}
output {
traces = [otelcol.exporter.otlp.tempo.input]
}
}
The configuration is intentionally small. Authentication, TLS, tenant headers and buffering belong in the production deployment, but the data flow should remain understandable: collect, enrich, route and retain.
Use trace context consistently across services. When a latency alert fires, the responder should be able to move from a Prometheus time series to a Loki log line and then to the exact Tempo trace without manually guessing which request belongs to which failure.
Make load shedding and connectivity visible to the model
Load shedding changes infrastructure behaviour in ways ordinary thresholds often miss. A site may lose mains power, switch to batteries, reduce cooling capacity or fail over a network circuit without immediately exhausting CPU or memory. Treat power and connectivity as first-class telemetry where possible.
Export UPS battery percentage, generator state, transfer-switch state, site temperature, BGP status and WAN packet loss. Add an explicit site or power-zone label. A dashboard that shows application availability alongside these signals can distinguish a service fault from a facility constraint.
Alerting also needs operating modes. During a planned outage, suppressing every alert is dangerous; suppressing only alerts whose symptoms are expected is safer. For example, a node-down alert may be routed to the facilities channel while customer-impacting error-rate alerts remain active.
- alert: RegionalRequestFailureRate
expr: |
(
sum by (region) (rate(http_requests_total{status=~"5.."}[5m]))
/
sum by (region) (rate(http_requests_total[5m]))
) > 0.03
for: 10m
labels:
severity: critical
annotations:
summary: "5xx rate elevated in {{ $labels.region }}"
description: "Check traces, dependency latency and site connectivity."
Do not alert on a single scraped sample. The for window prevents brief scrape gaps from becoming incidents, while regional grouping exposes whether a fault is isolated or widespread.
Turn four telemetry types into one investigation path
Metrics are excellent for detecting change. Logs provide the narrative around that change. Traces reveal the dependency path. Profiles and eBPF data can explain kernel, network or runtime behaviour when conventional instrumentation is absent.
- Start with a service-level symptom: availability, latency or saturation.
- Use a metric exemplars link to open a representative trace.
- Search Loki with the trace ID, service name and deployment version.
- Compare the affected region, cluster and instance with a healthy peer.
- Check whether the same interval contains network loss, power events, deployment changes or dependency errors.
Grafana is particularly useful here because one investigation surface can combine Prometheus-compatible metrics, Mimir data, Loki logs and Tempo traces without forcing responders to copy timestamps between unrelated tools. The value is not visual polish; it is reducing the number of context switches during the first ten minutes of an incident.
Use recording rules for common health calculations. A precomputed service error ratio is easier to alert on and cheaper to display than repeating a complex query across every dashboard panel.
groups:
- name: service-health
interval: 30s
rules:
- record: service:http_error_ratio:5m
expr: |
sum by (service, region) (
rate(http_requests_total{status=~"5.."}[5m])
)
/
sum by (service, region) (
rate(http_requests_total[5m])
)
Measure health in rand, milliseconds and blast radius
Cloud-cost pressure makes retention and cardinality operational decisions, not merely observability preferences. Store high-resolution metrics and detailed logs for the period needed to respond to incidents, then downsample or archive older data. Mimir can support centralised metric retention, but teams still need policies for labels, tenants and query limits.
Track cost-related dimensions alongside technical health: account, cluster, workload, region and environment. A sudden increase in telemetry volume can indicate a runaway log loop or cardinality explosion. It can also create a ZAR-denominated bill that becomes an incident in its own right.
For services used across Africa, chart latency by geography rather than relying on one global average. A Johannesburg client reaching a local endpoint and a user traversing the network to eu-west should not share a single percentile. Record DNS time, connection time, TLS negotiation, server processing and total duration where the client allows it.
Data sovereignty must shape the pipeline. POPIA-sensitive payloads should not be copied into labels or raw logs merely because central search is convenient. Redact at the collector, restrict tenant access, encrypt transport and decide deliberately which telemetry may leave South African infrastructure. A trace that contains an email address is not harmless metadata.
Replace “is it up?” with decisions the on-call engineer can take
A practical health view should answer five questions immediately:
- Which customer journey is affected?
- Where is the fault geographically and technically?
- Did the condition begin after a deploy, failover, power event or network change?
- Which dependency is contributing the most latency or errors?
- What action is safe now: rollback, fail over, shed load, restore capacity or wait?
Each dashboard panel should support one of those questions. Remove CPU graphs that never influence a decision. Keep the node and pod panels available for drill-down, but do not let them dominate the first screen when the service is failing because of an upstream dependency.
Real-Time Infrastructure Health Analytics becomes valuable when it shortens the path from symptom to justified action. A well-designed stack does not promise that incidents disappear. It makes the evidence coherent: Prometheus or Mimir shows the change, Loki supplies the surrounding facts, Tempo exposes the call path, and the platform context explains whether the cause is code, capacity, connectivity or power.