sensu / sandbox

The place to get started for new Sensu users
MIT License
21 stars 13 forks source link

Sensu Go Docker sandbox #31

Closed apaskulin closed 5 years ago

apaskulin commented 5 years ago

Create a sandbox in this repo using Docker and Sensu Go with pre-installed pipelines and tools, based on https://github.com/sensu/sensu-go/blob/master/docker-compose.yaml and https://github.com/calebhailey/sensu-go-demo/blob/master/docker-compose.yml

Requirements:

Structure:

apaskulin commented 5 years ago

Closing in favor of https://docs.sensu.io/sensu-go/5.2/getting-started/sample-app/

apaskulin commented 5 years ago

Working branch: https://github.com/sensu/sandbox/tree/docker/sensu-go-docker

To do:

jspaleta commented 5 years ago

This command will create a container named sensu-agent and will connect to the docker network sensu-go-docker_default The sensu-agent will connect to the backend server as entity named sandbox-agent

docker run -d --name sensu-agent --network sensu-go-docker_default sensu/sensu:latest sensu-agent start --backend-url ws://sensu-backend:8081 --subscriptions "sandbox" --name "sandbox-agent" 

The name of the network maybe different for you docker-compose is choosing the network name because we aren't be explicit about it yet in the compose file. You should see a message about network being setup when you run the compose up. You can check the networks docker is management with docker network ls

apaskulin commented 5 years ago

Closed by https://github.com/sensu/sandbox/tree/master/sensu-go-docker