Giter VIP home page Giter VIP logo

raven-sqs-proxy's Introduction

Sentry/Raven SQS Proxy

Build Status PyPI version

About

This is a very simple Python project that polls SQS for Sentry messages and then proxies them over to a Sentry instance.

This is based on the implementation of the Sentry.IO SQSTransport as implemented in this PR to raven-python.

How to use:

The first part in using this is to make use of the Sentry SQSTransport implemented in the getsentry/raven-python project.

This will have an instance, lambda function, or anything with AWS credentials to an SQS queue to forward all Sentry messages to SQS. This project will then listen for those messages on the queue and simply proxy them over to Sentry for storage.

Required Items:

For sending to the SQS queue, you will need the following:

  1. An SQS queue
  2. An IAM role with the following permissions to the SQS queue in question:
    sqs:GetQueueUrl
    sqs:SendMessage
    
  3. A Sentry DSN
  4. Python code that creates a Sentry client that looks similar to this:
    from raven.base import Client
    from raven.transport.sqs import SQSTransport
    
    # SQS details that are required are:
    # 1. `sqs_region`
    # 2. `sqs_account` This is the 12 digit AWS account number
    # 3. `sqs_name` 
    
    sentry_client = Client(dsn="https://some-sentry-dsn?sqs_region=REGION&sqs_account=ACCOUNT_NUMsqs_name=QUEUE_NAME",
                           transport=SQSTransport)
    
    

For retrieving messages:

  1. Access to the SQS queue the source app above is sending to. This will need the following permissions against the queue:
    sqs:GetQueueUrl
    sqs:SendMessage
    sqs:DeleteMessage
    
  2. Network-level access to the Sentry instance

Installation:

  1. Make and activate a Python virtual environment
  2. Run pip install raven_sqs_proxy to install this
  3. Hopefully you are running with on-instance AWS IAM role credentials. Otherwise, you will need to export them into your environment.
  4. Run sqsproxy --queue-name NAME-OF-QUEUE --queue-region QUEUE-REGION --queue-account AWS_ACCOUNT_ID_OF_QUEUE

That's it.

raven-sqs-proxy's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

raven-sqs-proxy's Issues

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.