GithubHelp home page GithubHelp logo

doytsujin / docker-sensu-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from warmfusion/docker-sensu

0.0 1.0 0.0 140 KB

A set of sensu docker containers that can help provision automated checks of docker containers

Makefile 32.07% Ruby 63.58% Shell 4.36%

docker-sensu-1's Introduction

Sensu Containers

A set of sensu docker containers that can help provision automated checks of docker containers

Usage

This guide assumes you already have an appropriate Sensu transport server running and redis datastore.

If you're trying this out for the first time, you can start redis and rabbitmq containers with the following simple commands:

docker run -d --hostname rabbitmq --name rabbitmq \
  -e RABBITMQ_DEFAULT_USER=sensu \
  -e RABBITMQ_DEFAULT_PASS=sensu \
  -e RABBITMQ_DEFAULT_VHOST=/sensu \
  rabbitmq:3
docker run -d --name redis redis:latest

Start a sensu-server

docker run -d --link=redis:redis --link=rabbitmq:rabbitmq warmfusion/sensu-server

Start a sensu-client

docker run -d --link=rabbitmq:rabbitmq warmfusion/sensu-client

Configuring Checks

You can define sensu-checks in the sensu-client by setting configuration files into the /etc/sensu/conf.d volume.

Remeber that you'll need to ensure that whatever check you run will be supported in the container, so you'll most likely need to extend this container to run your custom checks to install dependencies.

Start a sensu-api

docker run -d --link redis:redis warmfusion/sensu-api

Advanced

You can configure some specific configuration for connecting to RabbitMQ, Redis or the API services with the following environment variables.

SENSU_TRANSPORT=rabbitmq://sensu:sensu@rabbitmq:5672/?vhost=/sensu
SENSU_REDIS=redis://redis:6379
SENSU_API=api://sensuapi:4567

Nested Keys and RabbitMQ SSL Configuration

The sensu container includes a auto-configuration system which extracts a useful hash configuration block out of a uri.

Nested keys are supported by dotted string notation, for example, if you'd like to configure the ssl hash for a RabbitMQ connection simply define the SENSU_TRANSPORT string as follows

SENSU_TRANSPORT=rabbitmq://sensu:sensu@rabbitmq:5672/?vhost=/sensu&ssl.private_key_file=/etc/sensu/conf.d/ssl.key&ssl.cert_chain_file=/etc/sensu/conf.d/cert.pem

docker-sensu-1's People

Contributors

warmfusion avatar

Watchers

 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.