Skip to content
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

Added alert frequency monitor metric #111

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

VenkataChalla554
Copy link
Contributor

@VenkataChalla554 VenkataChalla554 commented Jul 26, 2024

Context

Set frequency based on alert window size

Changes proposed in this pull request

Set frequency to azurerm_monitor_metric_alert based on alert window size.

Guidance to review

Tested on test branch : https://github.com/DFE-Digital/publish-teacher-training/tree/1927-allow-metric-frequency-override-test.

run terraform plan : make staging_aks deploy-plan IMAGE_TAG=96adb7639cb29bb97616939b88fc3e65aa3485a1.

it showed updating frequency as below for "alert_window_size": "PT1H"

~ frequency = "PT1M" -> "PT30M"

Before merging

After merging

Checklist

  • I have performed a self-review of my code, including formatting and typos
  • I have cleaned the commit history
  • I have added the Devops label
  • I have attached the pull request to the trello card

@VenkataChalla554 VenkataChalla554 force-pushed the 1927-allow-metric-frequency-override branch 3 times, most recently from f95db4f to 8170f36 Compare July 26, 2024 14:29
@VenkataChalla554 VenkataChalla554 marked this pull request as ready for review July 26, 2024 14:31
@VenkataChalla554
Copy link
Contributor Author

aks/postgres/variables.tf Outdated Show resolved Hide resolved
@saliceti saliceti force-pushed the 1927-allow-metric-frequency-override branch 2 times, most recently from 3392a20 to 2f6ee50 Compare July 29, 2024 10:48
The default 1 minute interval between checks doesn't work for window
sizes that are more than 4h.

Increase to 5 minutes for 6h and 12h.
@saliceti saliceti force-pushed the 1927-allow-metric-frequency-override branch from 2f6ee50 to 4a175da Compare July 29, 2024 10:54
@saliceti saliceti merged commit 19dd963 into main Jul 29, 2024
3 checks passed
@saliceti saliceti deleted the 1927-allow-metric-frequency-override branch July 29, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants