@@ -18,42 +18,42 @@ func TestCompactorMetrics(t *testing.T) {
18
18
generateTestData (cm , 2222 )
19
19
20
20
err := testutil .GatherAndCompare (reg , bytes .NewBufferString (`
21
- # HELP blocks_meta_cortex_compactor_meta_base_syncs_total Total blocks metadata synchronization attempts by base Fetcher.
22
- # TYPE blocks_meta_cortex_compactor_meta_base_syncs_total counter
23
- blocks_meta_cortex_compactor_meta_base_syncs_total 11110
24
- # HELP blocks_meta_cortex_compactor_meta_modified Number of blocks whose metadata changed
25
- # TYPE blocks_meta_cortex_compactor_meta_modified gauge
26
- blocks_meta_cortex_compactor_meta_modified {modified="replica-label-removed"} 0
27
- # HELP blocks_meta_cortex_compactor_meta_sync_duration_seconds Duration of the blocks metadata synchronization in seconds.
28
- # TYPE blocks_meta_cortex_compactor_meta_sync_duration_seconds histogram
29
- blocks_meta_cortex_compactor_meta_sync_duration_seconds_bucket {le="0.01"} 0
30
- blocks_meta_cortex_compactor_meta_sync_duration_seconds_bucket {le="1"} 2
31
- blocks_meta_cortex_compactor_meta_sync_duration_seconds_bucket {le="10"} 3
32
- blocks_meta_cortex_compactor_meta_sync_duration_seconds_bucket {le="100"} 3
33
- blocks_meta_cortex_compactor_meta_sync_duration_seconds_bucket {le="300"} 3
34
- blocks_meta_cortex_compactor_meta_sync_duration_seconds_bucket {le="600"} 3
35
- blocks_meta_cortex_compactor_meta_sync_duration_seconds_bucket {le="1000"} 3
36
- blocks_meta_cortex_compactor_meta_sync_duration_seconds_bucket {le="+Inf"} 3
37
- blocks_meta_cortex_compactor_meta_sync_duration_seconds_sum 4.444
38
- blocks_meta_cortex_compactor_meta_sync_duration_seconds_count 3
39
- # HELP blocks_meta_cortex_compactor_meta_sync_failures_total Total blocks metadata synchronization failures.
40
- # TYPE blocks_meta_cortex_compactor_meta_sync_failures_total counter
41
- blocks_meta_cortex_compactor_meta_sync_failures_total 33330
42
- # HELP blocks_meta_cortex_compactor_meta_synced Number of block metadata synced
43
- # TYPE blocks_meta_cortex_compactor_meta_synced gauge
44
- blocks_meta_cortex_compactor_meta_synced {state="corrupted-meta-json"} 0
45
- blocks_meta_cortex_compactor_meta_synced {state="duplicate"} 0
46
- blocks_meta_cortex_compactor_meta_synced {state="failed"} 0
47
- blocks_meta_cortex_compactor_meta_synced {state="label-excluded"} 0
48
- blocks_meta_cortex_compactor_meta_synced {state="loaded"} 0
49
- blocks_meta_cortex_compactor_meta_synced {state="marked-for-deletion"} 0
50
- blocks_meta_cortex_compactor_meta_synced {state="marked-for-no-compact"} 0
51
- blocks_meta_cortex_compactor_meta_synced {state="no-meta-json"} 0
52
- blocks_meta_cortex_compactor_meta_synced {state="time-excluded"} 0
53
- blocks_meta_cortex_compactor_meta_synced {state="too-fresh"} 0
54
- # HELP blocks_meta_cortex_compactor_meta_syncs_total Total blocks metadata synchronization attempts.
55
- # TYPE blocks_meta_cortex_compactor_meta_syncs_total counter
56
- blocks_meta_cortex_compactor_meta_syncs_total 22220
21
+ # HELP cortex_compactor_meta_base_syncs_total Total blocks metadata synchronization attempts by base Fetcher.
22
+ # TYPE cortex_compactor_meta_base_syncs_total counter
23
+ cortex_compactor_meta_base_syncs_total 11110
24
+ # HELP cortex_compactor_meta_modified Number of blocks whose metadata changed
25
+ # TYPE cortex_compactor_meta_modified gauge
26
+ cortex_compactor_meta_modified {modified="replica-label-removed"} 0
27
+ # HELP cortex_compactor_meta_sync_duration_seconds Duration of the blocks metadata synchronization in seconds.
28
+ # TYPE cortex_compactor_meta_sync_duration_seconds histogram
29
+ cortex_compactor_meta_sync_duration_seconds_bucket {le="0.01"} 0
30
+ cortex_compactor_meta_sync_duration_seconds_bucket {le="1"} 2
31
+ cortex_compactor_meta_sync_duration_seconds_bucket {le="10"} 3
32
+ cortex_compactor_meta_sync_duration_seconds_bucket {le="100"} 3
33
+ cortex_compactor_meta_sync_duration_seconds_bucket {le="300"} 3
34
+ cortex_compactor_meta_sync_duration_seconds_bucket {le="600"} 3
35
+ cortex_compactor_meta_sync_duration_seconds_bucket {le="1000"} 3
36
+ cortex_compactor_meta_sync_duration_seconds_bucket {le="+Inf"} 3
37
+ cortex_compactor_meta_sync_duration_seconds_sum 4.444
38
+ cortex_compactor_meta_sync_duration_seconds_count 3
39
+ # HELP cortex_compactor_meta_sync_failures_total Total blocks metadata synchronization failures.
40
+ # TYPE cortex_compactor_meta_sync_failures_total counter
41
+ cortex_compactor_meta_sync_failures_total 33330
42
+ # HELP cortex_compactor_meta_synced Number of block metadata synced
43
+ # TYPE cortex_compactor_meta_synced gauge
44
+ cortex_compactor_meta_synced {state="corrupted-meta-json"} 0
45
+ cortex_compactor_meta_synced {state="duplicate"} 0
46
+ cortex_compactor_meta_synced {state="failed"} 0
47
+ cortex_compactor_meta_synced {state="label-excluded"} 0
48
+ cortex_compactor_meta_synced {state="loaded"} 0
49
+ cortex_compactor_meta_synced {state="marked-for-deletion"} 0
50
+ cortex_compactor_meta_synced {state="marked-for-no-compact"} 0
51
+ cortex_compactor_meta_synced {state="no-meta-json"} 0
52
+ cortex_compactor_meta_synced {state="time-excluded"} 0
53
+ cortex_compactor_meta_synced {state="too-fresh"} 0
54
+ # HELP cortex_compactor_meta_syncs_total Total blocks metadata synchronization attempts.
55
+ # TYPE cortex_compactor_meta_syncs_total counter
56
+ cortex_compactor_meta_syncs_total 22220
57
57
# HELP cortex_compact_group_compaction_planned_total Total number of compaction planned.
58
58
# TYPE cortex_compact_group_compaction_planned_total counter
59
59
cortex_compact_group_compaction_planned_total{user="aaa"} 211090
0 commit comments