From b15e54f4c3d88e8b6a2f885dc06fcb1b18f4b3ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20Krajcsovits?= Date: Wed, 16 Oct 2024 16:58:27 +0200 Subject: [PATCH] Apply suggestions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: György Krajcsovits --- pkg/querier/tenantfederation/merge_queryable_test.go | 6 +++--- pkg/storage/ingest/partition_offset_client_test.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/querier/tenantfederation/merge_queryable_test.go b/pkg/querier/tenantfederation/merge_queryable_test.go index 8706cf775e2..7917039942c 100644 --- a/pkg/querier/tenantfederation/merge_queryable_test.go +++ b/pkg/querier/tenantfederation/merge_queryable_test.go @@ -554,7 +554,7 @@ func TestMergeQueryable_Select(t *testing.T) { require.EqualError(t, seriesSet.Err(), tc.expectedQueryErr.Error()) } else { require.NoError(t, seriesSet.Err()) - assert.NoError(t, testutil.GatherAndCompare(reg, strings.NewReader(tc.expectedMetrics), "cortex_querier_federation_sample_tenants_queried")) + assert.NoError(t, testutil.GatherAndCompare(reg, strings.NewReader(tc.expectedMetrics), "cortex_querier_federation_tenants_queried")) assertEqualWarnings(t, tc.expectedWarnings, seriesSet.Warnings()) } @@ -709,7 +709,7 @@ func TestMergeQueryable_LabelNames(t *testing.T) { } else { require.NoError(t, err) assert.Equal(t, scenario.labelNamesTestCase.expectedLabelNames, labelNames) - assert.NoError(t, testutil.GatherAndCompare(reg, strings.NewReader(scenario.labelNamesTestCase.expectedMetrics), "cortex_querier_federation_sample_tenants_queried")) + assert.NoError(t, testutil.GatherAndCompare(reg, strings.NewReader(scenario.labelNamesTestCase.expectedMetrics), "cortex_querier_federation_tenants_queried")) assertEqualWarnings(t, scenario.labelNamesTestCase.expectedWarnings, warnings) } }) @@ -900,7 +900,7 @@ func TestMergeQueryable_LabelValues(t *testing.T) { } else { require.NoError(t, err) assert.Equal(t, tc.expectedLabelValues, actLabelValues, fmt.Sprintf("unexpected values for label '%s'", tc.labelName)) - assert.NoError(t, testutil.GatherAndCompare(reg, strings.NewReader(tc.expectedMetrics), "cortex_querier_federation_sample_tenants_queried")) + assert.NoError(t, testutil.GatherAndCompare(reg, strings.NewReader(tc.expectedMetrics), "cortex_querier_federation_tenants_queried")) assertEqualWarnings(t, tc.expectedWarnings, warnings) } }) diff --git a/pkg/storage/ingest/partition_offset_client_test.go b/pkg/storage/ingest/partition_offset_client_test.go index 7265448b7e7..1017f4cdd79 100644 --- a/pkg/storage/ingest/partition_offset_client_test.go +++ b/pkg/storage/ingest/partition_offset_client_test.go @@ -381,7 +381,7 @@ func TestPartitionOffsetClient_FetchPartitionsLastProducedOffsets(t *testing.T) # HELP cortex_ingest_storage_reader_last_produced_offset_failures_total Total number of failed requests to get the last produced offset. # TYPE cortex_ingest_storage_reader_last_produced_offset_failures_total counter cortex_ingest_storage_reader_last_produced_offset_failures_total{partition="mixed"} 0 - + # HELP cortex_ingest_storage_reader_last_produced_offset_requests_total Total number of requests issued to get the last produced offset. # TYPE cortex_ingest_storage_reader_last_produced_offset_requests_total counter cortex_ingest_storage_reader_last_produced_offset_requests_total{partition="mixed"} 4