From 5140aa01868bfca8e99b9464308942927d228512 Mon Sep 17 00:00:00 2001 From: Quentin Bisson Date: Wed, 10 Apr 2024 14:04:55 +0200 Subject: [PATCH] Update pkg/monitoring/prometheusagent/config.go --- pkg/monitoring/prometheusagent/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/monitoring/prometheusagent/config.go b/pkg/monitoring/prometheusagent/config.go index cdb766a7..b38fcc21 100644 --- a/pkg/monitoring/prometheusagent/config.go +++ b/pkg/monitoring/prometheusagent/config.go @@ -94,7 +94,7 @@ func getServicePriority(cluster *clusterv1.Cluster) string { return defaultServicePriority } -// We want to compute the number of shards based on the number of nodes. +// We want to compute the number of shards based on the number of series. func getShardsCountForCluster(ctx context.Context, cluster *clusterv1.Cluster, currentShardCount int) (int, error) { headSeries, err := querier.QueryTSDBHeadSeries(ctx, cluster.Name) if err != nil {