Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.2 KB

File metadata and controls

31 lines (19 loc) · 1.2 KB

HAproxy Package Maintenance Guide

Upgrade

Before running the script, check available versions:

  1. Check the latest Prometheus rules version: https://github.com/samber/awesome-prometheus-alerts/releases
  2. 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.sh

The script will:

  1. Download Prometheus alert rules from awesome-prometheus-alerts and update rules/haproxy-rules.yaml (removing the HaproxyHttpSlowingDown alert)
  2. Download the Grafana dashboard from grafana.com and apply customizations (datasource variable rename and code variable metric patch)
  3. Run mise add-license to add license headers

Customizations

Dashboard

  1. Changed datasource variable name from DS_PROMETHEUS to datasource.
  2. Changed the code variable metric from haproxy_server_http_responses_total{instance="$host"} to {__name__=~"haproxy_.*_http_responses_total",instance="$host"}.

Alerts

  1. Removed the HaproxyHttpSlowingDown alert from upstream rules.