From 0ce4cc87ba68e0c4f4c2e6a9685594f1c7f4fe50 Mon Sep 17 00:00:00 2001 From: Tim Myers Date: Fri, 21 May 2021 11:36:46 -0600 Subject: [PATCH] fix(l2geth): add an env var METRICS_ENABLE for MetricsEnabledFlag --- .changeset/two-suits-care.md | 5 +++++ l2geth/cmd/utils/flags.go | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/two-suits-care.md diff --git a/.changeset/two-suits-care.md b/.changeset/two-suits-care.md new file mode 100644 index 000000000000..d5caf901d1fc --- /dev/null +++ b/.changeset/two-suits-care.md @@ -0,0 +1,5 @@ +--- +'@eth-optimism/l2geth': patch +--- + +add an env var METRICS_ENABLE for MetricsEnabledFlag diff --git a/l2geth/cmd/utils/flags.go b/l2geth/cmd/utils/flags.go index c9364e6b9de1..9b95f599c3fc 100644 --- a/l2geth/cmd/utils/flags.go +++ b/l2geth/cmd/utils/flags.go @@ -755,6 +755,8 @@ var ( MetricsEnabledFlag = cli.BoolFlag{ Name: "metrics", Usage: "Enable metrics collection and reporting", + + EnvVar: "METRICS_ENABLE", } MetricsEnabledExpensiveFlag = cli.BoolFlag{ Name: "metrics.expensive",