MCPcopy Index your code
hub / github.com/netdata/netdata / setupRuntimeService

Method setupRuntimeService

src/go/plugin/agent/agent.go:292–300  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

290}
291
292func (a *Agent) setupRuntimeService() (runtimecomp.Service, func()) {
293 if a == nil || !a.runModePolicy.EnableRuntimeCharts {
294 return nil, nil
295 }
296
297 svc := runtimechartemit.New(a.Logger.With(slog.String("component", "runtime metrics service")))
298 svc.Start(a.Name, a.Out)
299 return svc, svc.Stop
300}
301
302func (a *Agent) signalAuditComplete() {
303 a.quitOnce.Do(func() {

Callers 2

runMethod · 0.95

Calls 4

WithMethod · 0.80
NewMethod · 0.65
StartMethod · 0.65
StringMethod · 0.45

Tested by 1