mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
c5b988d600
#16480 # Checklist for submitter - [x] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [x] Added/updated tests - [x] Manual QA for all new/changed functionality |
||
---|---|---|
.. | ||
README.md |
Running self-hosted Sentry
It may be useful to run a local, self-hosted version of Sentry for tests or to aid in monitoring a local development environment.
It is possible to do so by following the steps documented on Sentry's website.
While Sentry's documentation is canonical, the high-level steps are documented here and annotated with Fleet specific information:
git clone
the Sentry self-hosted repositorygit checkout
a specific version (e.g.git checkout 24.2.0
)- Run
sudo ./install.sh
script (you may want to review the install scripts first, this takes a while to complete - maybe 30 minutes or so, you'll be prompted to create a Sentry user and password towards the end) - Once done, you should be able to run
docker-compose up -d
to bring up the self-hosted Sentry stack (that's a lot of containers to start) - Once the stack is up, you should be able to login at
http://localhost:9000
(on Google Chrome, after login I was met with a CSRF protection failure page, but it worked on Firefox) - In the "Issues" page, you should see a button labelled "Installation Instructions"; clicking on it will bring a page with the DSN that you can copy to use with Fleet (e.g.
http://<base64-data>@localhost:9000/1
) - Start
fleet serve
, passing the--sentry_dsn http://<sentry-dsn>
flag to enable Sentry
You may now login to Fleet and any errors should show up in this local self-hosted version of Sentry.