From f2b0387a1b8386d7118c4e8b2b1ab5e0970a4f32 Mon Sep 17 00:00:00 2001 From: hulk Date: Wed, 22 May 2024 15:12:13 +0800 Subject: [PATCH] feat: allow using the consistent naming with the signoz collector (#4865) Co-authored-by: Srikanth Chekuri --- pkg/query-service/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/query-service/main.go b/pkg/query-service/main.go index 72962cfeef..793ce25bf2 100644 --- a/pkg/query-service/main.go +++ b/pkg/query-service/main.go @@ -53,6 +53,8 @@ func main() { flag.StringVar(&cacheConfigPath, "experimental.cache-config", "", "(cache config to use)") flag.StringVar(&fluxInterval, "flux-interval", "5m", "(cache config to use)") flag.StringVar(&cluster, "cluster", "cluster", "(cluster name - defaults to 'cluster')") + // Allow using the consistent naming with the signoz collector + flag.StringVar(&cluster, "cluster-name", "cluster", "(cluster name - defaults to 'cluster')") flag.IntVar(&maxIdleConns, "max-idle-conns", 50, "(number of connections to maintain in the pool, only used with clickhouse if not set in ClickHouseUrl env var DSN.)") flag.IntVar(&maxOpenConns, "max-open-conns", 100, "(max connections for use at any time, only used with clickhouse if not set in ClickHouseUrl env var DSN.)") flag.DurationVar(&dialTimeout, "dial-timeout", 5*time.Second, "(the maximum time to establish a connection, only used with clickhouse if not set in ClickHouseUrl env var DSN.)")