-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add 4xx Alerts #203
Add 4xx Alerts #203
Conversation
Co-authored-by: pluckyswan <[email protected]> Co-authored-by: Sylvie <[email protected]> Co-authored-by: halprin <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
resource_group_name = data.azurerm_resource_group.group.name | ||
scopes = [azurerm_linux_web_app.sftp.id] | ||
description = "Action will be triggered when Http Status Code 4XX is greater than or equal to 3" | ||
frequency = "PT1M" // Checks every 1 minute |
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.
To enhance the alert's responsiveness and reduce potential downtime, consider adjusting the 'frequency' and 'window_size' parameters based on the expected traffic and error rates. This could help in faster detection and resolution of issues. [important]
PR Code Suggestions ✨Explore these optional code suggestions:
|
Co-authored-by: Sylvie <[email protected]> Co-authored-by: pluckyswan <[email protected]> Co-authored-by: halprin <[email protected]>
Co-authored-by: halprin <[email protected]> Co-authored-by: James Herr <[email protected]>
criteria { | ||
metric_namespace = "Microsoft.Web/sites" | ||
metric_name = "Http4xx" | ||
aggregation = "Total" |
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 had to change the aggregate type to Total (a.k.a. Sum) instead of Count. The reason why is because Count is the total number of measurements made within the granularity period. However, Total is the sum of values within that granularity period. For 4XX http calls, the Total is the total number of HTTP calls made in the granularity specified. While the Count is the total number of times Azure made a measurement within that granularity.
For Example: If Granularity is 1 minute, if I trigger five 4xx http calls within 1 minute, then the Total would be five but the count would only be 1 because it only measured it once.
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.
PR to update this in TI CDCgov/trusted-intermediary#1486
Co-authored-by: Sylvie <[email protected]>
Quality Gate passedIssues Measures |
Description
We manually tested this with a shorter lookback period in the internal environment
Issue
1396