-
Notifications
You must be signed in to change notification settings - Fork 23
fix: use rabbitmq
length for RabbitMQNodeDown
#1579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: stackhpc/2024.1
Are you sure you want to change the base?
Conversation
@@ -6,7 +6,7 @@ groups: | |||
- name: rabbitmq.rules | |||
rules: | |||
- alert: RabbitMQNodeDown | |||
expr: sum(rabbitmq_build_info{instance!=""}) < 3 | |||
expr: sum(rabbitmq_build_info{instance!=""}) < {% endraw %}{{ groups['controllers'] | length }}{% raw %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to use the rabbitmq
group from here instead? https://github.com/openstack/kayobe/blob/master/ansible/roles/kolla-ansible/templates/overcloud-components.j2#L62
Just thinking this wouldn't work if anyone has moved RabbitMQ to a different group
@@ -6,7 +6,7 @@ groups: | |||
- name: rabbitmq.rules | |||
rules: | |||
- alert: RabbitMQNodeDown | |||
expr: sum(rabbitmq_build_info{instance!=""}) < 3 | |||
expr: sum(rabbitmq_build_info{instance!=""}) < {% endraw %}{{ groups['controllers'] | length }}{% raw %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you could potentially use the rabbitmq group here since the templating is within a raw tag and thus templated by kolla-ansible
The `RabbitMQNodeDown` made the assumption that all deployments involve only three RabbitMQ nodes. However, this is not always the case as we do support deployments with a single node or more than three. Before this would have caused false alerts in deployments with a single RabbitMQ node. Whilst also concealing alerts in deployments with more than three nodes.
61b564c
to
e183052
Compare
controller
length for RabbitMQNodeDown
rabbitmq
length for RabbitMQNodeDown
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now, thanks!
Co-authored-by: Matt Crees <[email protected]>
This fails to template correctly.
|
The
RabbitMQNodeDown
made the assumption that all deployments involve three controllers. However, this is not always the case as we do support deployments with a single controller or more than three controllers.Before this would have caused false alerts in deployments with a single controller. Whilst also concealing alerts in deployments with more than three controllers.