GithubHelp home page GithubHelp logo

setup-sentry-centos's Introduction

Setup script for Sentry on CentOS 6.x

Sentry is a realtime event logging and aggregation platform.
This scrips provides you to setup Sentry on CentOS 6.x with MySQL and Redis as Queue/Buffer/Cache so quickly.

Specification

  • Sentry
    • Queue: Redis
    • Buffer: Redis
    • Cache: Redis
    • work directory: /var/sentry
    • Persistent DB: MySQL (user/pass:sentry)
    • daemonize: Supervisord
    • execute user: sentry

Usage

General Usage

# install git and patch first because they are missing on centos
$ sudo yum install git patch

$ sudo git clone https://github.com/y-ken/setup-sentry-centos.git /usr/local/src/sentry/
$ cd /usr/local/src/sentry/

# execute setup script
$ sudo sh setup_sentry.sh

# edit SENTRY_URL_PREFIX
$ sudo vi /etc/sentry.conf.py

# execute middleware
$ sudo service redis start
$ sudo service mysqld start
$ sudo service supervisord start

# access the url like below.
$ curl localhost:9000

Docker

Run with Linux Container named Docker is also supported for instant testing.
It is useful to access with ssh port-forwarding to your local machine after execute docker run.

# install and run docker process if you have not already used docker
$ sudo yum -y install docker-io --enablerepo=epel
$ sudo service docker start

# clone repository
$ git clone https://github.com/y-ken/setup-sentry-centos.git
$ cd setup-sentry-centos

# build machine
$ sudo docker build -rm -t sentry .

# execute machine
$ DOCKER_MACHINE=`sudo docker run -d -t sentry`

# login to the machine (user/pass:root)
$ sudo docker inspect $DOCKER_MACHINE | grep IPAddress
$ ssh root@what-are-you-have-saw-the-IPAddress

# establish a port forward connection against the remote server
$ ssh -L 9000:172.17.0.8:9000 user@your-vps-server # execute at local machine

# open url with your web browser
# URL: http://localhost:9000

Vagrant

$ git clone https://github.com/y-ken/setup-sentry-centos.git
$ cd setup-sentry-centos

# execute machine
$ vagrant up

# login to the machine
$ vagrant ssh

TODO

Pull requests are very welcome!!

Copyright

Copyright © 2014- Kentaro Yoshida (@yoshi_ken)

License

setup-sentry-centos's People

Contributors

milesich avatar y-ken avatar

Stargazers

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

Watchers

 avatar

setup-sentry-centos's Issues

Install on fresh CentOS 7 install fails

When trying to run the script on a fresh CentOS 7 install, I receive the following error:

No package mysql-server available.

The script continues to run, but gets multiple errors / doesn't detect that the MySQL install failed.

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.