Skip to content

Commit

Permalink
Add cluster peers per instance panel to cluster overview dash (#1455)
Browse files Browse the repository at this point in the history
* Add cluster peers per instance panel to cluster overview dash

* Rename instances->peers on the panel
  • Loading branch information
thampiotr authored Aug 13, 2024
1 parent d3ceda9 commit 0ea8f05
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
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}}',
),
])
),

]),
}

0 comments on commit 0ea8f05

Please sign in to comment.