nats-alerts
A Helm chart for NATS JetStream Alert Rules
About this chart
NATS alerts
NATS alerts by AppsCode - NATS alerts for NATS clusters
TL;DR;
$ helm repo add appscode oci://ghcr.io/appscode-charts
$ helm repo update
$ helm search repo appscode/nats-alerts --version=v2026.7.14
$ helm upgrade -i nats-alerts appscode/nats-alerts -n monitoring --create-namespace --version=v2026.7.14
Introduction
This chart deploys NATS alerts on a Kubernetes cluster using the Helm package manager.
Prerequisites
- Kubernetes 1.21+
- Prometheus operator
Installing the Chart
To install/upgrade the chart with the release name nats-alerts:
$ helm upgrade -i nats-alerts appscode/nats-alerts -n monitoring --create-namespace --version=v2026.7.14
The command deploys NATS 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 nats-alerts:
$ helm uninstall nats-alerts -n monitoring
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 nats-alerts chart and their default values.
| Parameter | Description | Default |
|---|---|---|
| metadata.resource.group | apps | |
| metadata.resource.kind | StatefulSet | |
| metadata.resource.name | statefulsets | |
| metadata.resource.scope | Namespaced | |
| metadata.resource.version | v1 | |
| metadata.release.name | Release name | "" |
| metadata.release.namespace | Release namespace | "" |
| 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.core.enabled | warning | |
| form.alert.groups.core.rules.natsDown.enabled | true | |
| form.alert.groups.core.rules.natsDown.duration | "15m" | |
| form.alert.groups.core.rules.natsDown.severity | critical | |
| form.alert.groups.core.rules.natsReplicasNotReady.enabled | true | |
| form.alert.groups.core.rules.natsReplicasNotReady.duration | "15m" | |
| form.alert.groups.core.rules.natsReplicasNotReady.severity | critical | |
| form.alert.groups.resourceUtilization.enabled | warning | |
| form.alert.groups.resourceUtilization.rules.natsJetStreamHighMemoryUsage.enabled | true | |
| form.alert.groups.resourceUtilization.rules.natsJetStreamHighMemoryUsage.duration | "5m" | |
| form.alert.groups.resourceUtilization.rules.natsJetStreamHighMemoryUsage.severity | critical | |
| form.alert.groups.resourceUtilization.rules.natsJetStreamHighMemoryUsage.val | 90 | |
| form.alert.groups.resourceUtilization.rules.natsJetStreamHighStorageUsage.enabled | true | |
| form.alert.groups.resourceUtilization.rules.natsJetStreamHighStorageUsage.duration | "5m" | |
| form.alert.groups.resourceUtilization.rules.natsJetStreamHighStorageUsage.severity | critical | |
| form.alert.groups.resourceUtilization.rules.natsJetStreamHighStorageUsage.val | 90 | |
| form.alert.groups.consumerHealth.enabled | warning | |
| form.alert.groups.consumerHealth.rules.natsJetStreamHighPendingMessages.enabled | true | |
| form.alert.groups.consumerHealth.rules.natsJetStreamHighPendingMessages.duration | "10m" | |
| form.alert.groups.consumerHealth.rules.natsJetStreamHighPendingMessages.severity | critical | |
| form.alert.groups.consumerHealth.rules.natsJetStreamHighPendingMessages.val | 5000 | |
| form.alert.groups.consumerHealth.rules.natsJetStreamHighPendingMessagesWarning.enabled | true | |
| form.alert.groups.consumerHealth.rules.natsJetStreamHighPendingMessagesWarning.duration | "10m" | |
| form.alert.groups.consumerHealth.rules.natsJetStreamHighPendingMessagesWarning.severity | warning | |
| form.alert.groups.consumerHealth.rules.natsJetStreamHighPendingMessagesWarning.val | 2000 | |
| form.alert.groups.consumerHealth.rules.natsJetStreamHighAckPending.enabled | true | |
| form.alert.groups.consumerHealth.rules.natsJetStreamHighAckPending.duration | "10m" | |
| form.alert.groups.consumerHealth.rules.natsJetStreamHighAckPending.severity | critical | |
| form.alert.groups.consumerHealth.rules.natsJetStreamHighAckPending.val | 2000 | |
| form.alert.groups.consumerHealth.rules.natsJetStreamBacklogNoProgress.enabled | true | |
| form.alert.groups.consumerHealth.rules.natsJetStreamBacklogNoProgress.duration | "15m" | |
| form.alert.groups.consumerHealth.rules.natsJetStreamBacklogNoProgress.severity | warning | |
| form.alert.groups.consumerHealth.rules.natsJetStreamBacklogNoProgress.val | 100 | |
| form.alert.groups.streamPerformance.enabled | warning | |
| form.alert.groups.streamPerformance.rules.natsJetStreamNearMessageLimit.enabled | true | |
| form.alert.groups.streamPerformance.rules.natsJetStreamNearMessageLimit.duration | "15m" | |
| form.alert.groups.streamPerformance.rules.natsJetStreamNearMessageLimit.severity | warning | |
| form.alert.groups.streamPerformance.rules.natsJetStreamNearMessageLimit.val | 80 | |
| form.alert.groups.streamPerformance.rules.natsJetStreamNearByteLimit.enabled | true | |
| form.alert.groups.streamPerformance.rules.natsJetStreamNearByteLimit.duration | "15m" | |
| form.alert.groups.streamPerformance.rules.natsJetStreamNearByteLimit.severity | warning | |
| form.alert.groups.streamPerformance.rules.natsJetStreamNearByteLimit.val | 80 | |
| form.alert.groups.connectivity.enabled | warning | |
| form.alert.groups.connectivity.rules.natsJetStreamDisabled.enabled | true | |
| form.alert.groups.connectivity.rules.natsJetStreamDisabled.duration | "2m" | |
| form.alert.groups.connectivity.rules.natsJetStreamDisabled.severity | critical | |
| form.alert.groups.connectivity.rules.natsSlowConsumers.enabled | true | |
| form.alert.groups.connectivity.rules.natsSlowConsumers.duration | "5m" | |
| form.alert.groups.connectivity.rules.natsSlowConsumers.severity | warning | |
| form.alert.groups.connectivity.rules.natsSlowConsumers.val | 5 | |
| form.alert.groups.connectivity.rules.natsStalledClients.enabled | true | |
| form.alert.groups.connectivity.rules.natsStalledClients.duration | "15m" | |
| form.alert.groups.connectivity.rules.natsStalledClients.severity | warning | |
| form.alert |
Deploy nats-alerts with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nats-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 chartnats-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