enlightened-dc/sentry-monitor

此软件包已被 废弃 且不再维护。未建议替代软件包。

Sentry 监控屏幕。在时间线上显示您的项目的异常。

1.3.0 2017-03-10 10:52 UTC

This package is not auto-updated.

Last update: 2021-10-16 02:08:27 UTC


README

GitHub license Build Status Scrutinizer Code Quality Github All Releases

功能

sentry-monitor 从 Sentry 收集事件(主要是异常),并在折线图图中绘制信息。

![截图] (screenshot.png)

安装

下载 monitor.phar 文件。

 $ curl -OsL https://github.com/mi-schi/sentry-monitor/releases/download/stable/monitor.phar
 $ chmod +x monitor.phar

使用方法

导入 Sentry 事件

使用以下命令导入 Sentry 事件

monitor.phar import [organisation-slug] --sentry-url=https://sentry.domain.com --sentry-api-key=ewd7wg68e76gziefb9eb

如果您只想导入一个项目

monitor.phar import [organisation-slug] [project-slug] --sentry-url=https://sentry.domain.com --sentry-api-key=ewd7wg68e76gziefb9eb

如果您想导入所有项目而不是一个或多个特定项目,请使用黑名单

monitor.phar import [organisation-slug] --sentry-url=https://sentry.domain.com --sentry-api-key=ewd7wg68e76gziefb9eb --project-blacklist=sentry --project-blacklist=my-test-project

Sentry-api-key 是您可以在 api/ 页面上生成的新的 OAuth2 密钥。

显示图表

使用默认地址 https://:8006 启动内置服务器

monitor.phar run

访问 https://:8006/[organisation-slug],3,hour,[project-name]。其中的三个定义了 x 轴上显示的天数。您可以定义 hourday 作为 x 轴的比例。参数 [project-name] 是可选的。