feat(snmp): add forwarded webhook snmp provider#6134
Closed
maketes79 wants to merge 1 commit intokeephq:mainfrom
Closed
feat(snmp): add forwarded webhook snmp provider#6134maketes79 wants to merge 1 commit intokeephq:mainfrom
maketes79 wants to merge 1 commit intokeephq:mainfrom
Conversation
|
@maketes79 is attempting to deploy a commit to the KeepHQ Team on Vercel. A member of the Team first needs to authorize it. |
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.
Closes #2112
/claim #2112
Summary
Adds an
snmpprovider that ingests forwarded SNMP trap data as JSON through Keep's existing webhook event endpoint.This implementation is intentionally scoped to forwarded JSON trap ingestion only. It does not add a native UDP listener or a Keep-side SNMP runtime dependency.
What changed
Added
snmpwebhook provider, trap OID to alert name/severity mapping, stable fingerprint generation usingfingerprintorsource_address|trap_oid|entity_id, batch JSON payload support, provider docs and generated snippet and unit tests for parsing, mapping, and fingerprint behavior.Testing
pytest tests/providers/snmp_provider/test_snmp_provider.py --confcutdir=tests/providers/snmp_providerruff check keep/providers/snmp_provider tests/providers/snmp_providerblack --check keep/providers/snmp_provider tests/providers/snmp_providerisort --check-only keep/providers/snmp_provider tests/providers/snmp_providerpython scripts/docs_render_provider_snippets.py --validatebash scripts/docs_validate_navigation.shManual verification
POST single
linkDownSNMP payload to/alerts/event/snmp->202 AcceptedPOST single
linkUpSNMP payload to/alerts/event/snmp->202 AcceptedPOST JSON array with 2 SNMP events to
/alerts/event/snmp->202 Accepted