Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Commit

Permalink
Reduce verbosity of sysvars probe.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 281338146
  • Loading branch information
mgarolera authored and manugarg committed Nov 20, 2019
1 parent c153aa4 commit 0b54a2c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sysvars/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func counterRuntimeVars(dataChan chan *metrics.EventMetrics, ts time.Time, m *ru
em.AddMetric("frees", metrics.NewInt(int64(m.Frees)))

dataChan <- em
l.Info(em.String())
l.Debug(em.String())
}

// gaugeRuntimeVars exports gauge runtime stats, stats that represent the
Expand All @@ -53,5 +53,5 @@ func gaugeRuntimeVars(dataChan chan *metrics.EventMetrics, ts time.Time, m *runt
em.AddMetric("mem_stats_sys_bytes", metrics.NewInt(int64(m.Sys)))

dataChan <- em
l.Info(em.String())
l.Debug(em.String())
}
2 changes: 1 addition & 1 deletion sysvars/runtime_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ func osRuntimeVars(dataChan chan *metrics.EventMetrics, l *logger.Logger) {
}

dataChan <- em
l.Info(em.String())
l.Debug(em.String())
}
2 changes: 1 addition & 1 deletion sysvars/sysvars.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func Start(ctx context.Context, dataChan chan *metrics.EventMetrics, interval ti
em.AddMetric(k, metrics.NewString(vars[k]))
}
dataChan <- em
l.Info(em.String())
l.Debug(em.String())

runtimeVars(dataChan, l)
}
Expand Down

0 comments on commit 0b54a2c

Please sign in to comment.