Skip to content
This repository has been archived by the owner on Oct 3, 2021. It is now read-only.

mi-schi/sentry-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sentry-monitor

GitHub license Build Status Scrutinizer Code Quality Github All Releases

Features

The sentry-monitor collect the events (mostly exceptions) from sentry and plot the information in a line chart diagram.

![Screenshot] (screenshot.png)

Installation

Download the monitor.phar file.

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

Usage

Import the sentry events

Import the sentry events with the following command:

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

If you want to import only one project:

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

If you want to import all projects instead of one or more specific projects use the blacklist:

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

The sentry-api-key is the new oauth2 key you can generate on the api/ page.

Show the diagram

Start the build-in server with the default address http://localhost:8006:

monitor.phar run

Go to http://localhost:8006/[organisation-slug],3,hour,[project-name]. The three defines the days on the x-axis that will be displayed. You can define hour or day as x-axis scale. The parameter [project-name] is optional.