-
Notifications
You must be signed in to change notification settings - Fork 1
Add notifications to the high number of messages alert #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
Merged
Conversation
This file contains hidden or 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
Signed-off-by: Jordan Conway <[email protected]>
OpenTofu plan for prod Plan: 1 to add, 1 to change, 0 to destroy.OpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
!~ update in-place
OpenTofu will perform the following actions:
# datadog_monitor.ci_retry_deadletter will be updated in-place
!~ resource "datadog_monitor" "ci_retry_deadletter" {
id = "9264784"
!~ message = <<-EOT
An unusually high number of messages is in the `ghci-lf-queued-builds-dead-letter` queue. This may indicate a potential outage with the project's autoscaler.
Verify that system is able to scale up EC2 instances by checking logs.
@webhook-lf-incident-io
+ @slack-PyTorch-pytorch-infra-alerts
+ @slack-Linux_Foundation-pytorch-alerts
EOT
name = "ALI AutoScaler Dead Letter Queue High Number Of Messages"
tags = []
# (16 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# datadog_webhook.lf-incident-io will be created
+ resource "datadog_webhook" "lf-incident-io" {
+ custom_headers = (sensitive value)
+ encode_as = "json"
+ id = (known after apply)
+ name = "lf-incident-io"
+ payload = jsonencode(
{
+ alert_transition = "$ALERT_TRANSITION"
+ deduplication_key = "****************************"
+ description = "$EVENT_MSG"
+ metadata = {
+ alert_metric = "$ALERT_METRIC"
+ alert_priority = "$ALERT_PRIORITY"
+ alert_query = "$ALERT_QUERY"
+ alert_scope = "$ALERT_SCOPE"
+ alert_status = "$ALERT_STATUS"
+ alert_title = "$ALERT_TITLE"
+ alert_type = "$ALERT_TYPE"
+ alert_url = "$LINK"
+ date = "$DATE"
+ event_type = "$EVENT_TYPE"
+ hostname = "$HOSTNAME"
+ id = "$ID"
+ last_updated = "$LAST_UPDATED"
+ logs_sample = "$LOGS_SAMPLE"
+ org = {
+ id = "$ORG_ID"
+ name = "$ORG_NAME"
}
+ snapshot_url = "$SNAPSHOT"
+ tags = "$TAGS"
}
+ source_url = "$LINK"
+ title = "$EVENT_TITLE"
}
)
+ url = "https://api.incident.io/v2/alert_events/datadog/01JKTRSFTE6H2SR4AFM4VGWZFN"
}
Plan: 1 to add, 1 to change, 0 to destroy. ❌ Error applying plan in Tofu Apply #10 |
Signed-off-by: Jordan Conway <[email protected]>
made some manual change to the incident.io webhook which may explain the lack of idempotency |
zxiiro
approved these changes
Jul 30, 2025
OpenTofu plan for prod Plan: 1 to add, 0 to change, 0 to destroy.OpenTofu used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
OpenTofu will perform the following actions:
# datadog_webhook.lf-incident-io will be created
+ resource "datadog_webhook" "lf-incident-io" {
+ custom_headers = (sensitive value)
+ encode_as = "json"
+ id = (known after apply)
+ name = "lf-incident-io"
+ payload = jsonencode(
{
+ alert_transition = "$ALERT_TRANSITION"
+ deduplication_key = "****************************"
+ description = "$EVENT_MSG"
+ metadata = {
+ alert_metric = "$ALERT_METRIC"
+ alert_priority = "$ALERT_PRIORITY"
+ alert_query = "$ALERT_QUERY"
+ alert_scope = "$ALERT_SCOPE"
+ alert_status = "$ALERT_STATUS"
+ alert_title = "$ALERT_TITLE"
+ alert_type = "$ALERT_TYPE"
+ alert_url = "$LINK"
+ date = "$DATE"
+ event_type = "$EVENT_TYPE"
+ hostname = "$HOSTNAME"
+ id = "$ID"
+ last_updated = "$LAST_UPDATED"
+ logs_sample = "$LOGS_SAMPLE"
+ org = {
+ id = "$ORG_ID"
+ name = "$ORG_NAME"
}
+ snapshot_url = "$SNAPSHOT"
+ tags = "$TAGS"
}
+ source_url = "$LINK"
+ title = "$EVENT_TITLE"
}
)
+ url = "https://api.incident.io/v2/alert_events/datadog/01JKTRSFTE6H2SR4AFM4VGWZFN"
}
Plan: 1 to add, 0 to change, 0 to destroy. ✅ Plan applied in Tofu Apply #10 |
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.
No description provided.