The sentry-monitor
collect the events (mostly exceptions) from sentry and plot the information in a line chart diagram.
![Screenshot] (screenshot.png)
Download the monitor.phar
file.
$ curl -OsL https://github.com/mi-schi/sentry-monitor/releases/download/stable/monitor.phar
$ chmod +x monitor.phar
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.
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.