Skip to content
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

Add cluster peers per instance panel to cluster overview dash #1455

Merged
merged 2 commits into from
Aug 13, 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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Main (unreleased)
used as a temporary measure, since this flag will be disabled in future
releases. (@thampiotr)

- Added a new panel to Cluster Overview dashboard to show the number of peers
seen by each instance in the cluster. This can help diagnose cluster split
brain issues. (@thampiotr)

### Bugfixes

- Fixed an issue which caused loss of context data in Faro exception. (@codecapitano)
Expand Down
25 changes: 25 additions & 0 deletions operations/alloy-mixin/dashboards/cluster-overview.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -225,5 +225,30 @@ local cluster_node_filename = 'alloy-cluster-node.json';
},
])
),

// Number of peers as seen by each instance.
(
panel.new(title='Number of peers seen by each instance', type='timeseries') +
panel.withUnit('peers') +
panel.withDescription(|||
The number of cluster peers seen by each instance.

When cluster is converged, every peer should see all the other instances. When we have a split brain or one
peer not joining the cluster, we will see two or more groups of instances that report different peer numbers
for an extended period of time and not converging.

This graph helps to identify which instances may be in a split brain state.
|||) +
panel.withPosition({ h: 12, w: 24, x: 0, y: 18 }) +
panel.withQueries([
panel.newQuery(
expr= |||
sum by(instance) (cluster_node_peers{%(groupSelector)s})
||| % $._config,
legendFormat='{{instance}}',
),
])
),

]),
}
Loading