Skip to content

Commit

Permalink
[ATMOSPHERE-578] Update NovaServiceGroupDown rule and Added failing t…
Browse files Browse the repository at this point in the history
…ests (#2100)

Co-authored-by: Dong Ma <[email protected]>
  • Loading branch information
mnaser and larainema authored Nov 8, 2024
1 parent 2d802ca commit a90d889
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
},
{
alert: 'NovaServiceGroupDown',
expr: 'min by (exported_service) (openstack_nova_agent_state) == 0',
expr: 'sum by (exported_service) (openstack_nova_agent_state) == 0',
'for': '5m',
labels: {
severity: 'P2',
Expand Down
39 changes: 39 additions & 0 deletions roles/kube_prometheus_stack/files/jsonnet/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,42 @@ tests:
exp_annotations:
summary: "[4cf895c9-c3d1-489e-b02e-59b5c8976809] Network running out of IPs"
description: "The network 4cf895c9-c3d1-489e-b02e-59b5c8976809 is currently at 98.81422924901186% utilization. If the IP addresses run out, it will impact the provisioning of new ports."

- interval: 1m
input_series:
- series: 'openstack_nova_agent_state{adminState="enabled",disabledReason="",hostname="nova-conductor-597bdfc87-6txcp",id="2586db0d-54f2-4f86-9592-dfd780e08a24",service="nova-conductor",zone="internal"}'
values: '1x30'
- series: 'openstack_nova_agent_state{adminState="enabled",disabledReason="",hostname="nova-conductor-597bdfc87-l5r9p",id="468f47b0-3341-4930-a854-fe19b586da38",service="nova-conductor",zone="internal"}'
values: '1x30'
- series: 'openstack_nova_agent_state{adminState="enabled",disabledReason="",hostname="nova-conductor-597bdfc87-t64dr",id="851580a2-0950-49ea-8a4f-37170bbed6ef",service="nova-conductor",zone="internal"}'
values: '1x30'
- series: 'openstack_nova_agent_state{adminState="enabled",disabledReason="",hostname="nova-conductor-6c78774ff8-8lr6r",id="25da15ac-497a-4b9d-9c57-ec78c172fae6",service="nova-conductor",zone="internal"}'
values: '0x30'
- series: 'openstack_nova_agent_state{adminState="enabled",disabledReason="",hostname="nova-conductor-6c78774ff8-xz4cv",id="8ac2fe99-a601-4a72-9ef7-2cd401db3aee",service="nova-conductor",zone="internal"}'
values: '0x30'
alert_rule_test:
- eval_time: 5m
alertname: NovaServiceGroupDown
exp_alerts: []

- interval: 1m
input_series:
- series: 'openstack_nova_agent_state{adminState="enabled",disabledReason="",hostname="nova-conductor-597bdfc87-6txcp",id="2586db0d-54f2-4f86-9592-dfd780e08a24",service="nova-conductor",zone="internal"}'
values: '0x30'
- series: 'openstack_nova_agent_state{adminState="enabled",disabledReason="",hostname="nova-conductor-597bdfc87-l5r9p",id="468f47b0-3341-4930-a854-fe19b586da38",service="nova-conductor",zone="internal"}'
values: '0x30'
- series: 'openstack_nova_agent_state{adminState="enabled",disabledReason="",hostname="nova-conductor-597bdfc87-t64dr",id="851580a2-0950-49ea-8a4f-37170bbed6ef",service="nova-conductor",zone="internal"}'
values: '0x30'
- series: 'openstack_nova_agent_state{adminState="enabled",disabledReason="",hostname="nova-conductor-6c78774ff8-8lr6r",id="25da15ac-497a-4b9d-9c57-ec78c172fae6",service="nova-conductor",zone="internal"}'
values: '0x30'
- series: 'openstack_nova_agent_state{adminState="enabled",disabledReason="",hostname="nova-conductor-6c78774ff8-xz4cv",id="8ac2fe99-a601-4a72-9ef7-2cd401db3aee",service="nova-conductor",zone="internal"}'
values: '0x30'
alert_rule_test:
- eval_time: 5m
alertname: NovaServiceGroupDown
exp_alerts:
- exp_labels:
severity: P2
exp_annotations:
summary: "Nova service group down"
description: "All instances of a specific Nova service have been down for more than 5 minutes."

0 comments on commit a90d889

Please sign in to comment.