Public | Automated Build

Last pushed: 2 years ago
Short Description
Sensu monitoring framework
Full Description

docker-sensu

Dependency setup

docker run --name redis --hostname redis -p 6379:6379 -d redis
docker run --name rabbit --hostname rabbit -p 5672:5672 -p 15672:15672 -d rabbitmq:3-management

Configure RabbitMQ

docker exec -ti rabbit rabbitmqctl add_vhost /sensu
docker exec -ti rabbit rabbitmqctl set_permissions -p /sensu guest ".*" ".*" ".*"

Sensu setup

Example Configurations

see: sensu documentation

sensu server

{
  "rabbitmq": {
    "host": "172.17.42.1",
    "port": 5672,
    "vhost": "/sensu",
    "user": "guest",
    "password": "guest"
  },
  "redis": {
    "host": "172.17.42.1"
  },
  "api": {
    "host": "172.17.42.1",
    "port": 4567
  }
}

checks

{
  "checks": {
    "memory": {
      "command": "/etc/sensu/plugins/check-memory.sh -w 128 -c 64",
      "interval": 10,
      "subscribers": [
        "test"
      ]
    }
  }
}

uchiwa

{
  "client": {
    "name": "sensu-client-node-hostname",
    "address": "sensu-client-node-ipaddr",
    "subscriptions": [
      "common",
      "web"
    ]
  },
  "keepalive": {
    "thresholds": {
      "critical": 60
    },
    "refresh": 300
  }
}

sensu client

{
  "client": {
    "name": "SUBSTITUTE_ME",
    "address": "SUBSTITUTE_ME",
    "subscriptions": [ "all" ]
  }
}

Launch containers

docker run --name sensu-srv --hostname sensu-srv -v /etc/sensu:/etc/sensu -d memrise/sensu server
docker run --name sensu-api --hostname sensu-api -v /etc/sensu:/etc/sensu -p 4567:4567 -d memrise/sensu api
docker run --name uchiwa --hostname uchiwa -p 3000:3000 -v /etc/uchiwa:/config -d uchiwa/uchiwa
docker run --name sensu-cli --hostname sensu-cli -v /etc/sensu:/etc/sensu -d memrise/sensu client
Docker Pull Command
Owner
memrise
Source Repository