Operations grimoire/Sentry: Difference between revisions
(Upgrade to 23.4.0.dev) |
|||
Line 12: | Line 12: | ||
If you've deployed another instance than for Nasqueron, replace it by the realm name. | If you've deployed another instance than for Nasqueron, replace it by the realm name. | ||
The following commands are available in | The following commands are available in 23.3: | ||
cleanup | cleanup Delete a portion of trailing data based on creation date. | ||
config Manage runtime config options. | |||
config | createuser Create a new user. | ||
createuser | devserver Starts a lightweight web server for development. | ||
devserver | devservices Manage dependent development services required for Sentry. | ||
django | django Execute Django subcommands. | ||
exec | exec Execute a script. | ||
export | execfile Execute a script. | ||
files | export Exports core metadata for the Sentry installation. | ||
help | files Manage files from filestore. | ||
import | help Show this message and exit. | ||
init | import Imports data from a Sentry export. | ||
permissions | init Initialize new configuration directory. | ||
plugins | killswitches Manage killswitches for ingestion pipeline. | ||
queues | migrations Manage migrations. | ||
repair | performance Performance utilities | ||
run | permissions Manage Permissions for Users. | ||
shell | plugins Manage Sentry plugins. | ||
start | queues Manage Sentry queues. | ||
tsdb | repair Attempt to repair any invalid data. | ||
upgrade | run Run a service. | ||
sendmail Sends emails from the default notification mail address. | |||
shell Run a Python interactive interpreter. | |||
spans Span utilities | |||
start DEPRECATED see `sentry run` instead. | |||
tsdb Tools for interacting with the time series database. | |||
upgrade Perform any pending database migrations and upgrades. | |||
write-hashes Runs span hash grouping on event data in the supplied filename using the... | |||
== Kafka and ZooKeeper == | == Kafka and ZooKeeper == | ||
Line 60: | Line 67: | ||
|- | |- | ||
! rOPS !! getsentry/self-hosted !! Sentry version | ! rOPS !! getsentry/self-hosted !! Sentry version | ||
|- | |||
| [https://devcentral.nasqueron.org/D2881 D2907] || [https://github.com/getsentry/self-hosted/commit/4d318761a84cae531f3d13cbb4420e640fa660f2 4d318761a84c] || 23.4.0.dev | |||
|- | |- | ||
| [https://devcentral.nasqueron.org/D2881 D2881] || [https://github.com/getsentry/self-hosted/commit/06662c6cdc8573f81b6a128c7bdb815efd5040ed 06662c6cdc85] || 23.2.0 | | [https://devcentral.nasqueron.org/D2881 D2881] || [https://github.com/getsentry/self-hosted/commit/06662c6cdc8573f81b6a128c7bdb815efd5040ed 06662c6cdc85] || 23.2.0 | ||
|} | |} |
Revision as of 09:19, 25 March 2023
Sentry is deployed on docker-002 through the Docker PaaS.
The Sentry DSN or the humans UI can be reached at https://sentry.nasqueron.org
Command line
Sentry provides a command line interface.
To use it, log in to docker-002, then run sentry nasqueron <command>
. It will then spawn a new container correctly linked to the database, SMTP server and PostgreSQL database to run it.
TODO: update the sentry wrapper to use the sentry network and get the right environment instead.
If you've deployed another instance than for Nasqueron, replace it by the realm name.
The following commands are available in 23.3:
cleanup Delete a portion of trailing data based on creation date. config Manage runtime config options. createuser Create a new user. devserver Starts a lightweight web server for development. devservices Manage dependent development services required for Sentry. django Execute Django subcommands. exec Execute a script. execfile Execute a script. export Exports core metadata for the Sentry installation. files Manage files from filestore. help Show this message and exit. import Imports data from a Sentry export. init Initialize new configuration directory. killswitches Manage killswitches for ingestion pipeline. migrations Manage migrations. performance Performance utilities permissions Manage Permissions for Users. plugins Manage Sentry plugins. queues Manage Sentry queues. repair Attempt to repair any invalid data. run Run a service. sendmail Sends emails from the default notification mail address. shell Run a Python interactive interpreter. spans Span utilities start DEPRECATED see `sentry run` instead. tsdb Tools for interacting with the time series database. upgrade Perform any pending database migrations and upgrades. write-hashes Runs span hash grouping on event data in the supplied filename using the...
Kafka and ZooKeeper
- Deployment pitfall: ZooKeeper wants a clean log if you initialise it, if not it will shutdown. Ensure it has always a data volume or an empty log when starting it.
- Kafka has a 20 seconds pause before initializing the topics, to let the cluster correctly start.
To reprovision Kafka and ZooKeeper from scratch, the following works fine:
$ rm -rf /srv/kafka/sentry_kafka /srv/zookeeper/sentry_zookeeper
$ deploy-container zookeeper
$ deploy-container kafka
Deployment of Sentry containers
Sentry containers are currently deployed to docker-002. Pillar configuration and containers definitions are based on the getsentry/self-hosted repository.
The containers ARE NOT directly deployed USING the getsentry/self-hosted repository or the scripts it provides. Containers are regularly managed like any other container through Salt in paas-docker role. Instead, the getsentry/self-hosted repository is used as reference implementation documentation and any change needs to be reflected to our own configuration.
rOPS | getsentry/self-hosted | Sentry version |
---|---|---|
D2907 | 4d318761a84c | 23.4.0.dev |
D2881 | 06662c6cdc85 | 23.2.0 |