Skip to content

Commit

Permalink
Update pkg/monitoring/prometheusagent/config.go
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBisson authored Apr 10, 2024
1 parent 6e9da42 commit 5140aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/monitoring/prometheusagent/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5140aa0

Please sign in to comment.