Skip to content

feat(influxdb3_server): include node_id label on exported metrics#27402

Open
o6ivp wants to merge 1 commit intoinfluxdata:mainfrom
o6ivp:feat/metrics-node-id-label
Open

feat(influxdb3_server): include node_id label on exported metrics#27402
o6ivp wants to merge 1 commit intoinfluxdata:mainfrom
o6ivp:feat/metrics-node-id-label

Conversation

@o6ivp
Copy link
Copy Markdown

@o6ivp o6ivp commented May 2, 2026

Refs #26873

Add a with_default_attributes builder to PrometheusTextEncoder and use it to attach node_id to every series exposed via /metrics. As the issue notes, node_modes is more relevant to Enterprise and is left for a follow-up.

  • I've read the contributing section of the project README.
  • Signed CLA (if not already signed).

Add `with_default_attributes` to `PrometheusTextEncoder` so the same
label set can be applied to every reported observation. `handle_metrics`
uses it to attach `node_id` to each series, sparing operators from
relabeling on hostname. `node_modes` is more relevant to Enterprise and
is left for a follow-up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant