CloudNativePG PostgreSQL WAL Disk Exhaustion
Matches PostgreSQL and CloudNativePG WAL archive failures, pg_wal disk full panics, and barman-cloud backup backlog alerts.
- Kind
- Signature
- Version
- 2.0.0
- Tier
- verified
- Needs Faber
- v2.0.0+
- Digest prefix
- sha256:4edfdf95
Contract facts
- Sources
- 3
- kubernetes, loki, prometheus
- Log patterns
- 3
- RE2, replayed in CI
- Kubernetes matchers
- 1
- CEL on live objects
- Samples
- 3 and 2
- must match and must not
Inspect it
Inspect the contract and RBAC delta
$ faberctl catalog inspect signatures/postgres-cnpg-wal-disk-full \ --source oci://ghcr.io/faberops/catalog:v2How it works
Sources
kubernetes, loki, prometheus
What it matches
Must match
- FATAL: could not write to file "pg_wal/000000010000000A": No space left on device
- LOG: archive command failed with exit code 1 on primary pg-prod-1
- CNPG alert: WAL archiving is failing via barman-cloud-wal-archive
Must not match
- CloudNativePG Cluster db/pg-prod Ready=True instances=3
- Archived WAL segment 000000010000000A cleanly in 120ms
Signature source
signature.yamlFailureSignature31 lines
apiVersion: catalog.faberops.dev/v2
kind: FailureSignature
metadata:
name: postgres-cnpg-wal-disk-full
spec:
description: Matches PostgreSQL and CloudNativePG WAL archive failures, pg_wal disk full panics, and barman-cloud backup
backlog alerts.
sources:
- kubernetes
- loki
- prometheus
logPatterns:
- could not write to file \"pg_wal/.*No space left on device
- PANIC:.*could not flush dirty data|archive command failed with exit code
- WAL archiving is failing|barman-cloud-wal-archive.*failed
samples:
match:
- 'FATAL: could not write to file "pg_wal/000000010000000A": No space left on device'
- 'LOG: archive command failed with exit code 1 on primary pg-prod-1'
- 'CNPG alert: WAL archiving is failing via barman-cloud-wal-archive'
noMatch:
- CloudNativePG Cluster db/pg-prod Ready=True instances=3
- Archived WAL segment 000000010000000A cleanly in 120ms
kubernetes:
- apiVersion: postgresql.cnpg.io/v1
kind: Cluster
match: has(object.status) && has(object.status.conditions) && object.status.conditions.exists(c, c.type == "ContinuousArchiving"
&& c.status == "False")
queries:
loki: '{cnpg_cluster!=""} |= "pg_wal" or |= "archive command failed"'
promql: cnpg_pg_stat_archiver_failed_count > 0
pack.yamlcatalog metadata11 lines
# Catalog metadata for signatures/postgres-cnpg-wal-disk-full. Not applied to the cluster.
apiVersion: catalog.faberops.dev/v2
kind: CatalogPack
metadata:
name: postgres-cnpg-wal-disk-full
category: signatures
version: 2.0.0
spec:
tier: verified
minFaberVersion: v2.0.0
digest: sha256:4edfdf9576ce2e3384e3d1eebed2572f3f72bdbdcf3a03841b420980e8c563a0
Signatures are catalog data. A Playbook references one by name in a connector trigger. It is never applied on its own.
Related packs
All 176 packsCloudNativePG Backup and Reliability Hygiene
playbooks/cnpg-postgres-hygieneAudits CloudNativePG Cluster and ScheduledBackup manifests for missing backup schedules, retention policies, monitoring PodMonitor enablement, and safe WAL archiving configuration, opening small HITL GitOps pull requests.Default HITLCeiling HITLAzure Service Operator v2 Drift and Reconcile Policy Fixer
playbooks/azure-aso-operator-drift-fixerAudits Azure Service Operator v2 FlexibleServer and StorageAccount resources for Ready=False drift, missing reconcile-policy detach-on-delete annotations, or insecure public blob access, opening small HITL GitOps pull requests.Default HITLCeiling HITLRook-Ceph OSD Nearfull and Degraded Placement Groups
signatures/ceph-osd-nearfull-degradedMatches Rook-Ceph HEALTH_WARN and HEALTH_ERR conditions for OSD_NEARFULL, OSD_FULL, PG_DEGRADED, and mon quorum loss.Log patterns 3Sources 3