Welcome, Guest Login

Support Center

Installing the Stackdriver Agent on Ubuntu and Debian

Last Updated: Aug 25, 2015 03:43PM EDT

The Stackdriver agent is currently built for Ubuntu Trusty Tahr (14.04), Precise (12.04). Ubuntu Lucid (10.04), Debian Squeeze, Debian Wheezy and Debian Jessie. 

If you are running a standard Ubuntu release that falls between LTS releases (11.04, 12.10, etc.), the previous LTS agent build should work. For example, if you are running 13.04, you can install the agent with our 12.04 build.  

If you need a different Debian based distribution, please let us know what distribution you are running so that we can work on adding support for it.

The agent is distributed from an apt repository. You can install it by running the following as root

  • Download the appropriate repo config file

    • Trusty Tahr: curl -o /etc/apt/sources.list.d/stackdriver.list https://repo.stackdriver.com/trusty.list

    • Precise: curl -o /etc/apt/sources.list.d/stackdriver.list https://repo.stackdriver.com/precise.list

    • Lucid: curl -o /etc/apt/sources.list.d/stackdriver.list https://repo.stackdriver.com/lucid.list

    • Jessie: curl -o /etc/apt/sources.list.d/stackdriver.list https://repo.stackdriver.com/jessie.list

    • Squeeze: curl -o /etc/apt/sources.list.d/stackdriver.list https://repo.stackdriver.com/squeeze.list

    • Wheezy: curl -o /etc/apt/sources.list.d/stackdriver.list https://repo.stackdriver.com/wheezy.list

  • curl --silent https://app.stackdriver.com/RPM-GPG-KEY-stackdriver |apt-key add -

  • apt-get update

  • apt-get install stackdriver-agent

This will download, prompt you for the api key and start the agent. If you are installing the agent in an automated fashion, you can preset the api key in debconf to avoid being prompted for the key by running

echo "stackdriver-agent stackdriver-agent/apikey string MYKEY" | debconf-set-selections
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found