Skip to main content

Kubernetes Monitoring

Kubernetes Monitoring for Uptime

Which Kubernetes metrics to watch for uptime (pod readiness, restarts, replicas, node conditions), how probes and alerts work, and why an external website check belongs next to Prometheus and Grafana.

Rai AnsarFounder of Visual Sentinel10 min read

Kubernetes Monitoring for Uptime

What Metrics Track Kubernetes Cluster Uptime Effectively?

Track four things: whether pods are ready, whether containers keep restarting, whether deployments have the replicas they should, and whether nodes are Ready. kube-state-metrics, a service that listens to the Kubernetes API server and generates metrics about the state of its objects, exposes all four for Prometheus.

MetricWhat it tells you
kube_pod_status_readyWhether a pod is ready to serve requests (use the series with condition="true")
kube_pod_status_phaseThe pod's phase: Pending, Running, Succeeded, Failed or Unknown
kube_pod_container_status_restarts_totalA counter of container restarts; a climbing value means a crash loop
kube_deployment_status_replicas_available against kube_deployment_spec_replicasReplicas available compared with the number you asked for
kube_node_status_conditionA node's conditions, such as Ready, with a status of true, false or unknown

Pod health also depends on probes. A liveness probe that fails makes the kubelet restart the container. A readiness probe that fails does not restart anything: the pod is marked not ready and removed from the matching Service's endpoints until it passes again. The defaults are a probe every 10 seconds (periodSeconds), a 1-second timeout, and 3 consecutive failures before the probe counts as failed, so a broken container is noticed after roughly 30 seconds unless you tune them. A basic HTTP readiness probe looks like this:

readinessProbe:
  httpGet:
    path: /healthz
    port: 8080
  initialDelaySeconds: 3
  periodSeconds: 10

An alert for a deployment that is missing replicas, using a 10-minute wait you can change:

- alert: DeploymentReplicasMissing
  expr: kube_deployment_status_replicas_available < kube_deployment_spec_replicas
  for: 10m

Use Uptime Monitoring next to these metrics. The cluster can look healthy from inside while visitors cannot reach the site.

How Does Kubernetes Monitoring Detect Performance Bottlenecks?

Kubernetes monitoring uses Prometheus metrics to track resource usage and latency, and Grafana to graph them. For example, configure alerts above 80% CPU or 90% memory usage and latency over 500ms. These are example values; set yours from your own baseline. Speed Test provides a separate website performance check.

Configure Prometheus scraping and Grafana dashboards for the metrics you need. Prometheus scrapes every 1 minute by default, and many teams set 15 seconds for finer graphs. In Grafana, plot pod restarts, CPU against the requests you set, memory against limits, and API server response time, and compare the graphs with your normal range.

Resource Utilization Thresholds

For example, set CPU alerts at 80% and memory alerts at 90% of the limit you set for a workload. A pod that exceeds its memory limit is killed, and a node under memory or disk pressure starts evicting pods, so watch usage against limits before the pressure shows up as evictions.

Network Latency Checks

Request latency is best measured at the ingress. Most ingress controllers expose a request duration histogram that Prometheus can scrape. Alert on the 95th percentile staying above a value you choose (500ms is an example) for several minutes, and compare it with an external check of the same endpoint to see whether visitors feel it.

What Tools Integrate Kubernetes Monitoring with Website Uptime?

Cluster tools see inside the cluster; an external check sees what a visitor sees. Use one of each. Prometheus, Datadog and New Relic collect cluster and application metrics. Visual Sentinel checks your public site from Europe and the US, every minute on Business and Agency and every 5 minutes on Solo and Starter. Visual Monitoring compares screenshots for UI changes, which no cluster metric shows.

See Visual Sentinel vs Datadog for what each tool checks.

ToolWhat it watchesPricing basis
PrometheusCluster and application metrics you scrape (default scrape interval 1 minute)Free, open source
DatadogHosts, containers and cluster metrics, plus its own synthetic testsInfrastructure Pro is $15 per host per month billed annually ($18 on demand)
New RelicTelemetry from the cluster and applications100 GB of data a month free, then $0.40 per GB, plus per-user pricing
Grafana CloudHosted metrics, logs and dashboardsFree tier (10,000 active series, 50 GB of logs); Pro from $19 a month plus usage
Visual SentinelYour public site from outside: uptime, SSL, DNS, visual and content checksFrom $15/month (Solo), no free plan; Business is $80/month for 60 monitors

How to Set Up Alerts for Kubernetes Downtime Prevention?

Set up Kubernetes alerts for pod crashes and unavailable replicas, and check etcd health separately. Prometheus evaluates the alert rules and sends firing alerts to Alertmanager, which routes them to Slack, email or PagerDuty. A crash-loop alert might use increase(kube_pod_container_status_restarts_total[15m]) > 3 (example values) and a 1% error rate is a reasonable example threshold for application metrics. Send a test alert to Slack before you depend on it. Website Checker provides a separate on-demand website availability check.

etcd serves /metrics and the health endpoints /health, /livez and /readyz (the last two from etcd 3.5.12), and the etcd project publishes default Prometheus alerts in its repository's contrib/mixin directory. Test pod-crash alerts and etcd backup restoration in a suitable environment, and note how long detection and recovery take on your cluster.

Alert Threshold Configuration

For example, alert above a 1% error rate, below 95% pod readiness, or above 80% CPU usage. Write each as a Prometheus rule with a for: wait so a brief spike does not page anyone, then trigger the failure on purpose in a test environment to confirm the alert fires.

Notification Channels

Configure Slack, email and PagerDuty in Alertmanager according to the team's response procedures. Send a test alert through each route, check that escalation reaches the right person, and look into any alert that does not arrive.

What Role Does SSL Monitoring Play in Kubernetes Security?

SSL monitoring checks certificate validity and approaching expiry. In a cluster, certificates are often issued by cert-manager, which by default renews a 90-day certificate about 30 days before it expires. If a renewal fails, the Certificate shows a problem (check it with kubectl describe certificate) while the ingress keeps serving the old secret until it expires. SSL Checker checks a public website certificate when you run it.

SSL Monitoring provides Visual Sentinel certificate checks and expiry reminders, 13, 3 and 1 days before expiry by default (20 and 6 days optional). Because it checks the certificate your ingress actually serves, it catches a renewal that failed silently. After a renewal, verify that the new certificate is installed on the endpoint.

How Does DNS Monitoring Enhance Kubernetes Cluster Reliability?

DNS monitoring helps teams notice when the public records that send visitors to your cluster change. Public DNS (the A and CNAME records that point to your load balancer) is separate from the DNS inside the cluster that resolves service names. DNS Checker checks public DNS records on demand.

DNS Monitoring takes scheduled snapshots of selected A, AAAA, CNAME, MX, TXT and NS records and alerts when one differs from the previous snapshot. If the load balancer's address changes and the record does not, you will see traffic fail while the cluster looks fine.

DNS Propagation Checks

After you change a record, resolvers keep serving the old answer until its TTL expires. Keep the old target running until the TTL has passed, and use DNS Checker to see what the new answer is.

Service Discovery Integration

Inside the cluster, CoreDNS resolves service names. If pods cannot resolve a service name, check that the CoreDNS pods are running and read their logs, and confirm the Service has endpoints. That is separate from your public DNS records.

What Are Common Kubernetes Outage Scenarios and Fixes?

Kubernetes outages can involve node failures, etcd quorum loss or storage problems. Each leaves a different signal. Content Monitoring detects website content changes for investigation.

Test recovery and backup procedures for each failure type, and write down the detection and recovery times you measure. Read More articles for monitoring guidance.

Node Failure Recovery

When a node fails, kube_node_status_condition for Ready stops being true and its pods are rescheduled onto other nodes if there is capacity. Check kubectl get nodes and kubectl describe node, and confirm the cluster has the capacity (or autoscaling) to absorb the pods. Test node recovery and alert delivery for your cluster.

Storage Volume Issues

A pod stuck in Pending or ContainerCreating with attach or mount errors in its events points at a persistent volume that is not attaching, often because it is still attached to a failed node. Read kubectl describe pod and confirm storage recovery before considering the incident resolved.

ScenarioSignalFirst action
Node failurekube_node_status_condition Ready is not true; pods rescheduledkubectl describe node; check capacity
Etcd quorum lossAPI server errors or timeouts; etcd /readyz or /health failingCheck etcd member health; restore from backup if quorum cannot be recovered
PVC detachmentPods stuck in Pending or ContainerCreating; attach errors in eventskubectl describe pod; check where the volume is attached
Pod evictionPods in Failed with reason Evictedkubectl describe pod for the reason; check node memory and disk pressure

Evicted pods can signal resource pressure. Read the eviction reason and the node's conditions.

How to Compare Kubernetes Monitoring Tools for DevOps?

Compare tools by what they check: cluster tools look inside, external tools look from the visitor's side. Prometheus with Grafana covers cluster internals for free if you can run it. Datadog and New Relic add hosted dashboards and alerting at a per-host or per-data price. Grafana Cloud hosts Prometheus-style metrics and has a free tier. Visual Sentinel plans start at $15 a month and check your public site from the outside, including screenshots of the page against a visual baseline. Visual Sentinel vs UptimeRobot compares the two. UptimeRobot also offers keyword, port, DNS, heartbeat and SSL monitors, so the comparison is not uptime-only.

A small team can run Prometheus, Grafana and one external check on the site the cluster serves. The prices in the table above are the ones listed on each vendor's pricing page at the time of writing, so check them before you decide.

Add Performance Monitoring next to the cluster metrics, and set alerts on the metrics you watch. To start, run the first check on the site your cluster serves (it needs no card; the 7-day trial after it needs one), then add the alerts above and test them before you need them.

To hear when your own site goes down, see how uptime alerts work in Visual Sentinel.

kubernetes monitoringdevops toolsuptime preventioncluster performancecontainer outages

Check your site while you read

Run a free check for regional reachability, response time, redirect handling, TLS evidence, and DNS resolution. No account is required.

Check a site free

Common questions

What Metrics Track Kubernetes Cluster Uptime Effectively?

Key metrics include pod readiness (`kube_pod_status_ready`), container restarts (`kube_pod_container_status_restarts_total`), deployment replicas available against desired, and node conditions (`kube_node_status_condition`). kube-state-metrics exposes them for Prometheus. Readiness and liveness probes run every 10 seconds by default, with 3 failures before they count as failed.

How Does Kubernetes Monitoring Detect Performance Bottlenecks?

Track CPU, memory and request latency in Prometheus and graph them in Grafana. Compare CPU against requests and memory against limits, set thresholds from your own baseline (for example 80% CPU or 90% memory), and watch the 95th percentile request duration at the ingress.

What Tools Integrate Kubernetes Monitoring with Website Uptime?

Use a cluster tool such as Prometheus, Datadog or New Relic for what happens inside the cluster, and an external check for what visitors see. Visual Sentinel checks your public site from Europe and the US, every minute on Business and Agency and every 5 minutes on Solo and Starter.

How to Set Up Alerts for Kubernetes Downtime Prevention?

Write Prometheus alert rules for crash loops (container restarts), missing replicas and unready nodes, route them through Alertmanager to Slack, email or PagerDuty, and check etcd health separately. Send a test alert through each route before you rely on it.

What Role Does SSL Monitoring Play in Kubernetes Security?

SSL monitoring checks certificate validity and approaching expiry on the certificate your ingress actually serves. It catches a cert-manager renewal that failed silently, but you still need to fix the renewal and make sure the new certificate is installed.

How Does DNS Monitoring Enhance Kubernetes Cluster Reliability?

DNS monitoring records your public DNS records and alerts when one changes, so a changed load balancer address or a dropped record does not go unnoticed. Public website DNS is separate from internal cluster service discovery (CoreDNS), which you check inside the cluster.

Related

  • Monitor Kubernetes Gateways for Performance

    kubernetes monitoring

    Monitor Kubernetes Gateways for Performance

    Kubernetes gateways route incoming traffic to services. Review request rates, latency, errors and resource observations alongside external website checks, and test capacity and scaling conditions for the actual workload.

    Rai Ansar10 min read

  • Worst Infrastructure Monitoring Mistakes

    infrastructure monitoring

    Worst Infrastructure Monitoring Mistakes

    Overlooked monitoring layers can leave infrastructure issues unnoticed. This guide explores uptime, SSL, DNS, visual and content checks that help sysadmins investigate website problems.

    Rai Ansar7 min read

  • Kubernetes Monitoring in 2026

    kubernetes monitoring

    Kubernetes Monitoring in 2026

    Kubernetes monitoring combines cluster, node, pod and application observations. Use Prometheus metrics, Grafana dashboards, logs and traces alongside external website checks to investigate availability and performance against chosen service objectives.

    Rai Ansar11 min read

Stop guessing whether your site still works.

Your first check is free when you add your site. Then try a paid plan for 7 days (card required) or subscribe, from $15 USD a month.

Start 7-day trialSee pricing