monitoring: replace the dead kubelet_volume_stats alerts with runner-scoped disk rules
kubelet_volume_stats_* was an ALPHA metric set served from kubelet's /metrics/volumes endpoint; that endpoint returns 404 on every node of this cluster (kubelet v1.36.4 — upstream loss in 1.34, kubernetes#133847), and /metrics carries no volume-stats series. RunnerDindPvcHighWatermark and RunnerDindPvcCritical therefore could never fire while showing as healthy. Per-PVC bytes are not measurable here and no scrape config can change that, so the pair is replaced by RunnerDindDiskHighWatermark (80%) and RunnerDindDiskCritical (90%): root-filesystem usage on nodes that actually run a forgejo-runner pod, which is the filesystem holding the dind data-root under /opt/local-path-provisioner. New arm64 dind PVCs are covered as soon as their runner is scheduled; nodes without runners (linode) do not duplicate the generic disk-capacity group. Also corrects the cause in docs, the dashboard notes and the prune CronJob comment (it is not a hostPath quirk, the endpoint is gone).
This commit is contained in:
parent
131b9bc7c9
commit
e572f84b0b
8 changed files with 145 additions and 80 deletions
|
|
@ -219,10 +219,12 @@ runner liveness as *Forgejo* sees it (`action_runner.last_online`), queue depth
|
|||
plain host containers with no pod identity. cAdvisor/kube-state-metrics see only the runner
|
||||
pod itself. There is no per-job CPU/mem/disk on rpi and there cannot be one without changing
|
||||
the runner to dind — which this board deliberately does not propose.
|
||||
- **Per-PV bytes for the dind PVC.** local-path PVs are `hostPath`, and kubelet publishes no
|
||||
`kubelet_volume_stats_*` for hostPath volumes (verified: the only `kubelet_volume_*` series on
|
||||
this cluster are the collector-duration histograms). The usable proxy is siriussec's root
|
||||
filesystem usage plus the PVC's requested size, both on this row.
|
||||
- **Per-PV bytes for the dind PVC.** kubelet 1.34+ no longer exports the alpha
|
||||
`kubelet_volume_stats_*` set at all: its `/metrics/volumes` endpoint returns 404 on every node
|
||||
here (kubelet v1.36.4; upstream kubernetes/kubernetes#133847), so no scrape config can produce
|
||||
those series and it is not a hostPath quirk. The usable proxy is the runner node's root
|
||||
filesystem usage plus the PVC's requested size, both on this row — and the `RunnerDindDisk*`
|
||||
alerts watch that same filesystem, scoped to nodes that run a runner.
|
||||
""", {"h": 7, "w": 24, "x": 0, "y": 33}),
|
||||
]
|
||||
|
||||
|
|
@ -364,10 +366,10 @@ workloads = [
|
|||
desc="Root filesystem per node — the local-path PVs, the dind data-root and the Pi's host-docker job containers all land on these."),
|
||||
|
||||
note("Known unknowns on this board", """\
|
||||
- **PVC usage is not charted, only requested capacity.** local-path provisions `hostPath` PVs and kubelet
|
||||
publishes no `kubelet_volume_stats_used_bytes` for them (this cluster only emits the
|
||||
`kubelet_volume_metric_collection_duration_seconds` histograms). Node filesystem usage is the honest
|
||||
proxy for "how full is the disk these PVs live on".
|
||||
- **PVC usage is not charted, only requested capacity.** kubelet 1.34+ dropped the alpha
|
||||
`kubelet_volume_stats_*` metrics (its `/metrics/volumes` endpoint 404s on every node here), so
|
||||
there is nothing to chart per PV. Node filesystem usage is the honest proxy for "how full is
|
||||
the disk these PVs live on".
|
||||
- **Namespaces are not filtered.** With this few workloads an unfiltered board is more useful than a
|
||||
variable that hides the one namespace you needed to see.
|
||||
- **No Alertmanager.** Alerts from `PrometheusRule` objects are visible in Prometheus /alerts and in
|
||||
|
|
|
|||
|
|
@ -1201,7 +1201,7 @@ data:
|
|||
"showLineNumbers": false,
|
||||
"showMiniMap": false
|
||||
},
|
||||
"content": "**Measured:** runner Deployments (kube-state-metrics), runner pods CPU/mem/net/restarts (cAdvisor),\nrunner liveness as *Forgejo* sees it (`action_runner.last_online`), queue depth and job outcomes\n(`action_run_job` via the CNPG exporter), and the host filesystems that CI fills (node-exporter).\n\n**Not measurable \u2014 by design, not by omission:**\n\n- **Per-job breakdown on the arm64 runner.** `forgejo-runner-arm64` and\n `forgejo-runner-deploy-arm64` drive the **host** Docker socket (gid 984), so their jobs are\n plain host containers with no pod identity. cAdvisor/kube-state-metrics see only the runner\n pod itself. There is no per-job CPU/mem/disk on rpi and there cannot be one without changing\n the runner to dind \u2014 which this board deliberately does not propose.\n- **Per-PV bytes for the dind PVC.** local-path PVs are `hostPath`, and kubelet publishes no\n `kubelet_volume_stats_*` for hostPath volumes (verified: the only `kubelet_volume_*` series on\n this cluster are the collector-duration histograms). The usable proxy is siriussec's root\n filesystem usage plus the PVC's requested size, both on this row.\n"
|
||||
"content": "**Measured:** runner Deployments (kube-state-metrics), runner pods CPU/mem/net/restarts (cAdvisor),\nrunner liveness as *Forgejo* sees it (`action_runner.last_online`), queue depth and job outcomes\n(`action_run_job` via the CNPG exporter), and the host filesystems that CI fills (node-exporter).\n\n**Not measurable \u2014 by design, not by omission:**\n\n- **Per-job breakdown on the arm64 runner.** `forgejo-runner-arm64` and\n `forgejo-runner-deploy-arm64` drive the **host** Docker socket (gid 984), so their jobs are\n plain host containers with no pod identity. cAdvisor/kube-state-metrics see only the runner\n pod itself. There is no per-job CPU/mem/disk on rpi and there cannot be one without changing\n the runner to dind \u2014 which this board deliberately does not propose.\n- **Per-PV bytes for the dind PVC.** kubelet 1.34+ no longer exports the alpha\n `kubelet_volume_stats_*` set at all: its `/metrics/volumes` endpoint returns 404 on every node\n here (kubelet v1.36.4; upstream kubernetes/kubernetes#133847), so no scrape config can produce\n those series and it is not a hostPath quirk. The usable proxy is the runner node's root\n filesystem usage plus the PVC's requested size, both on this row \u2014 and the `RunnerDindDisk*`\n alerts watch that same filesystem, scoped to nodes that run a runner.\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1141,7 +1141,7 @@ data:
|
|||
"showLineNumbers": false,
|
||||
"showMiniMap": false
|
||||
},
|
||||
"content": "- **PVC usage is not charted, only requested capacity.** local-path provisions `hostPath` PVs and kubelet\n publishes no `kubelet_volume_stats_used_bytes` for them (this cluster only emits the\n `kubelet_volume_metric_collection_duration_seconds` histograms). Node filesystem usage is the honest\n proxy for \"how full is the disk these PVs live on\".\n- **Namespaces are not filtered.** With this few workloads an unfiltered board is more useful than a\n variable that hides the one namespace you needed to see.\n- **No Alertmanager.** Alerts from `PrometheusRule` objects are visible in Prometheus /alerts and in\n Grafana \u2192 Alerting, but nothing pages.\n"
|
||||
"content": "- **PVC usage is not charted, only requested capacity.** kubelet 1.34+ dropped the alpha\n `kubelet_volume_stats_*` metrics (its `/metrics/volumes` endpoint 404s on every node here), so\n there is nothing to chart per PV. Node filesystem usage is the honest proxy for \"how full is\n the disk these PVs live on\".\n- **Namespaces are not filtered.** With this few workloads an unfiltered board is more useful than a\n variable that hides the one namespace you needed to see.\n- **No Alertmanager.** Alerts from `PrometheusRule` objects are visible in Prometheus /alerts and in\n Grafana \u2192 Alerting, but nothing pages.\n"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue