Skip to content

Service responsible for powering Sentry's uptime detection features

License

Notifications You must be signed in to change notification settings

getsentry/uptime-checker

Repository files navigation

This service powers the results for uptime monitoring in Sentry.

Local Development

(The Dockerfile.localdev file is likely not what you want--it's only used for running linux-specific local tests.)

We have lots of tests that run quickly and will therefore provide you with a quick development loop. For more holistic testing, you can run the uptime-checker on your machine.

Dependencies

  • Protobuffers and CMake
    brew install protobuf
    brew install cmake

Running with local Sentry

  • Prepare your local development environment by following the guide here
  • (For now), ensure the following settings are in your ~/.sentry/sentry.conf.py file:
    SENTRY_FEATURES['organizations:insights-uptime'] = True
    SENTRY_EVENTSTREAM = "sentry.eventstream.kafka.KafkaEventStream"
    SENTRY_USE_UPTIME = True
  • Ensure Sentry is started with ingest and workers flags:
    sentry devserver --workers --ingest
  • The Makefile defines a few targets: run and run-verbose run the server (with additional logging), and test for running all tests.

About

Service responsible for powering Sentry's uptime detection features

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages