mysql-alerts
A Helm chart for MySQL Alert by AppsCode
About this chart
MySQL alerts
MySQL alerts by AppsCode - MySQL alerts for KubeDB
TL;DR;
$ helm repo add appscode oci://ghcr.io/appscode-charts
$ helm repo update
$ helm search repo appscode/mysql-alerts --version=v2026.7.14
$ helm upgrade -i mysql appscode/mysql-alerts -n demo --create-namespace --version=v2026.7.14
Introduction
This chart deploys MySQL 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 mysql:
$ helm upgrade -i mysql appscode/mysql-alerts -n demo --create-namespace --version=v2026.7.14
The command deploys MySQL 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 mysql:
$ helm uninstall mysql -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 mysql-alerts chart and their default values.
| Parameter | Description | Default |
|---|---|---|
| metadata.resource.group | kubedb.com | |
| metadata.resource.kind | MySQL | |
| metadata.resource.name | mysqls | |
| metadata.resource.scope | Namespaced | |
| metadata.resource.version | v1alpha2 | |
| 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.database.enabled | warning | |
| form.alert.groups.database.rules.mysqlInstanceDown.enabled | true | |
| form.alert.groups.database.rules.mysqlInstanceDown.duration | "0m" | |
| form.alert.groups.database.rules.mysqlInstanceDown.severity | critical | |
| form.alert.groups.database.rules.mysqlServiceDown.enabled | true | |
| form.alert.groups.database.rules.mysqlServiceDown.duration | "0m" | |
| form.alert.groups.database.rules.mysqlServiceDown.severity | critical | |
| form.alert.groups.database.rules.mysqlTooManyConnections.enabled | true | |
| form.alert.groups.database.rules.mysqlTooManyConnections.duration | "2m" | |
| form.alert.groups.database.rules.mysqlTooManyConnections.val | 80 | |
| form.alert.groups.database.rules.mysqlTooManyConnections.severity | warning | |
| form.alert.groups.database.rules.mysqlHighThreadsRunning.enabled | true | |
| form.alert.groups.database.rules.mysqlHighThreadsRunning.duration | "2m" | |
| form.alert.groups.database.rules.mysqlHighThreadsRunning.val | 60 | |
| form.alert.groups.database.rules.mysqlHighThreadsRunning.severity | warning | |
| form.alert.groups.database.rules.mysqlSlowQueries.enabled | true | |
| form.alert.groups.database.rules.mysqlSlowQueries.duration | "2m" | |
| form.alert.groups.database.rules.mysqlSlowQueries.severity | warning | |
| form.alert.groups.database.rules.mysqlInnoDBLogWaits.enabled | true | |
| form.alert.groups.database.rules.mysqlInnoDBLogWaits.duration | "0m" | |
| form.alert.groups.database.rules.mysqlInnoDBLogWaits.val | 10 | |
| form.alert.groups.database.rules.mysqlInnoDBLogWaits.severity | warning | |
| form.alert.groups.database.rules.mysqlRestarted.enabled | true | |
| form.alert.groups.database.rules.mysqlRestarted.duration | "0m" | |
| form.alert.groups.database.rules.mysqlRestarted.val | 60 | |
| form.alert.groups.database.rules.mysqlRestarted.severity | warning | |
| form.alert.groups.database.rules.mysqlHighQPS.enabled | true | |
| form.alert.groups.database.rules.mysqlHighQPS.duration | "0m" | |
| form.alert.groups.database.rules.mysqlHighQPS.val | 1000 | |
| form.alert.groups.database.rules.mysqlHighQPS.severity | critical | |
| form.alert.groups.database.rules.mysqlHighIncomingBytes.enabled | true | |
| form.alert.groups.database.rules.mysqlHighIncomingBytes.duration | "0m" | |
| form.alert.groups.database.rules.mysqlHighIncomingBytes.val | 1048576 # 1MB | |
| form.alert.groups.database.rules.mysqlHighIncomingBytes.severity | critical | |
| form.alert.groups.database.rules.mysqlHighOutgoingBytes.enabled | true | |
| form.alert.groups.database.rules.mysqlHighOutgoingBytes.duration | "0m" | |
| form.alert.groups.database.rules.mysqlHighOutgoingBytes.val | 1048576 # 1MB | |
| form.alert.groups.database.rules.mysqlHighOutgoingBytes.severity | critical | |
| form.alert.groups.database.rules.mysqlTooManyOpenFiles.enabled | true | |
| form.alert.groups.database.rules.mysqlTooManyOpenFiles.duration | "2m" | |
| form.alert.groups.database.rules.mysqlTooManyOpenFiles.val | 80 | |
| form.alert.groups.database.rules.mysqlTooManyOpenFiles.severity | warning | |
| form.alert.groups.database.rules.diskUsageHigh.enabled | true | |
| form.alert.groups.database.rules.diskUsageHigh.val | 80 | |
| form.alert.groups.database.rules.diskUsageHigh.duration | "1m" | |
| form.alert.groups.database.rules.diskUsageHigh.severity | warning | |
| form.alert.groups.database.rules.diskAlmostFull.enabled | true | |
| form.alert.groups.database.rules.diskAlmostFull.val | 95 | |
| form.alert.groups.database.rules.diskAlmostFull.duration | "1m" | |
| form.alert.groups.database.rules.diskAlmostFull.severity | critical | |
| form.alert.groups.group.enabled | warning | |
| form.alert.groups.group.rules.mysqlHighReplicationDelay.enabled | true | |
| form.alert.groups.group.rules.mysqlHighReplicationDelay.val | 0.5 # second | |
| form.alert.groups.group.rules.mysqlHighReplicationDelay.duration | "5m" | |
| form.alert.groups.group.rules.mysqlHighReplicationDelay.severity | warning | |
| form.alert.groups.group.rules.mysqlHighReplicationTransportTime.enabled | true | |
| form.alert.groups.group.rules.mysqlHighReplicationTransportTime.val | 0.5 # second | |
| form.alert.gro |
Deploy mysql-alerts with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mysql-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 chartmysql-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