Add cozystack-owned observability for managed-database read-replica
autoscaling, rendered by the keda umbrella (not the vendored subchart):
- PrometheusRule (templates/alerts.yaml), scoped to the KEDA-generated
HPAs (keda-hpa-*): DatabaseAutoscalerScaleStuck (desired > current for
15m — stuck scale-up with no automatic rollback), DatabaseAutoscalerAtMax
(ScalingLimited=true for 30m — at max or quorum-raised ceiling), and
DatabaseAutoscalerScalerErrors (KEDA cannot evaluate the trigger — never
scale blind).
- A Grafana dashboard ConfigMap (grafana_dashboard sidecar label) with
desired-vs-current replicas, active read connections, replication lag,
and scaling-limited panels.
Both gated by databaseAutoscaling.alerts.enabled / .dashboard.enabled
(default true). Metric names are calibrated on a live cluster per the
proposal's PoC; the rule and panel shapes are what ships. Covered by helm
unittest (PrometheusRule with the three alerts + disable; dashboard
ConfigMap label + disable).
Signed-off-by: Alexey Artamonov <aleksei.artamonov@aenix.io>