Giter VIP home page Giter VIP logo

sentry-pg's Introduction

Fetches Sentry issue data into a PostgreSQL database for easier analysis.

Prerequisites

  • a PostgreSQL database server
  • jq

Create a database for storing the data:

$ createdb my-sentry-db
$ psql -f schema/structure.sql my-sentry-db

An API token with project:read access is required. One can be generated at https://sentry.io/settings/account/api/auth-tokens/. The token may be passed to the import script either via the -t option or the SENTRY_TOKEN environment variable.

Usage

To fetch all issues and corresponding event data:

$ bin/import [-t TOKEN] [-q QUERY] PROJECT_SLUG DB

e.g.

$ bin/import -t ABC123 -q 'is:resolved NastyError' acme/backend sentry

The import script may be run multiple times. Newer events are imported for known issues.

Known issues

  • the Events API doesn't always return all events (according to the validation queries in lib/validate.sql). So, beware of doing raw number analysis on events.

sentry-pg's People

Contributors

harto avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.