feat(provider): Add SNMP webhook support for receiving traps (Issue #2112)#6096
Closed
matiasmagni wants to merge 20 commits intokeephq:mainfrom
Closed
feat(provider): Add SNMP webhook support for receiving traps (Issue #2112)#6096matiasmagni wants to merge 20 commits intokeephq:mainfrom
matiasmagni wants to merge 20 commits intokeephq:mainfrom
Conversation
…eephq#2112) - Add webhook_description and webhook_template for receiving SNMP traps - Add parse_event_raw_body() for parsing incoming trap JSON payloads - Add _format_alert() to convert traps to AlertDto objects - Add severity mapping (critical, error, high, warning, medium, low, info) - Add comprehensive unit tests for all new functionality - Add E2E test infrastructure for SNMP provider - Update documentation with webhook configuration examples
|
@matiasmagni is attempting to deploy a commit to the KeepHQ Team on Vercel. A member of the Team first needs to authorize it. |
|
Matias Magni seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
…eephq#2112) - Add webhook_description and webhook_template for receiving traps via HTTP - Add parse_event_raw_body() for parsing incoming trap JSON payloads - Add _format_alert() to convert traps to AlertDto objects - Add severity mapping (critical, error, high, warning, medium, low, info) - Add comprehensive unit tests for all new functionality - Add E2E test infrastructure for SNMP provider - Update documentation with webhook configuration examples - Add demo guide with curl and PowerShell commands
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
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
Implements Issue #2112: Receive SNMP traps into Keep as alerts via webhook.
Changes Made
Backend
webhook_descriptionandwebhook_templateclass attributes for receiving traps via HTTPparse_event_raw_body()static method to parse incoming JSON payloads_format_alert()static method to convert SNMP trap events to AlertDtoTests
Documentation
Demo
The SNMP provider now supports receiving traps via webhook. When configured, users can:
Example webhook payload:
{ "oid": "1.3.6.1.4.1.12345.1.2.3", "message": "CPU usage is high", "source": "server01", "severity": "critical" }This creates a firing alert with CRITICAL severity in Keep.
Video Demo
Link: https://youtu.be/_i0x0GqxG4Y
Since this is a backend-only change (the provider auto-discovers the webhook capability), here's how it works:
/claim #2112
Closes #2112