Getting Started with Sensu Go

Whether you’re completely new to Sensu, or a long-time Sensu user looking to see what’s new in Sensu Go — you’ve come to the right place.

Getting started is easy

Get Sensu up and running in as little as 15 minutes. In fact, you may be able to take the first steps in under a minute! Don’t believe us? Give the following quick start guide a try, and let us know if we can help!

1. Install Sensu Go

Deploy our official Docker container to get up and running in seconds. Follow these steps, then visit your Sensu Go dashboard at http://localhost:3000/.

sudo docker network create sensu
sudo docker volume create sensu-backend-data
sudo docker run -d --rm --name sensu-backend \
--network sensu -p 8080:8080 -p 3000:3000 \
-v sensu-backend-data:/var/lib/sensu \
sensu/sensu:5.19.0 sensu-backend start
sudo docker run -d --rm --network sensu -p :3030 \
sensu/sensu:5.19.0 sensu-agent start \
--backend-url ws://sensu-backend:8081 --deregister \
--keepalive-interval=5 --keepalive-timeout=10 --subscriptions linux
curl -s http://localhost:8080/version
sudo docker network create sensu
sudo docker volume create sensu-backend-data
sudo docker run -d --rm --name sensu-backend \
--network sensu -p 8080:8080 -p 3000:3000 \
-v sensu-backend-data:/var/lib/sensu \
sensu/sensu:5.19.0 sensu-backend start
sudo docker run -d --rm --network sensu -p :3030 \
sensu/sensu:5.19.0 sensu-agent start \
--backend-url ws://sensu-backend:8081 --deregister \
--keepalive-interval=5 --keepalive-timeout=10 --subscriptions linux
curl -s http://localhost:8080/version
sudo docker network create sensu
sudo docker volume create sensu-backend-data
sudo docker run -d --rm --name sensu-backend \
--network sensu -p 8080:8080 -p 3000:3000 \
-v sensu-backend-data:/var/lib/sensu \
sensu/sensu:5.19.0 sensu-backend start
sudo docker run -d --rm --network sensu -p :3030 \
sensu/sensu:5.19.0 sensu-agent start \
--backend-url ws://sensu-backend:8081 --deregister \
--keepalive-interval=5 --keepalive-timeout=10 --subscriptions linux
curl -s http://localhost:8080/version
docker.exe network create sensu
docker.exe volume create sensu-backend-data
docker.exe run -d --rm --name sensu-backend `
-p 8080:8080 -p 3000:3000 `
-v sensu-backend-data:/var/lib/sensu `
sensu/sensu:5.19.0 sensu-backend start
docker run.exe -d --rm --network sensu -p :3030 `
sensu/sensu:5.19.0 sensu-agent start `
--backend-url ws://sensu-backend:8081 --deregister `
--keepalive-interval=5 --keepalive-timeout=10 --subscriptions linux

2. Install the Sensu Go CLI

Sensuctl is a command line interface for running commands against Sensu clusters. Install sensuctl on your laptop to gain access to your multi-cloud monitoring control plane.

curl -LO https://s3-us-west-2.amazonaws.com/sensu.io/sensu-go/5.19.0/sensu-go_5.19.0_linux_amd64.tar.gz
sudo tar -xzf sensu-go_5.19.0_linux_amd64.tar.gz -C /usr/local/bin/
sensuctl configure -n --url http://127.0.0.1:8080 \
--username admin \
--password "P@ssw0rd!" \
--namespace default
sensuctl cluster health
sensuctl cluster id
curl -LO https://s3-us-west-2.amazonaws.com/sensu.io/sensu-go/5.19.0/sensu-go_5.19.0_linux_amd64.tar.gz
sudo tar -xzf sensu-go_5.19.0_linux_amd64.tar.gz -C /usr/local/bin/
sensuctl configure -n --url http://127.0.0.1:8080 \
--username admin \
--password "P@ssw0rd!" \
--namespace default
sensuctl cluster health
sensuctl cluster id
curl -LO https://s3-us-west-2.amazonaws.com/sensu.io/sensu-go/5.19.0/sensu-go_5.19.0_darwin_amd64.tar.gz
sudo tar -xzf sensu-go_5.19.0_darwin_amd64.tar.gz -C /usr/local/bin/
sensuctl configure -n --url http://127.0.0.1:8080 \
--username admin \
--password 'P@ssw0rd!' \
--namespace default
sensuctl cluster health
sensuctl cluster id
Invoke-WebRequest -Uri https://s3-us-west-2.amazonaws.com/sensu.io/sensu-go/5.19.0/sensu-go_5.19.0_windows_amd64.zip  -OutFile sensu-go_5.19.0_windows_amd64.zip
Expand-Archive -LiteralPath sensu-go_5.19.0_windows_amd64.zip -DestinationPath .
./sensuctl.exe configure -n --url http://127.0.0.1:8080 `
--username admin `
--password "P@ssw0rd!" `
--namespace default
./sensuctl.exe cluster health
./sensuctl.exe cluster id

3. Configure your first monitor!

Sensu makes it easy to deploy instrumentation (e.g. plugins or scripts) and configure new monitors. This example shows how to monitor system clock drift.

sensuctl asset add sensu/monitoring-plugins:2.2.0-1
sensuctl check create ntp \
--runtime-assets "sensu/monitoring-plugins" \
--command "check_ntp_time -H time.nist.gov --warn 0.5 --critical 1.0" \
--output-metric-format nagios_perfdata \
--publish="true" --interval 30 --timeout 10 --subscriptions linux
sensuctl event list
sensuctl asset add sensu/monitoring-plugins:2.2.0-1
sensuctl check create ntp \
--runtime-assets "sensu/monitoring-plugins" \
--command "check_ntp_time -H time.nist.gov --warn 0.5 --critical 1.0" \
--output-metric-format nagios_perfdata \
--publish="true" --interval 30 --timeout 10 --subscriptions linux
sensuctl event list
sensuctl asset add sensu/monitoring-plugins:2.2.0-1
sensuctl check create ntp \
--runtime-assets "sensu/monitoring-plugins" \
--command "check_ntp_time -H time.nist.gov --warn 0.5 --critical 1.0" \
--output-metric-format nagios_perfdata \
--publish="true" --interval 30 --timeout 10 --subscriptions linux
sensuctl event list
./sensuctl.exe asset add sensu/monitoring-plugins:2.2.0-1
./sensuctl.exe check create ntp `
--runtime-assets "sensu/monitoring-plugins" `
--command "check_ntp_time -H time.nist.gov --warn 0.5 --critical 1.0" `
--output-metric-format nagios_perfdata `
--publish="true" --interval 30 --timeout 10 --subscriptions linux
./sensuctl.exe event list

Congrats on getting up and running!

You’re off to a great start! Wasn’t that simple? Please take a moment to read some of the reference documentation that the guide has linked to – this should help explain what you’ve accomplished so far.

Are you ready for more? We’ll continue to expand this page with additional examples – from configuring your first alert, to showing how to configure a simple automated remediation in Sensu, so check back soon. In the interim, why not go to the docs and try one of our guides?

Join the community.

The Sensu Community communicates and collaborates on three main platforms.

GitHub

Check out the source code, share feedback, or report bugs related to the Sensu open source project on GitHub.

Discourse

Ask questions and get answers from Team Sensu, or other Sensu users on the Sensu Community Discourse.

Slack

Collaborate with other Sensu users in real time on the Sensu Community Slack workspace.

Register your Sensu install. Get rewarded!

Thanks for trying Sensu Go! Please take a moment to register your install so we can help you along your journey. We’ll even reward you for reaching certain milestones. To get your first reward, simply add your first ten checks and connect at least ten agents and we’ll send you your very own Sensu t-shirt.