-
Notifications
You must be signed in to change notification settings - Fork 10
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
alert when instance count is low #1472
Conversation
Co-Authored-By: Samuel Aquino <[email protected]> Co-Authored-By: halprin <[email protected]> Co-Authored-By: James Gilmore <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
operations/template/alert.tf
Outdated
operator = "LessThanOrEqual" | ||
// This threshold is based on the autoscale settings in app.tf | ||
// How should we tune these numbers if we've scaled up higher than the initial count of 3/1? | ||
threshold = local.higher_environment_level ? 2.5 : 0.5 |
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.
Consider using a variable for the threshold values to make them configurable outside of the code, enhancing flexibility and maintainability. [important]
operations/template/alert.tf
Outdated
description = "Action will be triggered when the instance count is too low" | ||
frequency = "PT1M" // Checks every 1 minute | ||
window_size = "PT15M" // Every Check, looks back 15 minutes in history | ||
//TBD: How frequent do we want this alert and how far do we want it to look back. |
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.
Remove or address the commented line about frequency and window size to avoid confusion and ensure clarity in the alert's behavior. [important]
|
||
lifecycle { | ||
# Ignore changes to tags because the CDC sets these automagically | ||
ignore_changes = [ |
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.
Ensure that the 'ignore_changes' lifecycle configuration is necessary for all these tags, as it might lead to overlooking important changes. [medium]
PR Code Suggestions ✨Explore these optional code suggestions:
|
Co-Authored-By: Samuel Aquino <[email protected]> Co-Authored-By: halprin <[email protected]> Co-Authored-By: James Gilmore <[email protected]>
Co-Authored-By: Samuel Aquino <[email protected]> Co-Authored-By: halprin <[email protected]> Co-Authored-By: James Gilmore <[email protected]>
Co-Authored-By: Samuel Aquino <[email protected]> Co-Authored-By: James Gilmore <[email protected]>
Co-Authored-By: Samuel Aquino <[email protected]> Co-Authored-By: James Gilmore <[email protected]>
Co-Authored-By: Samuel Aquino <[email protected]> Co-Authored-By: James Gilmore <[email protected]>
Co-Authored-By: Samuel Aquino <[email protected]> Co-Authored-By: James Gilmore <[email protected]> Co-Authored-By: jherrflexion <[email protected]>
Co-Authored-By: Samuel Aquino <[email protected]> Co-Authored-By: James Gilmore <[email protected]> Co-Authored-By: jherrflexion <[email protected]> Co-Authored-By: halprin <[email protected]>
Co-Authored-By: Samuel Aquino <[email protected]>
Quality Gate passedIssues Measures |
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.
Re-approved. Looks right.
Description
Alert when Azure instance count is low, fix logic for identifying non-PR environments
Issue
#1398