跳转到主要内容

defcon.

项目描述

DefCon

Build Status Coverage Status PyPI version

UI 和 API 用于显示您服务的聚合状态。DefCon 的理念是收集您基础设施中各个组件的状态,并向人类和机器公开。人类(:couple:)会去 UI 查看是否有已知错误,而机器(:computer:)会消费 API。这可以用于在生产看起来不稳定时自动暂停 Jenkins 作业或 Chef 运行。

DefCon screenshot

目前该项目处于积极开发中,尚未准备就绪投入生产。

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/ 上还有更多内容可供使用。

插件

请参阅 defcon/plugins/README.md

快速入门

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 (24.8 kB 查看哈希值)

上传时间 源代码

由...