Skip to content

saady/sentry-prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monitor hosted sentry with prometheus

Since sentry does not support prometheus as a monitoring backend, we can send StatsdMetricsBackend metrics to statsd_exporter and configure prometheus to scrape them.

Demo:

sentry metrics

TODO

  • Add grafana dashboard
  • Deploy to kubernetes/minikube

Test

docker-compose build
docker-compose up
  • to view the scraped metrics in prometheus navigate to http://localhost:9090/

  • to view the translated statsd metrics navigate to http://localhost:9102/metrics

Notes:

# Sentry statsd exporter config
SENTRY_METRICS_BACKEND = 'sentry.metrics.statsd.StatsdMetricsBackend'
SENTRY_METRICS_OPTIONS = {
    'host': os.environ.get('SENTRY_METRICS_HOST'),
    'port': os.environ.get('SENTRY_METRICS_PORT')
}

About

Export hosted sentry statsd metrics to prometheus

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages