-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First cut at metrics for alertmanager sharding operation. #4149
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, my nits are minor and entirely optional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! I've left few comments, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this, looks good to me as far as I can tell, module the missing object/vs error comment Marco made.
Thanks all for the reviews and good feedback, appreciated as always. Will fix up now. |
This commit adds a number of metrics to help track the operation of the alertmanager sharding, specifically around the handling of the state. - `cortex_alertmanager_fetch_replica_state_total` - `cortex_alertmanager_fetch_replica_state_failed_total` - `cortex_alertmanager_state_initial_sync_total` - `cortex_alertmanager_state_initial_sync_completed_total` - `cortex_alertmanager_state_initial_sync_duration_seconds` - `cortex_alertmanager_state_persist_total` - `cortex_alertmanager_state_persist_failed_total` Note this complements the already existing metrics: - `cortex_alertmanager_partial_state_merges_total` - `cortex_alertmanager_partial_state_merges_failed_total` - `cortex_alertmanager_state_replication_total` - `cortex_alertmanager_state_replication_failed_total` Overly detailed timing metrics have not been included, instead opting for just a single (non per-user) histogram for the duration of the initial state operation. Timings for storage read/write are not included as they are already provided from the bucket client. Signed-off-by: Steve Simpson <[email protected]>
Signed-off-by: Steve Simpson <[email protected]>
Signed-off-by: Steve Simpson <[email protected]>
Signed-off-by: Steve Simpson <[email protected]>
Signed-off-by: Steve Simpson <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing my feedback! LGTM 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! My comments are not blocking.
Signed-off-by: Steve Simpson <[email protected]>
What this PR does:
This commit adds a number of metrics to help track the operation of the
alertmanager sharding, specifically around the handling of the state.
cortex_alertmanager_state_fetch_replica_state_total
cortex_alertmanager_state_fetch_replica_state_failed_total
cortex_alertmanager_state_initial_sync_total
cortex_alertmanager_state_initial_sync_completed_total
cortex_alertmanager_state_initial_sync_duration_seconds
cortex_alertmanager_state_persist_total
cortex_alertmanager_state_persist_failed_total
Note this complements the already existing metrics:
cortex_alertmanager_partial_state_merges_total
cortex_alertmanager_partial_state_merges_failed_total
cortex_alertmanager_state_replication_total
cortex_alertmanager_state_replication_failed_total
Overly detailed timing metrics have not been included, instead opting
for just a single (non per-user) histogram for the duration of the
initial state operation. Timings for storage read/write are not
included as they are already provided from the bucket client.
Checklist
Documentation addedCHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]