|
|
@@ -176,7 +176,9 @@ func NewRegistry(reg prometheus.Registerer, kernelVersion string, nodeInfo *Node
|
|
|
//if err != nil {
|
|
|
// return nil, err
|
|
|
//}
|
|
|
- try.Go(r.PullAllAppInfo, CatchFn)
|
|
|
+ if *flags.SendNetData {
|
|
|
+ try.Go(r.PullAllAppInfo, CatchFn)
|
|
|
+ }
|
|
|
//go r.handleEvents(r.events)
|
|
|
try.GoParams(r.handleEvents, CatchFn, r.events)
|
|
|
|