Skip to content

feat: Add ElastAlert2 Provider#6208

Closed
aliyevr889 wants to merge 8 commits intokeephq:mainfrom
aliyevr889:feature/elastalert2-provider
Closed

feat: Add ElastAlert2 Provider#6208
aliyevr889 wants to merge 8 commits intokeephq:mainfrom
aliyevr889:feature/elastalert2-provider

Conversation

@aliyevr889
Copy link
Copy Markdown

Closes #4232

Summary

Adds a new ElastAlert2 Provider for Keep, integrating with the ElastAlert2 alerting framework for Elasticsearch.

Features

  • Webhook support — receive real-time alerts from ElastAlert2 via its http_post2 alerter
  • Pull rule error status from ElastAlert2 REST API
  • Automatic severity mapping: critical/error/warning/info/debug + numeric priority levels (1-4)
  • Full timestamp parsing from @timestamp and other Elasticsearch date formats

Files Added

  • keep/providers/elastalert2_provider/__init__.py
  • keep/providers/elastalert2_provider/elastalert2_provider.py
  • keep/providers/elastalert2_provider/README.md (includes rule configuration examples)

Webhook Setup

Add to any ElastAlert2 rule YAML:

alert:
  - post2
http_post_url: "https://<your-keep-url>/alerts/event/elastalert2"
http_post_payload:
  alert_name: "%(rule_name)s"
  message: "%(message)s"
  severity: "warning"

/bounty $50 
/claim #4232

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 4, 2026

@Aslanchik2 is attempting to deploy a commit to the KeepHQ Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Apr 4, 2026
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 4, 2026

CLA assistant check
All committers have signed the CLA.

@dosubot dosubot bot added Feature A new feature Provider Providers related issues labels Apr 4, 2026
@aliyevr889 aliyevr889 force-pushed the feature/elastalert2-provider branch from 907dd6b to 2f01950 Compare April 5, 2026 03:58
@shahargl
Copy link
Copy Markdown
Member

shahargl commented Apr 5, 2026

AI slop

@shahargl shahargl closed this Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature A new feature Provider Providers related issues size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🔌 Provider]: ElastAlert2

4 participants