Skip to content

Commit

Permalink
Remove self-ob group (#456)
Browse files Browse the repository at this point in the history
Signed-off-by: Gao Hongtao <[email protected]>
  • Loading branch information
hanahmily authored May 30, 2024
1 parent 8906b3c commit 11ba597
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 51 deletions.
46 changes: 0 additions & 46 deletions banyand/observability/self_observability.go

This file was deleted.

6 changes: 1 addition & 5 deletions banyand/observability/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,9 @@ func (p *metricService) Serve() run.StopNotify {

p.mutex.Lock()
defer p.mutex.Unlock()
err := createInternalGroup(p.metadata)
if err != nil {
p.l.Error().Err(err).Msg("Failed to create internal group")
}
clock, _ := timestamp.GetClock(context.TODO())
p.scheduler = timestamp.NewScheduler(p.l, clock)
err = p.scheduler.Register("metrics-collector", cron.Descriptor, "@every 15s", func(_ time.Time, _ *logger.Logger) bool {
err := p.scheduler.Register("metrics-collector", cron.Descriptor, "@every 15s", func(_ time.Time, _ *logger.Logger) bool {
MetricsCollector.collect()
return true
})
Expand Down

0 comments on commit 11ba597

Please sign in to comment.