feat(providers): SNMP trap ingestion via JSON webhook (#2112)#6265
Open
Leviann wants to merge 4 commits intokeephq:mainfrom
Open
feat(providers): SNMP trap ingestion via JSON webhook (#2112)#6265Leviann wants to merge 4 commits intokeephq:mainfrom
Leviann wants to merge 4 commits intokeephq:mainfrom
Conversation
- POST /event/snmp accepts JSON from snmptrapd/Telegraf-style forwarders - Single trap, root JSON array, or batch via snmp_traps / traps - Map standard snmpTrapOID 1.3.6.1.6.3.1.1.5.* suffixes to severity - Unit tests for parse + format paths /claim keephq#2112 Made-with: Cursor
- Only map 1.3.6.1.6.3.1.1.5.* (SNMPv2-MIB notifications), not arbitrary .5.X tails - Catch ValueError from AlertSeverity.from_number for out-of-range ints Made-with: Cursor
- mint + snmp-provider.mdx for docs sidebar - bool/float severity handling; enterprise OID severity regression test - traps type guard test; int out-of-range + float JSON tests Made-with: Cursor
Author
Follow-up polish (no demo video)
Commit: dcac6b7 |
Made-with: Cursor
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
Adds an SNMP provider that ingests traps as JSON over the existing webhook path \POST /event/snmp\ (API key auth), matching how UDP/BER traps are usually integrated in production (snmptrapd \ raphandle\ + curl, SNMPTT, Telegraf \inputs.snmp_trap\ → HTTP, etc.).
What is included
Notes
Closes #2112
/claim #2112
Made with Cursor