postgres-alerts
A Helm chart for Postgres Alert by AppsCode
About this chart
Postgres alerts
Postgres alerts by AppsCode - Postgres alerts for KubeDB
TL;DR;
$ helm repo add appscode oci://ghcr.io/appscode-charts
$ helm repo update
$ helm search repo appscode/postgres-alerts --version=v2026.7.14
$ helm upgrade -i postgres appscode/postgres-alerts -n demo --create-namespace --version=v2026.7.14
Introduction
This chart deploys Postgres alerts on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.19+
Installing the Chart
To install/upgrade the chart with the release name postgres:
$ helm upgrade -i postgres appscode/postgres-alerts -n demo --create-namespace --version=v2026.7.14
The command deploys Postgres alerts on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.
Tip: List all releases using
helm list
Uninstalling the Chart
To uninstall the postgres:
$ helm uninstall postgres -n demo
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the postgres-alerts chart and their default values.
| Parameter | Description | Default |
|---|---|---|
| metadata.resource.group | kubedb.com | |
| metadata.resource.kind | Postgres | |
| metadata.resource.name | postgreses | |
| metadata.resource.scope | Namespaced | |
| metadata.resource.version | v1alpha2 | |
| metadata.release.name | Release name | "" |
| metadata.release.namespace | Release namespace | "" |
| form.alert.appSuffix | # Suffix appended to .Release.Name to form the application name ($app). # Leave empty for standalone deployments. Set when deployed as a subchart # to match the KubeDB resource suffix (e.g. "-db" for Postgres). | "" |
| form.alert.enabled | # Enable PrometheusRule alerts | warning |
| form.alert.labels | # Labels for default rules | {"release":"kube-prometheus-stack"} |
| form.alert.annotations | # Annotations for default rules | {} |
| form.alert.additionalRuleLabels | # Additional labels for PrometheusRule alerts | {} |
| form.alert.groups.database.enabled | warning | |
| form.alert.groups.database.rules.postgresInstanceDown.enabled | true | |
| form.alert.groups.database.rules.postgresInstanceDown.duration | "1m" | |
| form.alert.groups.database.rules.postgresInstanceDown.severity | critical | |
| form.alert.groups.database.rules.postgresRestarted.enabled | true | |
| form.alert.groups.database.rules.postgresRestarted.duration | "0m" | |
| form.alert.groups.database.rules.postgresRestarted.val | 60 | |
| form.alert.groups.database.rules.postgresRestarted.severity | critical | |
| form.alert.groups.database.rules.postgresExporterError.enabled | true | |
| form.alert.groups.database.rules.postgresExporterError.duration | "5m" | |
| form.alert.groups.database.rules.postgresExporterError.severity | warning | |
| form.alert.groups.database.rules.postgresTooManyConnections.enabled | true | |
| form.alert.groups.database.rules.postgresTooManyConnections.duration | "5m" | |
| form.alert.groups.database.rules.postgresTooManyConnections.val | 95 | |
| form.alert.groups.database.rules.postgresTooManyConnections.severity | critical | |
| form.alert.groups.database.rules.postgresSlowQueries.enabled | true | |
| form.alert.groups.database.rules.postgresSlowQueries.duration | "1m" | |
| form.alert.groups.database.rules.postgresSlowQueries.val | 60 | |
| form.alert.groups.database.rules.postgresSlowQueries.severity | warning | |
| form.alert.groups.database.rules.postgresHighRollbackRate.enabled | true | |
| form.alert.groups.database.rules.postgresHighRollbackRate.duration | "5m" | |
| form.alert.groups.database.rules.postgresHighRollbackRate.val | 0.05 | |
| form.alert.groups.database.rules.postgresHighRollbackRate.severity |
Deploy postgres-alerts with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has postgres-alerts on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartpostgres-alerts is pinned at v2026.7.14 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply