Skip to content

Add alert to detect bonds with a single link #1044

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

Merged
merged 1 commit into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions etc/kayobe/kolla/config/prometheus/system.rules
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,22 @@ groups:
annotations:
summary: Host network bond degraded (instance {{ $labels.instance }})
description: "Bond {{ $labels.master }} degraded on {{ $labels.instance }}"
{% endraw %}

{% if alertmanager_warn_network_bond_single_link | bool %}
{% raw %}
- alert: HostNetworkBondSingleLink
expr: node_bonding_slaves == 1
for: 2m
labels:
severity: warning
annotations:
summary: Host network bond with a single link (instance {{ $labels.instance }})
description: "Bond {{ $labels.master }} configured with a single link on {{ $labels.instance }}"
{% endraw %}
{% endif %}

{% raw %}
- alert: HostConntrackLimit
expr: node_nf_conntrack_entries / node_nf_conntrack_entries_limit > 0.8
for: 5m
Expand Down
4 changes: 4 additions & 0 deletions etc/kayobe/stackhpc-monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
# of free memory is lower than this value an alert will be triggered.
alertmanager_low_memory_threshold_gib: 5

# Whether to raise an alert if any network bond is configured with a single
# link. Change to false to disable this alert.
alertmanager_warn_network_bond_single_link: true

###############################################################################
# Exporter configuration

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
features:
- |
Adds a new Prometheus alert ``HostNetworkBondSingleLink`` which will be
raised when a bond is configured with only one member. This can happen when
NetworkManager detects that a bond member is down at boot time. This alert
can be disabled by setting ``alertmanager_warn_network_bond_single_link``
to ``false``.