[PR #913] [MERGED] Add selfhosted metrics for PATs and service users #13136

Closed
opened 2026-08-05 02:07:33 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/913
Author: @pascal-fischer
Created: 5/30/2023
Status: Merged
Merged: 5/31/2023
Merged by: @pascal-fischer

Base: mainHead: feature/add_selfhosted_metrics_for_pat_and_service_user


📝 Commits (8)

📊 Changes

1 file changed (+52 additions, -2 deletions)

View changed files

📝 management/server/metrics/selfhosted.go (+52 -2)

📄 Description

Describe your changes

The new features PATs and service users where not monitored for selfhosted envs yet. Added metrics to keep track.

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)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/913 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 5/30/2023 **Status:** ✅ Merged **Merged:** 5/31/2023 **Merged by:** [@pascal-fischer](https://github.com/pascal-fischer) **Base:** `main` ← **Head:** `feature/add_selfhosted_metrics_for_pat_and_service_user` --- ### 📝 Commits (8) - [`7a9b05c`](https://github.com/netbirdio/netbird/commit/7a9b05c56d8cca6410f5661a4c9c7f325ace7f22) add selfhosted metric for pat and service users - [`452b045`](https://github.com/netbirdio/netbird/commit/452b045bb023ca3e01c402aff80aaa36683ac289) expose service users metrics - [`f164fad`](https://github.com/netbirdio/netbird/commit/f164fad2c29eb5934c7f19fdf9219e16bbaffb56) add some more metrics - [`51f780d`](https://github.com/netbirdio/netbird/commit/51f780dae959648ca0a456cec97a2fff147aacc1) initialize maps - [`22e81f4`](https://github.com/netbirdio/netbird/commit/22e81f493b7f5f75e9f6c20190d0577705c2088c) fix metric creation from maps - [`6fd13f5`](https://github.com/netbirdio/netbird/commit/6fd13f563e96f5dc80d09c22b33399d784740cc7) use new policy-rule object - [`fe596c3`](https://github.com/netbirdio/netbird/commit/fe596c38c611a3e655de99c08a8ee65eb7c6df3f) update rules count - [`9e04547`](https://github.com/netbirdio/netbird/commit/9e045479cc5858eb9c08e46642d3479332925d7e) fix pats counting ### 📊 Changes **1 file changed** (+52 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `management/server/metrics/selfhosted.go` (+52 -2) </details> ### 📄 Description ## Describe your changes The new features PATs and service users where not monitored for selfhosted envs yet. Added metrics to keep track. ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 02:07:33 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#13136