Before running the script, check available versions:
- Check the latest Prometheus rules version: https://github.com/samber/awesome-prometheus-alerts/releases
- Check the latest dashboard version: https://grafana.com/grafana/dashboards/12693-haproxy/
Then run the upgrade script:
RULES_VERSION=2026-04-10.1 DASHBOARD_VERSION=14 ./upgrade.shThe script will:
- Download Prometheus alert rules from awesome-prometheus-alerts and update
rules/haproxy-rules.yaml(removing theHaproxyHttpSlowingDownalert) - Download the Grafana dashboard from grafana.com and apply customizations (datasource variable rename and
codevariable metric patch) - Run
mise add-licenseto add license headers
- Changed datasource variable name from
DS_PROMETHEUStodatasource. - Changed the
codevariable metric fromhaproxy_server_http_responses_total{instance="$host"}to{__name__=~"haproxy_.*_http_responses_total",instance="$host"}.
- Removed the
HaproxyHttpSlowingDownalert from upstream rules.