defcon.
项目描述
DefCon
UI 和 API 用于显示您服务的聚合状态。DefCon 的理念是收集您基础设施中各个组件的状态,并向人类和机器公开。人类(:couple:)会去 UI 查看是否有已知错误,而机器(:computer:)会消费 API。这可以用于在生产看起来不稳定时自动暂停 Jenkins 作业或 Chef 运行。
目前该项目处于积极开发中,尚未准备就绪投入生产。
API
只需访问 /api/defcon/<COMPONENT_ID>/
。
GET /api/defcon/observability/
HTTP 200 OK
Allow: GET, OPTIONS
Content-Type: application/json
Vary: Accept
{
"url": "http://defcon/api/components/observability/",
"plugins": [
{
"url": "http://defcon/api/plugin_instance/4/",
"statuses": [],
"name": "alertmanager-page",
"config": "{'receiver': 'observability-page', 'defcon': 2, 'api': 'https://alertmanager/'}",
"plugin": "http://defcon/api/plugin/alertmanager/"
},
{
"url": "http://defcon/api/plugin_instance/5/",
"name": "alertmanager-ticket",
"description": "",
"config": "{'receiver': 'observability-ticket', 'defcon': 4, 'api': 'https://alertmanager/'}",
"plugin": "http://defcon/api/plugin/alertmanager/"
}
],
"statuses": [],
"defcon": 5,
"name": "Observability",
"description": "",
"link": "https://confluence/display/OBS",
"contact": "observability@iksaif.net"
}
在 /api/
上还有更多内容可供使用。
插件
快速入门
virtualenv venv -p python3
source venv/bin/activate
cp examples/local_settings.py defcon/
pip install -r requirements.txt
./manage.py migrate
./manage.py migrate --run-syncdb
./manage.py createsuperuser
./manage.py loadplugins
./manage.py loadcomponents
./manage.py runplugins
./manage.py runserver
项目详情
关闭
defcon-monitoring-0.3.11.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | a2daa62b0e6b33447dff148f731c8e5b6e1db5ae2a095c958d44203b276d1f06 |
|
MD5 | 66626e152889b1ae5910034f279234dd |
|
BLAKE2b-256 | 8d0fd085d9aa75c8743379e7a882b6db3d3248e1f0ab30f075da4ac7c932bfab |