This is my blog based on flexible-jekyll
xuyaoqiang / elastalert-dingtalk-plugin Goto Github PK
View Code? Open in Web Editor NEWelastalert 的钉钉报警插件
elastalert 的钉钉报警插件
This is my blog based on flexible-jekyll
I use docker to install elastalert. I try to load the new module, but it fails
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/elastalert", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/site-packages/elastalert/elastalert.py", line 2155, in main
client = ElastAlerter(args)
File "/usr/local/lib/python3.10/site-packages/elastalert/elastalert.py", line 128, in __init__
self.rules = self.rules_loader.load(self.conf, self.args)
File "/usr/local/lib/python3.10/site-packages/elastalert/loaders.py", line 170, in load
raise EAException('Error loading file %s: %s' % (rule_file, e))
elastalert.util.EAException: Error loading file /home/elastalert/rules/example_frequency.yaml: Error initiating alert ['elastalert_modules.dingtalk_alert.DingTalkAlerter']: Could not import module elastalert_modules.dingtalk_alert.DingTalkAlerter: No module named 'elastalert_modules'
load modules:
# ll /data/elastalert/elastalert_modules/
dingtalk_alert.py __init__.py
rules:
alert_text_type: alert_text_only
alert_text_args:
- host
- method
- request
- status
- upstream
- num_hits
alert:
- "elastalert_modules.dingtalk_alert.DingTalkAlerter"
显示消息发送,钉钉却没收到消息,钉钉机器人也添加了服务器IP白名单
INFO:elastalert:Ran monitor the 200 log in java-api log from 2020-12-02 21:02 CST to 2020-12-02 21:03 CST: 0 query hits (0 already seen), 2 matches, 1 alerts sent
env:
elk7.6
elastalert-0.2.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.