Skip to content

Commit

Permalink
fix: include only
Browse files Browse the repository at this point in the history
  • Loading branch information
istae committed Feb 27, 2025
1 parent 964b174 commit 1544c3e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"net/http"
"path/filepath"
"runtime"
"slices"
"sync"
"sync/atomic"
"time"
Expand Down Expand Up @@ -1168,14 +1167,10 @@ func NewBee(
// TODO: remove this when we have a push metrics opt in configuration
if true {

// TODO: remove this when we have an exclude option in the configuration
exclude := []string{"pullsync"}
// TODO: remove this when we have an include option in the configuration
include := []string{"pusher", "pushsync", "pullsync", "localstore"}

for _, m := range include {
if slices.Contains(exclude, m) {
continue
}
switch m {
case "pusher":
metricsRegistery.MustPushRegister(pusherService.Metrics()...)
Expand Down

0 comments on commit 1544c3e

Please sign in to comment.