The API Key needed to connect to Sensu Go has to be created manually.
docker exec -it sensu-backend /bin/ash
Configure the sensuctl
command using the pre-set username and password:
sensuctl configure -n --url http://127.0.0.1:8080 --username admin --password 'Password123' --namespace default
Generate the API Key:
sensuctl api-key grant admin
The output should look similar to this:
Created: /api/core/v2/apikeys/0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
The Backend URL is the API port (8080) forwarded to the container, it should be
http://localhost:8080
The 0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d
in the output above is the API Key
to use in configuring the Sensu Go notification channel.