aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/metrics/flags.go
diff options
context:
space:
mode:
Diffstat (limited to 'swarm/metrics/flags.go')
-rw-r--r--swarm/metrics/flags.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/swarm/metrics/flags.go b/swarm/metrics/flags.go
index 795fc402f..79490fd36 100644
--- a/swarm/metrics/flags.go
+++ b/swarm/metrics/flags.go
@@ -81,6 +81,9 @@ func Setup(ctx *cli.Context) {
hosttag = ctx.GlobalString(metricsInfluxDBHostTagFlag.Name)
)
+ // Start system runtime metrics collection
+ go gethmetrics.CollectProcessMetrics(2 * time.Second)
+
if enableExport {
log.Info("Enabling swarm metrics export to InfluxDB")
go influxdb.InfluxDBWithTags(gethmetrics.DefaultRegistry, 10*time.Second, endpoint, database, username, password, "swarm.", map[string]string{