osism / issues

This repository is used for bug reports that are cross-project or not bound to a specific repository (or to an unknown repository).
https://www.osism.tech
1 stars 1 forks source link

HaproxyServerDown Alert if add Ceph Dashboard in Haproxy #1034

Open zachelnet opened 4 months ago

zachelnet commented 4 months ago

When we add Ceph Dashboard to haproxy, Prometheus alerts me on the rule "HaproxyServerDown".

We have added the following configuration to haproxy:

listen ceph_dashboard
  option httpchk
  http-check expect status 200,404
  http-check disable-on-404
  {{ "bind %s:%s %s"|e|format(kolla_external_vip_address, 8140, external_tls_bind_info)|trim() }}
{% for host in groups['ceph-mgr'] %}
  server {{ hostvars[host].ansible_facts.hostname }} {{ hostvars[host]['ansible_facts'][hostvars[host]['storage_interface']]['ipv4']['address'] }}:7000 check inter 2000 rise 2 fall 5
{% endfor %}
berendt commented 4 months ago

Please have a look at https://github.com/osism/testbed/pull/2185. This will be possible with OSISM >= 7.0.5.