Skip to main content

Platform alert rules

A health daemon runs on every node and reports problems as node conditions. Some conditions trigger automatic remediation. On cloud pools the machine is rebooted for problems like a not-ready node, a read-only filesystem, or a kernel deadlock, and replaced if the reboot does not help. On bare-metal pools only a Ready=False node is rebooted, and replaced if the reboot does not help. Every other condition, such as a tampered node or a failing disk, is informational on every pool, and an alert is how you act on it. This page ships those alert rules, and the Capacity and Control plane sections below add the rules every cluster should run.

You alert on a condition by reading kube_node_status_condition from , with node-exporter supplying the capacity metrics. Set both up first.

Node integrity 

VerityCorruption (an integrity check on the sealed OS failed), SealedOSTampered (an unauthorized change in the read-only sealed OS image), and NodeTampered (a protected file changed since boot) are integrity conditions the daemon publishes on every node. SealedOSTampered and NodeTampered are never fixed automatically, on any pool. VerityCorruption is cleared on cloud pools by replacing the node, but on bare metal it is not fixed, so there alerting is the only way to act on it. Alert on all three:

node-integrity-rules.yamlyaml
				apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  name: syself-node-integrity
  namespace: monitoring
  labels:
    prometheus: main
spec:
  groups:
    - name: syself-node-integrity
      rules:
        - alert: NodeVerityCorruption
          expr: kube_node_status_condition{condition="VerityCorruption",status="true"} == 1
          for: 1m
          labels: {severity: critical}
          annotations:
            summary: "sealed OS integrity check failed on {{ $labels.node }}"
            description: "A block on the sealed OS failed its integrity check. On bare-metal pools this does not self-heal, so act on it."
        - alert: NodeSealedOSTampered
          expr: kube_node_status_condition{condition="SealedOSTampered",status="true"} == 1
          for: 1m
          labels: {severity: critical}
          annotations:
            summary: "sealed OS tampering on {{ $labels.node }}"
            description: "An unauthorized change was detected in the read-only sealed OS image. This never self-heals on any pool, so investigate the node."
        - alert: NodeTampered
          expr: kube_node_status_condition{condition="NodeTampered",status="true"} == 1
          for: 1m
          labels: {severity: critical}
          annotations:
            summary: "node tampering detected on {{ $labels.node }}"
            description: "A protected file changed since the boot baseline. This latches; a revert does not clear it. Investigate the node."
			
Important

NodeTampered stays set once it fires. Reverting the changed file does not clear it, and neither does waiting. Only replacing the node does, so treat the alert as a prompt to investigate.

Ready and the daemon conditions 

The daemon sets many more conditions than the three above, DisksFailure and CNIUnhealthy among them. Add a rule for each, in the same shape: kube_node_status_condition{condition="...",status="true"} == 1. Alert on Ready too, so a node that goes NotReady surfaces even when nothing else does. lists them all.

Alerting on a cloud pool still gives you the record of what happened and when, even though the platform acts on the condition itself. On bare metal a few conditions point at the physical server, and those are the ones that need you.

Note

On bare metal, three conditions point at hardware that needs a physical swap. DisksFailure (a failing drive), CperHardwareErrorFatal (a fatal CPU, memory, or PCIe fault), and GpuFallenOffBus (a problem with the GPU). The daemon already detects and reports each one, so all you add is an alert. When it fires, open a support ticket with Hetzner to swap the affected part.

Open a Hetzner support ticket 

Hetzner has no API for support tickets, so this one step stays manual.

First, capture the condition while the node is still in the cluster and showing it. A node that is replaced or moved to maintenanceMode leaves the cluster, and its conditions and health report leave with it. A reboot keeps the node but restarts the daemon, which re-evaluates from scratch, so a condition that no longer applies stops showing. Read and save the message before you touch the server:

sh
				kubectl get node <NODE-NAME> -o jsonpath='{range .status.conditions[?(@.status=="True")]}{.type}: {.message}{"\n"}{end}'
			

Next, put the server into maintenanceMode. The node is drained and removed from the cluster, and the host is not picked for a new machine until you turn maintenance mode off, so nothing schedules onto a server that is about to be worked on. You do not drain nodes manually. See for taking a broken server out of the pool.

Then open the ticket through the Hetzner Robot web UI: select the affected server first, then raise the support request from that server. Hetzner cannot process a request that does not come through this channel and name a specific server. Pick the template that matches the alert, fill in the placeholders, and paste the condition message you saved.

text
				Subject: Server <SERVER-NUMBER> (<SERVER-IP>): failing drive, please replace immediately
 
Hello Hetzner support team,
 
A drive in dedicated server <SERVER-NUMBER> (<SERVER-IP>) is failing. SMART
reports a critical warning and the kernel is logging I/O errors on the device:
 
<paste the DisksFailure condition message, or the smartctl / dmesg output>
 
The server has been taken out of service on our side, so it can be worked on immediately. Please replace the affected drive as soon as possible.
 
Best regards,
<YOUR NAME>
			

If the disks hold nothing you need, add a line to the CPU or memory ticket saying the disk data does not need to be preserved. Hetzner can then give you a fresh server instead of moving the disks, which is often quicker.

What to expect from Hetzner 

Hetzner is usually quick: swapping a failing part often takes under an hour. For a mainboard or CPU fault they may swap the whole server and move your disks into the new one, so it comes back with the same drives.

Keep an eye on the ticket for follow-up questions. Support usually asks for a timeframe for the work and whether the data on the disks needs to be kept. If the server holds nothing you need, tell them the disk data is not relevant. This often speeds things up, and you get back what is effectively a fresh server. That is the case when the server ran stateless workloads, or when your stateful data is replicated so a copy already lives on another server, and losing this one's disks costs you nothing.

When the repair is done, set maintenanceMode: false. The host returns to the pool and the waiting machine provisions onto it.

Capacity 

Catch a cluster running out of room before a workload does:

  • CPU and memory: alert when almost all of a node's schedulable CPU or memory is reserved, or when node-exporter shows sustained high memory with little available.
  • Disk: alert on a filesystem past ~85% (a /var filling with logs is the classic one), using node-exporter's node_filesystem_avail_bytes.
  • PVC full: alert when a volume's used space approaches its capacity, from the kubelet volume metrics.

Control plane 

  • etcd: alert on rising fsync latency, a growing database size approaching its quota, and frequent leader changes. These are the early signs of a control plane under strain, from the loopback etcd scrape.
  • Saturation: alert on controller-manager and scheduler work-queue depth staying high, which means reconciles are backing up.

The collection tier itself 

Every rule on this page depends on the collectors still running, so alert on them too. A blind spot here is worse than a broken alert, because a silent collector looks exactly like a healthy cluster: no alerts fire, and the graphs simply stop.

An agent that stops reporting and a remote-write that is failing are the first two to cover. carries the metrics and the expression for both. Three more are worth adding:

  • The write-ahead log keeps growing. Sustained growth means the ingest rate exceeds what the backend will accept, and the buffer is deferring the loss rather than preventing it.
  • Active series jump. A steep climb in series is a cardinality spike in progress, usually from one workload. Alerting on the rate of change catches it before the agent is killed, and covers finding the source.
  • A target is down on the nodes where it should exist. Scope these per node role. A rule that expects etcd on every node fires forever on workers and teaches everyone to ignore it, which is worse than having no rule.

Certificate expiry 

Alert before a certificate expires, not after. Two sources: the health daemon's CertRenewalFailing node condition for node-level certificates, and, for your ingress certificates, cert-manager's expiry metric. To catch a node certificate before renewal ever fails, read the autopilot.syself.com/certs annotation on the Node, which lists each certificate with its notAfter date. See .

Keep all of these in Git as PrometheusRule objects so a rebuilt cluster comes back with the same alerts, and route the critical ones to a pager. See .