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
ceph: fix CephMonQuorumAtRisk Alert Query #8652
Conversation
cluster/examples/kubernetes/ceph/monitoring/prometheus-ceph-v14-rules.yaml
Show resolved
Hide resolved
The updated query will work for single mon deployment and will work better for deployments with five or more mons. Signed-off-by: Anmol Sachan <anmol13694@gmail.com>
4ae6948
to
a1efcd7
Compare
@@ -80,7 +80,7 @@ spec: | |||
severity_level: error | |||
storage_type: ceph | |||
expr: | | |||
count(ceph_mon_quorum_status{job="rook-ceph-mgr"} == 1) <= ((count(ceph_mon_metadata{job="rook-ceph-mgr"}) % 2) + 1) | |||
count(ceph_mon_quorum_status{job="rook-ceph-mgr"} == 1) <= (floor(count(ceph_mon_metadata{job="rook-ceph-mgr"}) / 2) + 1) |
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.
@travisn @anmolsachan recently, we allowed having even mons too, is this something we need to handle here?
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.
This formula should also work for an even number of mons.
@@ -80,7 +80,7 @@ spec: | |||
severity_level: error | |||
storage_type: ceph | |||
expr: | | |||
count(ceph_mon_quorum_status{job="rook-ceph-mgr"} == 1) <= ((count(ceph_mon_metadata{job="rook-ceph-mgr"}) % 2) + 1) | |||
count(ceph_mon_quorum_status{job="rook-ceph-mgr"} == 1) <= (floor(count(ceph_mon_metadata{job="rook-ceph-mgr"}) / 2) + 1) |
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.
This formula should also work for an even number of mons.
ceph: fix CephMonQuorumAtRisk Alert Query (backport #8652)
The updated query will work for single mon deployment and will work better for deployments with five or more mons.
Signed-off-by: Anmol Sachan anmol13694@gmail.com
Description of your changes:
Which issue is resolved by this Pull Request:
Resolves #8156
Checklist:
make codegen
) has been run to update object specifications, if necessary.[skip ci]