monitoring: custom Forgejo runner, CNPG and workload dashboards from git
Dashboards (uid forgejo-runners, cnpg-postgres, home-lab-workloads) live as ConfigMaps generated from monitoring/controllers/home/dashboards/build.py and are loaded by the kube-prometheus-stack grafana sidecar. Postgres was not scraped at all before this: add a hand-written PodMonitor per CNPG cluster (release=kube-prometheus-stack, which is what this Prometheus's podMonitorSelectorNilUsesHelmValues default requires) plus spec.monitoring.customQueriesConfigMap on both Clusters. enablePodMonitor stays false — deprecated in CNPG 1.27 and it gives no control over labels. pg-actions-queries.yaml adds the Forgejo Actions queue/outcome/last_online metrics that only the forgejo database can answer. prometheus-node-exporter is no longer pinned to siriussec: the arm64 runner's jobs are host containers on rpi, so the Pi's root filesystem is the disk that matters there and kubelet cannot see it. docs/monitoring-dashboards.md documents the PromQL, the exporter GRANT and the known unknowns (arm64 per-job breakdown, hostPath PVs have no kubelet volume stats, single-instance replication, no backups).
This commit is contained in:
parent
de30bc43e7
commit
9e851f4dfe
15 changed files with 4400 additions and 5 deletions
|
|
@ -152,11 +152,14 @@ kube-state-metrics:
|
|||
memory: 256Mi
|
||||
|
||||
prometheus-node-exporter:
|
||||
# DaemonSet; pinned to siriussec per the stack's scheduling rule. Only
|
||||
# siriussec's node metrics are collected (kubelet/cAdvisor metrics for the
|
||||
# other nodes still arrive via the kubelet ServiceMonitor).
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: siriussec
|
||||
# DaemonSet on EVERY node (deliberately not pinned to siriussec). The arm64
|
||||
# Forgejo runner runs its jobs as *host* Docker containers on rpi, so the disk
|
||||
# pressure that matters there is the Pi's root filesystem — invisible to
|
||||
# kubelet/cAdvisor, which only describe pods. The runner dashboard's "Pi disk
|
||||
# free" panel needs node-exporter on rpi to exist at all, and the same applies
|
||||
# to linode. node-exporter is a read-only host-metrics DaemonSet (hostPath
|
||||
# /proc + /sys, host network); it adds ~700 series per node, well inside the
|
||||
# 8GB retentionSize cap, and rpi's PreferNoSchedule taint does not exclude it.
|
||||
resources:
|
||||
requests:
|
||||
cpu: 20m
|
||||
|
|
|
|||
Loading…
Reference in a new issue