Ubuntu

Ubuntu

1. Add Boatswain’s GPG key

wget -O- http://repo.boatswain.io/boatswain-signing.gpg | sudo apt-key add -

2. Verify the key fingerprint (Optional)

apt-key finger

It should have the fingerprint EF26 4D49 421E C29E 4E67 024D 848D 971D BC51 C54B

pub   4096R/BC51C54B 2020-01-04
      Key fingerprint = EF26 4D49 421E C29E 4E67  024D 848D 971D BC51 C54B
uid                  Boatswain <[email protected]>

3. Add the Boatswain apt repository

echo 'deb http://repo.boatswain.io/packages/apt stable main' | sudo tee /etc/apt/sources.list.d/boatswain.list

4. Update the apt repository

apt-get update

5. Check the Boatswain version (Optional)

apt-cache policy boatswain

6. Install Boatswain

apt-get install boatswain

7. Setup the Boatswain account token

You could find your Boatswain account token on the web portal Settings -> Token. Request for an beta account first if you don’t have one yet.

Insert the token at the /etc/boatswain.yml.

# Please register and get the token from https://app.boatswain.io/
token: token_here
# Period is the collection time interval of the host and docker metrics.
# CPU load could be reduced by using longer period.
#   - short   = 10s
#   - default = 30s
#   - long    = 60s
period: default
# Send Log is the flag which determines if you would like to send the docker
# container logs to Boatswain.
#   - true
#   - false
send_log: true

8. Start Boatswain

For Ubuntu == 14.04

/etc/init.d/boatswain start

For Ubuntu >= 16.04

systemctl start boatswain