Menu

Empty is not the same as missing: disabling Alertmanager clustering in Omnibus
📰

Empty is not the same as missing: disabling Alertmanager clustering in Omnibus

DEV Community: ruby·Priyanshu Jha·about 11 hours ago
#e4VUmGfy
#devtoruby#devto#dev#kingpin_flags#flags
Long article (1172 words) — no AI summary yet.
Reading 0:00
15s threshold

To turn off Alertmanager clustering in the Linux package, you set cluster.listen-address to an empty string. The empty string never reached the process. Alertmanager bound *:9094 anyway.

This is the story of omnibus-gitlab!10089 . I'll cover why empty? was the wrong check, the first version that also changed Prometheus and redis_exporter, and the review comments that narrowed the fix and tightened the specs.

The issue: a flag that vanished on reconfigure

The issue was omnibus-gitlab#10213 , opened by Mikael. The documented way to disable HA clustering is an explicit empty value in /etc/gitlab/gitlab.rb :

alertmanager [ 'flags' ] = { 'cluster.listen-address' => '' }

Enter fullscreen mode

Exit fullscreen mode

After gitlab-ctl reconfigure , that value was not in the generated run script. Alertmanager then used its default cluster listener on *:9094 .

The drop happened in PrometheusHelper#kingpin_flags :

next if flag_value .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.