-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
chore(ACI): Add metric for dual processing in metric alerts #91979
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
Conversation
"organizations:workflow-engine-metric-alert-dual-processing-logs", | ||
self.subscription.project.organization, | ||
): | ||
metrics.incr("dual_processing.alert_rules.fire") |
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.
I don't need the detection type to filter out anomaly detection alerts (which are not yet migrated) because those get fired and resolved in the if block above this
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
if features.has( | ||
"organizations:workflow-engine-metric-alert-dual-processing-logs", | ||
self.subscription.project.organization, | ||
): |
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.
nit: pull into its own variable so we don't have to check the feature flag twice here
Follow up to #91840 The `organization_id` tag is not showing up in Datadog despite manually allowing it for these metrics (I suspect something higher up is blocking it) so this PR removes that tag and adds a metric behind the logging flag for metric alerts firing so that we can see if they are firing at the same rate as in workflow engine.
Follow up to #91979 to only track when there is at least one action in `process_workflows` and differentiate between fires and resolves in the subscription processor. Previously I wanted them added together but now that we've realized we're not reaching `process_workflows` for resolutions I want to be able to determine if the number of fires is accurate.
Follow up to #91840
The
organization_id
tag is not showing up in Datadog despite manually allowing it for these metrics (I suspect something higher up is blocking it) so this PR removes that tag and adds a metric behind the logging flag for metric alerts firing so that we can see if they are firing at the same rate as in workflow engine.