-
Notifications
You must be signed in to change notification settings - Fork 6
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
Making the github arc runner alarm more generic and scoped to runners #1371
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Updating alarms ⏰? Great! Please update the Google Sheet and add a 👍 to this message after 🙏 |
1 similar comment
Updating alarms ⏰? Great! Please update the Google Sheet and add a 👍 to this message after 🙏 |
Staging: eks✅ Terraform Init: Plan: 2 to add, 0 to change, 2 to destroy Show summary
Show planResource actions are indicated with the following symbols:
+ create
- destroy
Terraform will perform the following actions:
# aws_cloudwatch_log_metric_filter.github-arc-runner-alarm[0] will be created
+ resource "aws_cloudwatch_log_metric_filter" "github-arc-runner-alarm" {
+ id = (known after apply)
+ log_group_name = "/aws/containerinsights/notification-canada-ca-staging-eks-cluster/application"
+ name = "GitHub ARC Runners Write Alarm"
+ pattern = "{ $.kubernetes.pod_name = \"github-arc-ss-staging-*-runner-*\" && $.log = \"*ERROR*\" }"
+ metric_transformation {
+ name = "aggregating-github-arc-runner-alarm"
+ namespace = "LogMetrics"
+ unit = "None"
+ value = "1"
}
}
# aws_cloudwatch_log_metric_filter.github-arc-write-alarm[0] will be destroyed
# (because aws_cloudwatch_log_metric_filter.github-arc-write-alarm is not in configuration)
- resource "aws_cloudwatch_log_metric_filter" "github-arc-write-alarm" {
- id = "GitHub ARC Runners Write Alarm" -> null
- log_group_name = "/aws/containerinsights/notification-canada-ca-staging-eks-cluster/application" -> null
- name = "GitHub ARC Runners Write Alarm" -> null
- pattern = "WRITE ERROR" -> null
- metric_transformation {
- dimensions = {} -> null
- name = "aggregating-github-arc-write-alarm" -> null
- namespace = "LogMetrics" -> null
- unit = "None" -> null
- value = "1" -> null
}
}
# aws_cloudwatch_metric_alarm.github-arc-runner-error-alarm[0] will be created
+ resource "aws_cloudwatch_metric_alarm" "github-arc-runner-error-alarm" {
+ actions_enabled = true
+ alarm_actions = [
+ "arn:aws:sns:ca-central-1:239043911459:alert-critical",
]
+ alarm_description = "GitHub ARC Runners Are Failing"
+ alarm_name = "github-arc-runner-error-alarm"
+ arn = (known after apply)
+ comparison_operator = "LessThanThreshold"
+ evaluate_low_sample_count_percentiles = (known after apply)
+ evaluation_periods = 1
+ id = (known after apply)
+ metric_name = "aggregating-github-arc-runner-alarm"
+ namespace = "LogMetrics"
+ ok_actions = [
+ "arn:aws:sns:ca-central-1:239043911459:alert-critical",
]
+ period = 300
+ statistic = "Sum"
+ tags_all = (known after apply)
+ threshold = 1
+ treat_missing_data = "notBreaching"
}
# aws_cloudwatch_metric_alarm.github-arc-runner-write-alarm[0] will be destroyed
# (because aws_cloudwatch_metric_alarm.github-arc-runner-write-alarm is not in configuration)
- resource "aws_cloudwatch_metric_alarm" "github-arc-runner-write-alarm" {
- actions_enabled = true -> null
- alarm_actions = [
- "arn:aws:sns:ca-central-1:239043911459:alert-critical",
] -> null
- alarm_description = "GitHub ARC Runners Are Failing - Check Version Deprecation" -> null
- alarm_name = "github-arc-runner-write-alarm" -> null
- arn = "arn:aws:cloudwatch:ca-central-1:239043911459:alarm:github-arc-runner-write-alarm" -> null
- comparison_operator = "LessThanThreshold" -> null
- datapoints_to_alarm = 0 -> null
- dimensions = {} -> null
- evaluation_periods = 1 -> null
- id = "github-arc-runner-write-alarm" -> null
- insufficient_data_actions = [] -> null
- metric_name = "aggregating-github-arc-write-alarm" -> null
- namespace = "LogMetrics" -> null
- ok_actions = [
- "arn:aws:sns:ca-central-1:239043911459:alert-critical",
] -> null
- period = 300 -> null
- statistic = "Sum" -> null
- tags = {} -> null
- tags_all = {} -> null
- threshold = 1 -> null
- treat_missing_data = "notBreaching" -> null
}
Plan: 2 to add, 0 to change, 2 to destroy.
─────────────────────────────────────────────────────────────────────────────
Saved the plan to: plan.tfplan
To perform exactly these actions, run the following command to apply:
terraform apply "plan.tfplan"
Show Conftest resultsWARN - plan.json - main - Missing Common Tags: ["aws_acm_certificate.client_vpn"]
WARN - plan.json - main - Missing Common Tags: ["aws_acm_certificate.notification-canada-ca"]
WARN - plan.json - main - Missing Common Tags: ["aws_acm_certificate.notification-canada-ca-alt[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb.notification-canada-ca"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_listener.internal_alb_tls"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_listener.notification-canada-ca"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_target_group.internal_nginx_http"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_target_group.notification-canada-ca-admin"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_target_group.notification-canada-ca-api"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_target_group.notification-canada-ca-document"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_target_group.notification-canada-ca-document-api"]
WARN - plan.json - main - Missing Common Tags: ["aws_alb_target_group.notification-canada-ca-documentation"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_log_group.notification-canada-ca-eks-application-logs[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_log_group.notification-canada-ca-eks-cluster-logs[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_log_group.notification-canada-ca-eks-prometheus-logs[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.admin-evicted-pods[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.admin-pods-high-cpu-warning[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.admin-pods-high-memory-warning[0]"]
WARN - plan.json - main - Missing Common Tags: ["aws_cloudwatch_metric_alarm.admin-replicas-unavailable[0]"]
WARN - plan.json - main - Missing Common Tags:... |
sastels
approved these changes
Jun 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary | Résumé
The github arc runner alarm failed to trigger before. This alarm is more generic, but also scoped directly to the arc runners.
Related Issues | Cartes liées
Incident action
Test instructions | Instructions pour tester la modification
TF Apply works
Release Instructions | Instructions pour le déploiement
None.
Reviewer checklist | Liste de vérification du réviseur