Skip to content

Add 404 error slack notifications#3013

Open
rmainwork wants to merge 6 commits into
mainfrom
rm/add-404-error-slack-notifications
Open

Add 404 error slack notifications#3013
rmainwork wants to merge 6 commits into
mainfrom
rm/add-404-error-slack-notifications

Conversation

@rmainwork

@rmainwork rmainwork commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

🔗 Relevant links

🗒️ What

Add slack notifications for 404 errors detected by Instana.

🧪 Testing

  • Grab the website key from here and add it to your .env as NEXT_PUBLIC_INSTANA_WEBSITE_MONITORING_KEY
  • Start dev portal locally in production mode (npm run build; npm run serve)
  • Navigate to the preview link
  • Generate a bunch of 404 errors by navigating to nonexistent pages
  • A slack notification should show up in the designated slack channel
image

@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dev-portal Ready Ready Preview, Comment Jun 18, 2026 6:12pm

Request Review

@rmainwork rmainwork requested review from a team and williamdalessandro and removed request for a team June 17, 2026 20:00
@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

This PR introduced no changes to the javascript bundle 🙌

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Instana configuration to notify a Slack channel when the website sees a high volume of 404 responses, aligning alerting with the monitoring setup managed in this repo’s Terraform.

Changes:

  • Introduces Terraform variables for Slack alerting configuration and 404 alert thresholds/time windows.
  • Adds an Instana Slack alerting channel resource and wires it into a new website 404 alert rule with tag filtering.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
terraform/variables.tf Adds inputs for Slack channel/app/workspace identifiers and 404 alert tuning parameters.
terraform/instana.tf Creates an Instana Slack alert channel and a 404 volume website alert using that channel and a generated tag filter.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread terraform/variables.tf
Comment thread terraform/variables.tf
Comment thread terraform/variables.tf
Comment thread terraform/instana.tf Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread terraform/instana.tf
Comment thread terraform/variables.tf
Comment thread terraform/variables.tf
rmainwork and others added 6 commits June 18, 2026 14:08
Notify slack channel for RUM errors
We aren't focusing on 5xx alerts in dev portal for now. Instead, focus only on 404 alerts within a specified time window
By using asset type (and getting rid of a bunch of string manipulation) - we can greatly simplify the alert configuration
Require the slack ID to be explicitly provided either via local tfvars, or via
vars in TFC. This prevents accidental notification of the wrong channel
by forcing this info to be explicitly provided
Apparently sets can introduce potential diff/ID issues. Since there's only one id here anyway, we can just use a simple list.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants