From 0b51265dea6f89e8856db19279af3d10c6204b57 Mon Sep 17 00:00:00 2001 From: niuxiaojie81 <85773309@qq.com> Date: Wed, 25 Aug 2021 10:53:06 +0800 Subject: [PATCH] core: split out detailed trie access metrics from insertion time,add flag --- cmd/alaya/main.go | 1 + cmd/utils/flags.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/cmd/alaya/main.go b/cmd/alaya/main.go index 8ac0dd2f63..ef1373bebc 100644 --- a/cmd/alaya/main.go +++ b/cmd/alaya/main.go @@ -137,6 +137,7 @@ var ( metricsFlags = []cli.Flag{ utils.MetricsEnabledFlag, + utils.MetricsEnabledExpensiveFlag, utils.MetricsEnableInfluxDBFlag, utils.MetricsInfluxDBEndpointFlag, utils.MetricsInfluxDBDatabaseFlag, diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 91fcceba57..e4cdc7b910 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -465,6 +465,10 @@ var ( Name: "metrics", Usage: "Enable metrics collection and reporting", } + MetricsEnabledExpensiveFlag = cli.BoolFlag{ + Name: "metrics.expensive", + Usage: "Enable expensive metrics collection and reporting", + } MetricsEnableInfluxDBFlag = cli.BoolFlag{ Name: "metrics.influxdb", Usage: "Enable metrics export/push to an external InfluxDB database",