Skip to content

[proxy] remove cluster tag from proxy metrics - #6985

Open
pascal-fischer wants to merge 1 commit into
mainfrom
remove-cluster-tag-from-metrics
Open

[proxy] remove cluster tag from proxy metrics#6985
pascal-fischer wants to merge 1 commit into
mainfrom
remove-cluster-tag-from-metrics

Conversation

@pascal-fischer

@pascal-fischer pascal-fischer commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Describe your changes

Issue ticket number and link

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • This change does not modify the public API, gRPC protocols, functionality behavior, CLI / service flags, or introduce a new feature — OR I have discussed it with the NetBird team beforehand (link the issue / Slack thread in the description). See CONTRIBUTING.md.

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__

Summary by CodeRabbit

  • Bug Fixes
    • Improved proxy and service metrics reliability by removing cluster-specific labels from metric updates.
    • Standardized connection, service update, and heartbeat measurements for more consistent monitoring.

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: a2983a8f-043e-445f-9f1d-b1160ef77d95

📥 Commits

Reviewing files that changed from the base of the PR and between c1f0006 and b27d7cf.

📒 Files selected for processing (2)
  • management/internals/modules/reverseproxy/proxy/manager/controller.go
  • management/internals/modules/reverseproxy/proxy/manager/metrics.go

📝 Walkthrough

Walkthrough

Proxy manager metrics now use attribute-free, parameterless updates. Controller call sites were updated for service updates and proxy registration lifecycle events.

Changes

Proxy manager metric updates

Layer / File(s) Summary
Simplify metric updates
management/internals/modules/reverseproxy/proxy/manager/metrics.go
Removes cluster metric attributes and changes proxy, service-update, and heartbeat instrument updates to use fixed deltas.
Update controller metric calls
management/internals/modules/reverseproxy/proxy/manager/controller.go
Updates service update, proxy registration, and proxy unregistration paths to call parameterless metric methods.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The template is present, but the change summary, issue link, stack, and docs explanation are not filled in. Add a short change summary, the issue ticket/link, stack details, and a reason for why documentation is not needed.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: removing the cluster tag from proxy metrics.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch remove-cluster-tag-from-metrics

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Release artifacts

Built for PR head b27d7cf in workflow run #17295.

Artifact Link
All release artifacts Download
Linux packages Download
Windows packages Download
macOS packages Download
UI artifacts Download
UI macOS artifacts Download

GHCR images (amd64)

This comment is updated by the Release workflow. Artifact links expire according to the workflow retention policy.

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.

2 participants