From 624ecf4587b8391686717590112acba9a46ea108 Mon Sep 17 00:00:00 2001 From: bwplotka Date: Mon, 30 Sep 2024 14:25:30 +0100 Subject: [PATCH] Fixed flag parsing vars. Signed-off-by: bwplotka --- metrics/serve.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metrics/serve.go b/metrics/serve.go index 835f9e0..4c8677b 100644 --- a/metrics/serve.go +++ b/metrics/serve.go @@ -106,9 +106,9 @@ func NewConfigFromFlags(flagReg func(name, help string) *kingpin.FlagClause) *Co flagReg("histogram-metric-count", "Number of explicit (classic) histogram metrics to serve.").Default("10"). IntVar(&cfg.HistogramMetricCount) flagReg("histogram-metric-bucket-count", "Number of explicit buckets (classic) histogram metrics.").Default("8"). - IntVar(&cfg.HistogramMetricCount) - flagReg("native-histogram-metric-count", "Number of native (exponential) histogram metrics to serve.").Default("0"). IntVar(&cfg.HistogramBuckets) + flagReg("native-histogram-metric-count", "Number of native (exponential) histogram metrics to serve.").Default("0"). + IntVar(&cfg.NativeHistogramMetricCount) flagReg("summary-metric-count", "Number of summary metrics to serve.").Default("0"). IntVar(&cfg.SummaryMetricCount)