Skip to content

chore(aci milestone 3): subscription processor memory + execution time metrics #96713

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

Merged
merged 2 commits into from
Jul 30, 2025

Conversation

mifu67
Copy link
Contributor

@mifu67 mifu67 commented Jul 29, 2025

Track execution time + memory usage for dual processing vs not dual processing. Diff is large because of indentation.

@mifu67 mifu67 requested a review from a team July 29, 2025 22:51
@mifu67 mifu67 requested a review from a team as a code owner July 29, 2025 22:51
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 29, 2025

if aggregation_value is not None:
with (
metrics.timer(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haven't checked, but might be simpler (at least in diff) to move the body of this to a function we call. not sure how many vars we'd need to pass around, but something to consider.

),
track_memory_usage(
"incidents.alert_rules.process_update_memory",
tags={"dual_processing": has_metric_alert_processing},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there'll be other modes here, might want to make this an arbitrary string so history is relevant. Otherwise, this is fine.

@mifu67 mifu67 merged commit dcb42e8 into master Jul 30, 2025
65 checks passed
@mifu67 mifu67 deleted the mifu67/aci/subscription-processor-metrics branch July 30, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants