Giter VIP home page Giter VIP logo

ansible-graphite's Introduction

Build Status

Ansible - Graphite: Scalable Realtime Graphing

This Ansible playbook will install graphite via pip in its default location '/opt/graphite'

To run this playbook.

  1. clone the repo
  2. modify the hosts file to reflect the server you want to install Graphite on
  3. ignore ssh's known hosts file
  • export ANSIBLE_HOST_KEY_CHECKING=False
  1. run ansible-playbook -i hosts playbook.yml
  • You can modify the user Ansible uses by adding extra-vars ansible-playbook -i hosts playbook.yml --extra-vars ssh_user=ec2-user
  1. In ~4 minutes you should have a running Graphite server!

What you need to change

Secrets

Change graphite_secret_key under roles/graphite/defaults/main.yml to something unique for your graphite instance!

Django

Change graphite_django_admin_media under roles/graphite/defaults/main.yml to the path of your django admin media

    # XXX In order for the django admin site media to work you
    # must change @DJANGO_ROOT@ to be the path to your django
    # installation, which is probably something like:

    Alias /media/ "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/static/admin/"
    # or 
    #Alias /media/ "/usr/lib/python2.6/site-packages/django/contrib/admin/media/"

Carbon Storage and Aggregation

It has been setup according to this page and might not do what you expect to with your data

Testing

Vagrant

Simply clone this repo and make sure you have Vagrant + Virtual Box installed and...

  1. vagrant up
  2. visit http://192.168.111.222/
  3. :-)

Vagrant is using Ubuntu 14.04 Trusty Tahr for it's OS.

Digital Ocean

I've tested this playbook with Digital Ocean VM's with a few different flavor of OS's.

  • CentOS 6.5
  • Ubuntu 14.04 Trusty Tahr

AWS EC2

  • Amazon Linux

TODO

  • Add Django superuser creation python manage.py createsuperuser.

Known Issues

  • If you are seeing "DatabaseError: database is locked" in your graphite logs, restarting apache may fix the issue for you.
  • SELinux needs to be disabled

Resources

ansible-graphite's People

Contributors

dmichel1 avatar kaji-bikash avatar nikut avatar

Watchers

 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.