Concept
Observability
All state is in API objects. Each view reads the same objects, so the views agree. Most metrics are read from the cluster state at each scrape, so a value is never older than the scrape.
pk-metal status
Section titled “pk-metal status”One table for each kind of thing: HOST, OPERATION, ENDPOINT, CLAIM, CLUSTER, NODE, ROLLOUT. Under each table, one line for each row that needs a person, with the reason.
| Exit status | Meaning |
|---|---|
0 |
Nothing needs a person. |
1 |
The command could not read the cluster. |
2 |
Something needs a person: an approval, a failed operation, an unhealthy etcd, a stale backup, a node that is not Ready. A rollout that waits for approval or a resume also counts. |
An operation that waits for its window or for another operation on the same Host does not count. That is the plan at work. A rollout that runs a node or waits for health between nodes does not count either. An alert pages when that wait is too long.
Metrics
Section titled “Metrics”All metric names start with pk_metal_. Some examples:
host_phase,host_blocked- The phase of each Host, and the reason when it is blocked.
operation_awaiting_approval_seconds- How long each operation waits for a person.
operation_blocked- Approved operations that did not start, with the reason, for example
OutsideMaintenanceWindow. bmc_reachable,talosnode_ready,taloscluster_available- The health of BMCs, nodes and clusters.
talosnode_expected_ready,taloscluster_expected_available- Which nodes and clusters must be healthy. The rule is the same as in pk-metal status: a node of a bootstrapped cluster that answered before.
etcd_backup_last_success_timestamp_seconds,etcd_backup_interval_seconds- The time of the newest Verified snapshot, and the backup interval. Both come from the EtcdBackupPolicies, so they go when the policies go.
rollout_condition- Where each unfinished rollout stands, with the same reason as the
ROLLOUTtable. credentials_expiry_timestamp_seconds,credentials_issued_timestamp_seconds- When the published admin credentials expire, and when they became valid. The difference is their lifetime.
rollout_nodes_done,rollout_nodes_total- The progress of an approved rollout.
Alerts
Section titled “Alerts”The directory metal/config/prometheus holds a PrometheusRule, a ServiceMonitor and the role that lets Prometheus read the metrics. Apply it where the Prometheus Operator runs. Each alert links to its runbook. Monitor the fleet lists the alerts.
The alerts follow the same rules as pk-metal status. An install does not page. A rollout that waits for health between nodes does not page.
One alert, PkMetalMetricsAbsent, fires when the metrics are gone. Without it, a stopped manager would look healthy: each other alert resolves.