Closed apaskulin closed 5 years ago
Closing in favor of https://docs.sensu.io/sensu-go/5.2/getting-started/sample-app/
Working branch: https://github.com/sensu/sandbox/tree/docker/sensu-go-docker
To do:
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
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: