Upgrade Agent

Standard Method

If you installed Bleemeo agent with the standard method, it’s installed using your system packaging tools. Therefore upgrade is done by those tools.

On Ubuntu or Debian, your usual upgrade process should already handle agent upgrade. The following will upgrade the agent and Telegraf:

$ sudo apt-get update
$ sudo apt-get install bleemeo-agent bleemeo-agent-telegraf telegraf

Using Docker

If you run Bleemeo agent using Docker image, you will need to pull again the images to get their latest versions before restarting Docker container. Containers do not hold any state data; the agent state is stored on your host, thanks to -v /var/lib/bleemeo:/var/lib/bleemeo.

The following commands will upgrade your Bleemeo agent container:

$ docker pull bleemeo/agent
$ docker rm -f bleemeo-agent
$ docker run -d --name="bleemeo-agent" \
    -v /var/lib/bleemeo:/var/lib/bleemeo -v /var/run/docker.sock:/var/run/docker.sock \
    -e BLEEMEO_AGENT_ACCOUNT=<YOUR-ACCOUNT-ID> -e BLEEMEO_AGENT_REGISTRATION_KEY=<YOUR-REGISTRATION-KEY> \
    --pid=host --net=host bleemeo/agent

You will also need to upgrade your metrics collector container. For Telegraf:

$ docker pull bleemeo/telegraf
$ docker rm -f bleemeo-telegraf
$ docker run -d --name="bleemeo-telegraf" -v /:/hostroot:ro --net=host --pid=host bleemeo/telegraf

Manual Method

If you did a manual installation by following our steps, Bleemeo agent is installed using pip. Therefore you could use pip to upgrade it:

$ sudo /opt/bleemeo-agent/bin/pip install -U git+https://github.com/bleemeo/bleemeo-agent.git@stable#egg=bleemeo-agent[bleemeo]

Then restart the agent:

$ sudo -u bleemeo pkill bleemeo-agent
$ sudo -u bleemeo /opt/bleemeo-agent/bin/bleemeo-agent