Skip to content

Commit

Permalink
pkg/profiler: Change metric description (#253)
Browse files Browse the repository at this point in the history
While this does fix the double registration panic issue,
further work needs to be done to expose relevant labels.

Signed-off-by: Sumera Priyadarsini <sylphrenadin@gmail.com>
  • Loading branch information
Sylfrena committed Feb 24, 2022
1 parent c092f17 commit 9d37ad7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/profiler/profiler.go
Expand Up @@ -100,8 +100,9 @@ func NewCgroupProfiler(
mtx: &sync.RWMutex{},
missingStacks: promauto.With(reg).NewCounterVec(
prometheus.CounterOpts{
Name: "parca_agent_profiler_missing_stacks_total",
Help: "Number of missing profile stacks",
Name: "parca_agent_profiler_missing_stacks_total",
Help: "Number of missing profile stacks",
ConstLabels: map[string]string{"target": target.String()},
},
[]string{"type"}),
}
Expand Down

0 comments on commit 9d37ad7

Please sign in to comment.