Why Kubernetes control plane monitoring is the first alert set to get right
Control plane monitoring is the first alert set to get right because a failing kube-apiserver or etcd can take down an entire self-managed cluster. Watch kube-apiserver request latency and error rates, scheduler and kube-controller-manager health, etcd disk sync and leader changes, and certificate expiry, and page only on conditions that need a human to act. Everything else can go to a dashboard or a ticket queue. The work lies in three places: choosing signals that map to real failure modes, scraping them reliably from every control plane node, and tuning thresholds so the on-call team trusts the pages it receives.
The topology you chose sets what you must scrape. In the stacked kubeadm layout described in the kubeadm high availability guide, each control plane node runs kube-apiserver, the scheduler, the controller manager and an etcd member, so a single node failure can degrade several components at once. In the external etcd layout, etcd has its own hosts and its own failure domain, and your alerts need to cover both tiers. The high availability guide also places a TCP load balancer in front of kube-apiserver on port 6443, so you should monitor the load balancer health checks alongside the API server metrics. Confirm with your distribution's documentation which endpoints and ports expose metrics in your version, because scrape targets and certificate paths differ between installers.
The etcd guidance sets the baseline for etcd alerts. Kubernetes documentation recommends an odd number of members, with five in production, so a quorum survives the loss of two members. A leader change is not an outage by itself, but frequent changes usually point to disk latency or network trouble, and that pattern deserves a page only when it persists. Pair the etcd alerts with a scheduled snapshot check, because a monitoring system that reports healthy members does not prove you can restore. kube-prometheus-stack is the usual starting point for scraping these components, but its default rules are a baseline to tune, not a finished paging policy.
Which control plane components to watch and what each one tells you
A control plane outage rarely announces itself as one failure. A slow API server, a stalled scheduler or a lagging controller can each look like an application problem until the cluster stops reconciling. The cards below cover the components and dependencies to watch, what each degraded signal means for the cluster, and what to confirm in your own version before you write alert rules.
kube-apiserver latency and errors
The API server is the front door for every kubectl call, controller loop, kubelet heartbeat and admission webhook. Track request latency by verb and resource, and the rate of 5xx responses, since rising latency on LIST and WATCH calls often shows up before workloads fail. Confirm the apiserver request duration and request total metric names in your version, and check whether your dashboards separate read-only from mutating requests so a single slow resource does not hide behind a cluster-wide average.
kubeadm HA guidekube-scheduler scheduling health
When the scheduler degrades, new pods stay in Pending while existing workloads keep running, so the failure looks like a capacity problem. Watch the scheduling attempt results and scheduling latency, and alert on pods that remain unscheduled for longer than your normal rollout time. Confirm the scheduler metric names and label values in your release, because the scheduler has changed its metrics across minor versions.
kube-controller-manager reconciliation
Controllers keep Deployments, ReplicaSets, Nodes, endpoints and service accounts converging on the state you declared. A controller that falls behind produces silent drift: replicas do not scale, dead nodes are not evicted, or new service accounts lack tokens. Watch workqueue depth and retry counts for the controllers you rely on, and compare them with the time it takes a test Deployment to reach its desired replica count. Confirm the workqueue metric names for your version.
etcd disk sync and leader changes
etcd stores all cluster state, and every write waits for a disk sync and a quorum of members. Slow WAL fsync and backend commit durations, frequent leader changes and failed proposals point to slow disks, network jitter or an overloaded member, and they stall the whole API server. Kubernetes recommends an odd number of etcd members, with five members in production. Confirm the etcd metric names and the recommended fsync thresholds with the etcd version you run.
- Recommended production members
- 5
Certificate expiry
Kubernetes components authenticate with X.509 client and serving certificates, and an expired certificate stops the affected component from talking to the API server with no gradual warning. Track the expiry time of every certificate in the control plane, including the etcd peer and client certificates, the front-proxy certificates and any certificate your kubelets use. Alert with enough lead time for a planned renewal, and confirm how your distribution rotates each certificate.
Kubernetes authentication docsLoad balancer in front of port 6443
In a highly available control plane, a TCP load balancer distributes client traffic across kube-apiserver instances on port 6443. If it fails or a backend stays in rotation after its API server stops answering, clients see timeouts even though the control plane is healthy behind it. Monitor the health check status of each backend, the connection error rate on the virtual IP and the time to fail over when a control plane node is drained. Confirm the health check path your load balancer uses with your chosen topology.
How control plane signals flow from components to alerts
The diagram starts at the control plane components and the etcd members they depend on, which Prometheus scrapes over HTTPS metrics endpoints. The load balancer in front of kube-apiserver and the certificate files on each control plane node are checked by a probe and by a disk check instead, since they do not expose scrape data. Scraped series flow into alert rules, then to on-call routing and dashboards. Check first that every control plane target is up in Prometheus, then confirm that each certificate check reports the expiry you expect.
Scraped paths and probed or disk-checked paths both feed alert rules and dashboards.
Monitoring options for control plane and etcd and when each fits
This table compares the four main ways to watch the control plane and etcd: scraping with kube-prometheus-stack, exporter or probe checks for external etcd and certificates, managed alerting, and long-term retention with Thanos. Read each row against your topology, because stacked and external etcd create different scrape targets. The main takeaway is that scraping covers most control plane signals, while certificate expiry and external etcd health usually need checks you add yourself.
| Option | What it covers | When it fits | Trade-off |
|---|---|---|---|
| ServiceMonitors from kube-prometheus-stack | Scrapes kube-apiserver, kube-scheduler, kube-controller-manager and etcd metrics endpoints through Prometheus Operator resources | Stacked control plane, where etcd runs on the same nodes and its endpoints are reachable from the cluster | Some control plane components bind metrics to localhost by default, so you must confirm bind addresses and expose them safely before scraping |
| Exporter or probe checks for external etcd | Scrapes etcd members directly and checks health, leader state and certificate validity from outside the API | External etcd cluster, where etcd nodes are not in the Kubernetes cluster and need their own targets and credentials | You maintain the target list, TLS client configuration and scrape credentials yourself, and topology changes must be updated by hand |
| Certificate expiry probes | Reads expiry dates of API server, etcd, kubelet and front-proxy certificates and alerts before they lapse | Any topology, especially clusters where certificates are renewed by hand or on a schedule you do not fully control | Metrics for certificate expiry are not always exposed by default, so you must confirm which certificates your version reports and add probes for the rest |
| Managed or hosted alerting | Routes alerts from the metrics you already collect to an external on-call or incident service | Teams that want paging and escalation handled outside the cluster, so an outage in the cluster does not silence its own alerts | Metrics still leave the cluster when forwarded, so confirm data handling and residency requirements before sending control plane data outside your infrastructure |
| Thanos for long-term retention | Keeps months of control plane and etcd metrics in object storage and supports trend comparison across clusters | Capacity reviews, post-incident analysis of etcd disk latency and leader changes, and multi-cluster views | Adds components to run and object storage to size, and it does not replace a local alert path because queries depend on the stored data |
| Kubernetes events and API server audit logs | Records failed admission, leader election changes and API request patterns that metrics summarize poorly | Investigating who changed what during a control plane incident or proving audit coverage | Audit log volume grows quickly and must be filtered, and the audit policy must be configured before the event occurs |
How to set up control plane and etcd monitoring in order
This sequence turns an unmonitored self-managed control plane into one where every component and etcd member is scraped, certificate expiry is tracked, alerts are proven to fire, and on-call engineers have runbooks for each page. Each step closes with a check so you know it is finished before the next one starts.
Confirm topology and control plane endpoints
The platform engineer records which etcd topology the cluster uses, stacked on the control plane nodes or external, and lists every kube-apiserver, kube-controller-manager, kube-scheduler and etcd endpoint. The kubeadm high availability guide describes the stacked and external etcd topologies, with at least three control plane nodes and a TCP load balancer in front of kube-apiserver on port 6443. Done means a written inventory of nodes, addresses and ports that the scrape configuration will reference, and a confirmed view of which component runs where.
Expose metrics and secure scrape access
The cluster administrator confirms that each component exposes its metrics endpoint and decides how Prometheus authenticates to it. Kubernetes authenticates service accounts and clients through certificates, bearer tokens or webhook token authentication, so a scrape identity needs a read-only role and a token or client certificate that is rotated under the same policy as other credentials. Etcd metrics usually need client certificates, so the team copies those files into a secret the monitoring namespace can mount. Done means a test request from the Prometheus pod returns metrics from each endpoint with the new identity and is rejected without it.
Deploy scrape configuration for each component
The monitoring engineer adds scrape jobs for kube-apiserver, kube-controller-manager, kube-scheduler and each etcd member, using the TLS settings and credentials from the previous step. With kube-prometheus-stack, these are usually ServiceMonitor or scrape config resources, and the team must confirm that the chart version used in the cluster supports the control plane targets. Check that the scrape interval and certificate paths match the environment. Done means the configuration is applied in version control and Prometheus reloads without configuration errors.
Verify every target is up with expected labels
The monitoring engineer opens the Prometheus targets page or runs an equivalent query and confirms that every apiserver, controller manager, scheduler and etcd member appears as up. Each target should carry labels for the cluster, node or instance, and job, so that alerts can be grouped per member. Etcd members that appear twice or are missing point to a topology or address mistake from step one. Done means a query for the up metric returns one series per expected endpoint and no unexpected ones.
Add certificate expiry checks
The platform engineer adds an expiry signal for the control plane and etcd certificates, either through the API server's own certificate metrics or an exporter that reads certificate files on the nodes. Kubeadm-managed clusters rely on certificate renewal, so the team should confirm the renewal procedure and the alert threshold with the cluster operator instead of assuming a default. Done means a query returns the remaining validity for each certificate in use, and the value matches the result of inspecting the certificate on a node.
Load alert rules for control plane and etcd
The monitoring engineer loads alert rules for API server error rates and latency, scheduler and controller manager availability, etcd leader changes, etcd disk sync duration, failed etcd members and certificate expiry. Each rule should state its severity and whether it pages or creates a ticket, which the team agrees with the on-call owners before enabling it. Done means the rules appear as loaded in Prometheus with no evaluation errors, and each one has a named owner.
Test each alert with a controlled condition
The operator triggers each alert in a non-production cluster or a planned maintenance window, for example by stopping one etcd member in a three-member test cluster or by removing a scrape target, and confirms the alert fires, reaches the right receiver and clears after recovery. Testing the path from Alertmanager to the pager or chat channel is part of the check. Done means a dated record shows every rule fired and resolved, with the receiver that got the notification. Rules that never fired during testing are fixed before they are trusted.
Document runbooks for each paging alert
The operations lead writes one runbook per paging alert covering the likely causes, the commands or dashboards to check first, the escalation path and the recovery steps, including where etcd snapshot procedures apply. Etcd backup and restore steps should link to the cluster's documented backup plan rather than being rewritten. Done means each paging alert has a runbook that an engineer who did not build the stack can follow, and the on-call team has reviewed it once.
What etcd health signals mean for disk, leader and quorum
etcd writes every change to a write-ahead log and fsyncs it before acknowledging the write, so slow disks show up directly as slow API writes and, in severe cases, as leader instability. The signals to watch are the WAL fsync duration and the backend commit duration. Sustained high values usually mean the disk is shared with noisy neighbors, sits behind a saturated network volume, or is competing with logging or image pulls on the same device. Confirm the metric names and bucket layout for your etcd release, because they have changed across versions.
- WAL fsync duration: Rising percentiles here point at the disk that holds the write-ahead log, which is the first place to look.
- Backend commit duration: Slow commits indicate the database write path is waiting on storage, and they often follow fsync problems.
- Dedicated disk: Confirm etcd has its own low-latency device rather than a shared root volume.
- Database size growth: A growing backend without compaction and defragmentation can make commits slower over time.
- Benchmark before go-live: Test the disk with an etcd-oriented benchmark during the build, not after the first incident.
Check fsync and commit percentiles on every etcd member, not only the leader, and alert on sustained trends rather than single spikes.
etcd elects one leader per cluster, and every write goes through it. Frequent leader changes mean the members are not agreeing on heartbeats within the election timeout. The usual causes are slow disks stalling the leader, network packet loss or latency between members, or CPU starvation on etcd nodes. A single election during a node reboot is expected. Repeated elections over an hour are not, and they often show up as brief API timeouts and controller reconciliation delays before anyone notices the cause.
- Leader change count: A counter that increases repeatedly over a short window is the clearest sign of instability.
- Peer round-trip time: Compare latency between members, since asymmetric links can trigger elections that look random.
- Failed proposals: A rising count of failed proposals often accompanies elections caused by storage or network trouble.
- Election timeout settings: Confirm the heartbeat and election timeout values in your configuration match your network round-trip times.
- Node contention: Check whether etcd pods or processes share CPU with batch workloads.
When elections repeat, correlate them with fsync latency and peer network metrics before changing timeout values.
A cluster keeps accepting writes only while a majority of its members are healthy. An odd number of members gives the same fault tolerance as the next even number down while using fewer machines, so a three-member cluster tolerates one failure and a five-member cluster tolerates two. Kubernetes documentation recommends running etcd with an odd number of members and a five-member cluster in production. Losing quorum stops writes to the cluster, so the alerts that matter are member health, member count changes and the margin between healthy members and the majority threshold.
- Healthy member count: Alert when the count drops below the number you designed for, not only when quorum is lost.
- Margin to majority: A five-member cluster with one member down has less margin than it appears, so treat that state as urgent.
- Unplanned membership changes: Track adds and removes, since a half-finished replacement can leave the cluster with fewer voting members.
- Placement: Spread members across failure domains so one rack or zone failure does not remove a majority.
- Stacked or external topology: Confirm which topology you chose, because it changes how control plane node maintenance affects etcd.
Review the member list and placement after every node replacement, and confirm the expected count against your own design.
A backup is only useful if it is recent and if it restores. Kubernetes documentation describes taking snapshots with etcdctl snapshot save and restoring them with etcdutl, which is a separate tool from the client. Monitoring should show when the last successful snapshot was written, where it was stored and whether it was verified. The restore path also needs rehearsal, because the steps and flags differ between etcd releases and the first restore attempt should not happen during an outage.
- Snapshot age: Alert when the newest snapshot is older than the interval you committed to in your recovery plan.
- Storage location: Snapshots kept only on the etcd node they came from do not survive losing that node.
- Restore rehearsal: Restore a snapshot into a scratch environment on a schedule and record the result.
- Encryption at rest: Confirm the snapshot storage protects Secrets data, since etcd holds them unencrypted unless encryption at rest is configured.
- Version match: Confirm which etcd and etcdutl versions your restore procedure was written for.
In a quote or design review, ask who runs the restore rehearsal, how often it runs and where the evidence is kept.
Which control plane alerts are worth paging on
Which control plane conditions should page someone immediately?
Page immediately for conditions that stop the cluster from accepting or persisting changes: loss of etcd quorum, an API server that is unreachable or returning sustained errors to clients, and certificates that are about to expire with no renewal in progress. These conditions affect every workload and every deployment, and waiting for business hours turns a short incident into a long one. Keep the paging set small. Each page should name a condition that a responder can act on within the hour, and every other signal should route to a ticket or a dashboard.
Which etcd and control plane signals should open a ticket instead of paging?
Open a ticket for signals that degrade the cluster but do not stop it: a single etcd member that is slow to sync its disk, an occasional leader change that recovers without intervention, scheduler or controller-manager queue growth that clears on its own, and a certificate whose expiry is still weeks away. These deserve attention during working hours because they often predict a page later. Review them weekly. If a ticket-level signal keeps recurring, that pattern is the input for a paging rule, not a reason to ignore it.
How do I avoid noisy API server latency alerts?
Base latency thresholds on your own baseline rather than a number copied from a blog post, and alert on sustained behavior over a window instead of single samples. Separate read and write latency, since list calls on large clusters and mutating requests have different profiles. Filter out expected long-running requests such as watches so that they do not dominate the metric. Start with alerts that only notify a channel, measure how often they fire during normal operations for a few weeks, and promote them to paging only after the false positive rate is acceptable to the on-call team.
How should I set severity levels for control plane alerts?
Define severity by impact and required response time, not by the metric that produced the alert. A common scheme has three levels: page for cluster-wide loss of service, ticket for degradation that needs a fix within days, and informational for signals that feed dashboards and trend reviews. Write the severity into each alert's labels so that routing rules in Alertmanager can read it. Assign an owner to every paging alert and a runbook link that explains the first three checks. An alert without an owner or a runbook should not page.
What is inhibition, and how should it be used for control plane alerts?
Inhibition suppresses dependent alerts while a more fundamental alert is already firing. For example, when the API server is unreachable, alerts about individual controller latency or scheduler errors add noise without adding information, so they can be inhibited by the API server alert. Use inhibition sparingly and only where the causal relationship is clear, because an overly broad rule can hide a second failure. Test each inhibition rule by triggering the parent condition in a non-production cluster and confirming that the child alerts are suppressed and the parent alert still reaches the on-call channel.
How can I test control plane alerts without causing an outage?
Test alerts in a staging cluster that mirrors your production topology, and where a production check is needed, use a canary rule that routes to a test receiver rather than the paging service. Inject conditions that are safe to create, such as a temporary high request rate from a load generator or a fake certificate expiry metric written by a test exporter, rather than stopping etcd members in production. Confirm four things for each alert: it fires, it carries the right severity and labels, it reaches the correct receiver, and the runbook link resolves. Record the results so that auditors and on-call engineers can see when each alert was last verified.
Which alerts for certificate expiry and etcd health should I confirm with my own environment?
Confirm the expiry window, the etcd sync and leader-change thresholds, and the certificate sources with your own environment and the documentation for your distribution, because those values depend on how the cluster was built. The Kubernetes operations guidance and the etcd documentation describe the signals and the recommended five-member production layout, but the right alert values come from your own baseline and your renewal process. Ask your platform team which certificates are managed by kubeadm, which are issued by an external CA, and how renewal is tested before a paging rule is set for expiry.
Securing the monitoring path and protecting metrics that reveal cluster internals
Control plane metrics, etcd health and alert payloads describe how your cluster is built and where it is weak. The same scrape paths, credentials and retained data that make monitoring useful also make it a target, so access has to be designed alongside the dashboards. The considerations below cover what to lock down before alerts go live.
Authenticate scrape access to control plane endpoints
Metrics endpoints for kube-apiserver, kube-scheduler, kube-controller-manager and etcd should not be readable anonymously from the pod network. Confirm that Prometheus authenticates with a dedicated service account or client certificate, that the RBAC role granted to it covers only the metrics paths it scrapes, and that each scrape target fails closed when credentials expire. Test this from a pod in an unrelated namespace to confirm that an unauthenticated request is refused.
Kubernetes authentication docsRestrict who can read metrics and alerts
Prometheus, Alertmanager and Grafana expose cluster topology, node names, tenant identifiers and capacity. Decide who may query raw metrics, who may view alert history and who may silence alerts, and map those roles to your identity provider groups rather than to individual accounts. Review the Grafana and Alertmanager permissions as part of the same access model used for the cluster itself.
Keep etcd and monitoring credentials least-privilege
The client certificate Prometheus uses to reach etcd metrics should be issued for that purpose only, with a short validity and a documented rotation owner. Do not reuse the etcd peer or server certificates, and do not let the monitoring identity read Secrets or write any object. Ask your team to name where each monitoring credential is stored, who can read it and how a compromised certificate would be revoked.
Keep secrets out of alert annotations
Alert rules and their annotations are copied into Alertmanager, notification channels, chat logs and tickets, often with retention outside the cluster. A runbook link or a summary that echoes a label value can expose hostnames, tokens or internal endpoints. Review every rule template for values pulled from logs or label sets, and confirm that receivers such as chat and paging tools are treated as places where data is stored.
Retain audit evidence for control plane changes
Metrics show that something changed, but audit logs show who changed a certificate, a manifest or an RBAC binding. Confirm that kube-apiserver audit logging is enabled with a policy you have reviewed, that the logs are shipped off the control plane nodes before local rotation, and that retention meets the period your incident response and compliance teams require. Ask both teams to agree on that period in writing before the first audit review.
How much effort and cost does control plane monitoring take to set up?
What drives the effort of setting up control plane monitoring?
The main drivers are cluster topology, the number of clusters, whether Prometheus already exists, and how deep the alert routing and runbooks need to go. A single stacked control plane with three nodes is a smaller job than several clusters with external etcd, because each etcd member, each API server endpoint and each certificate source needs scraping, dashboards and alerts. Existing Prometheus and alert management reduce the work, while a need for paging rules, escalation paths and a runbook for every alert adds the most time. Ask the partner to show how each driver changes the scope before you compare numbers.
Can our own platform team set up control plane monitoring without a partner?
Yes, if the team already runs Prometheus, understands the Kubernetes control plane components and has someone who can own alert tuning over time. The work is mostly configuration: scraping the API server, scheduler, controller manager and etcd metrics, writing alert rules and wiring routes to on-call tools. Teams without that background usually spend more time on false-positive tuning and on testing alerts against real failure modes, such as a leader change during a disk stall. A partner makes sense when the team lacks capacity or wants a second review of thresholds and paging rules before go-live.
How long does control plane monitoring take to set up?
Duration depends on the same drivers as effort: topology, cluster count, existing monitoring and how many alerts must be reviewed and tested. Setup for one cluster with working Prometheus is usually a shorter exercise than a multi-cluster rollout with paging, runbooks and sign-off from operations. The timeline should be written into a fixed-scope plan that lists the clusters, the components covered, the alert set and the test steps. Confirm the exact duration in the written scope rather than relying on a general estimate.
What must our team provide before control plane monitoring work starts?
The team needs to provide the following before work starts:
- Access to the clusters and their control plane nodes, including read access to metrics endpoints and etcd certificates where scraping requires them
- A named on-call rota and the escalation path for pages
- An owner for each alert, who decides thresholds, accepts noise and approves changes
- Access to the existing Prometheus, Alertmanager and notification tools, or a decision on where they will run
- Maintenance windows for any test that restarts components or induces etcd load
What recurring work follows control plane monitoring after upgrades?
Monitoring needs review after each Kubernetes minor version upgrade because metric names, default dashboards and component flags can change. The Kubernetes releases page lists three supported minor versions at a time, so most clusters go through regular upgrade cycles. Recurring work includes checking that scrape targets still resolve, confirming alerts still fire on test conditions, reviewing thresholds against observed traffic, and rotating any credentials used for scraping. Ask whether the scope includes a post-upgrade check or whether that becomes a retainer item.
Which costs are one-time and which recur for control plane monitoring?
One-time costs cover the design, configuration, alert rule writing, dashboard setup, test runs and handover. Recurring costs cover on-call time, alert tuning, upgrade checks, storage growth for metrics retention and any support retainer. Infrastructure costs for the Prometheus instances and storage are paid to your own cloud or data center provider and sit outside a services quote. Ask the partner to separate these lines so you can see what you pay once and what you carry each year.
What should we ask for in a fixed-scope quote for control plane monitoring?
A fixed-scope quote should name the clusters, the topology of each control plane, the components and etcd members covered, and the list of alerts to be written. It should also state the deliverables, including dashboards, alert rules, runbooks for paging alerts, test evidence and handover documentation. Ask what happens if a cluster has an unexpected topology or if the existing Prometheus is not in the expected state. Finally, confirm the acceptance criteria, who signs off and what support is included after handover.
How DeployOpen scopes and delivers control plane monitoring
DeployOpen plans, builds, documents and supports control plane and etcd monitoring inside your own clusters and infrastructure. Each engagement starts from a written scope that names the components, signals, alerts and handover material agreed with your platform and on-call teams before work begins.
How we scope
- Inventory control plane topology, including whether etcd is stacked or external and how many members run.
- Agree which API server, scheduler, controller manager and etcd signals feed dashboards and which feed pages.
- Confirm the metrics pipeline, retention needs and where alert routing lands, then fix deliverables in writing.
How we build
- Configure scraping of control plane endpoints and etcd metrics, with certificates and access settings tested on each node.
- Write and tune alert rules for API latency, etcd disk sync, leader changes and certificate expiry, then test them against real failure conditions.
- Build dashboards and runbook links for each alert so on-call engineers can act on the first page without guesswork.
How we hand over
- Deliver the configuration, alert rules, dashboards and runbooks in your repositories, with a written record of thresholds and why they were chosen.
- Walk your platform and on-call teams through alert triage, silencing rules and the escalation path for etcd and API server pages.
- Document what the monitoring does not cover, such as hosted control planes, so ownership gaps are visible before go-live.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing tuning of alert thresholds after Kubernetes upgrades and etcd changes is available as a retainer.
- Confirm with DeployOpen during scoping which support hours, response expectations and escalation contacts apply to your retainer.

