Expose the search-cluster node name on NodeInfo#26705
Draft
patrickmann wants to merge 2 commits into
Draft
Conversation
The node stats adapter already fetches each node's name from the _nodes response but dropped it: NodeInfo carried only version, OS, roles, and heap, keyed by node id. The System Overview health panel's shard-count check needs to join per-node shard counts (keyed by node name, from _cat/allocation) with per-node heap (keyed by node id, from _nodes), and the only existing id-to-name bridge is a per-node round-trip. Populate the node name in the OpenSearch 2/3 and Elasticsearch 7 adapters so a single _nodes read carries it. Enables Graylog2/graylog-plugin-enterprise#14658. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
patrickmann
force-pushed
the
expose-node-name-on-nodeinfo
branch
from
July 20, 2026 15:49
bfb8809 to
27b6ad0
Compare
patrickmann
changed the base branch from
master
to
search-cluster-health-reporters
July 20, 2026 15:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
/nocl
/prd Graylog2/graylog-plugin-enterprise#14917
Description
The node stats adapter already fetches each search-cluster node's name from the
_nodesresponse but dropped it:NodeInfocarried only version, OS, roles, and heap, keyed by node id.The System Overview health panel's
shard_countcheck (Graylog2/graylog-plugin-enterprise#14658) needs to join per-node shard counts (keyed by node name, from_cat/allocation) with per-node heap (keyed by node id, from_nodes). The only existing id-to-name bridge,ClusterAdapter.nodeIdToName(), is a per-node round-trip. This change exposes the nodenameonNodeInfoso a single_nodesread carries it, populated in the OpenSearch 2/3 and Elasticsearch 7 adapters.Additive field on a serialize-only DTO, no behavior change on its own. Independent of other health-panel work and can merge standalone.
Dependencies
Based on #26625 - that PR needs to be merged first.
How Tested
ShardCountHealthReporterunit tests in Graylog2/graylog-plugin-enterprise#14658, which join shard allocation to heap on this field.