@@ -160,12 +160,12 @@ func TestStateReplication(t *testing.T) {
160
160
161
161
if tt .replicationFactor > 1 {
162
162
assert .NoError (t , testutil .GatherAndCompare (reg , strings .NewReader (`
163
- # HELP alertmanager_fetch_replica_state_failed_total Number of times we have failed to read and merge the full state from another replica.
164
- # TYPE alertmanager_fetch_replica_state_failed_total counter
165
- alertmanager_fetch_replica_state_failed_total 0
166
- # HELP alertmanager_fetch_replica_state_total Number of times we have tried to read and merge the full state from another replica.
167
- # TYPE alertmanager_fetch_replica_state_total counter
168
- alertmanager_fetch_replica_state_total 1
163
+ # HELP alertmanager_state_fetch_replica_state_failed_total Number of times we have failed to read and merge the full state from another replica.
164
+ # TYPE alertmanager_state_fetch_replica_state_failed_total counter
165
+ alertmanager_state_fetch_replica_state_failed_total 0
166
+ # HELP alertmanager_state_fetch_replica_state_total Number of times we have tried to read and merge the full state from another replica.
167
+ # TYPE alertmanager_state_fetch_replica_state_total counter
168
+ alertmanager_state_fetch_replica_state_total 1
169
169
# HELP alertmanager_partial_state_merges_failed_total Number of times we have failed to merge a partial state received for a key.
170
170
# TYPE alertmanager_partial_state_merges_failed_total counter
171
171
alertmanager_partial_state_merges_failed_total{key="nflog"} 0
@@ -178,7 +178,7 @@ alertmanager_state_initial_sync_completed_total{outcome="failed"} 0
178
178
alertmanager_state_initial_sync_completed_total{outcome="from-replica"} 1
179
179
alertmanager_state_initial_sync_completed_total{outcome="from-storage"} 0
180
180
alertmanager_state_initial_sync_completed_total{outcome="user-not-found"} 0
181
- # HELP alertmanager_state_initial_sync_total Number of times we have tried to sync initial state from peers or storage.
181
+ # HELP alertmanager_state_initial_sync_total Number of times we have tried to sync initial state from peers or remote storage.
182
182
# TYPE alertmanager_state_initial_sync_total counter
183
183
alertmanager_state_initial_sync_total 1
184
184
# HELP alertmanager_state_replication_failed_total Number of times we have failed to replicate a state to other alertmanagers.
@@ -188,8 +188,8 @@ alertmanager_state_replication_failed_total{key="nflog"} 0
188
188
# TYPE alertmanager_state_replication_total counter
189
189
alertmanager_state_replication_total{key="nflog"} 1
190
190
` ),
191
- "alertmanager_fetch_replica_state_failed_total " ,
192
- "alertmanager_fetch_replica_state_total " ,
191
+ "alertmanager_state_fetch_replica_state_failed_total " ,
192
+ "alertmanager_state_fetch_replica_state_total " ,
193
193
"alertmanager_partial_state_merges_failed_total" ,
194
194
"alertmanager_partial_state_merges_total" ,
195
195
"alertmanager_state_initial_sync_completed_total" ,
0 commit comments