Digital Ocean: How to Upgrade from the Legacy Metrics Agent to the Current Agent

How to Upgrade from the Legacy Metrics Agent to the Current Agent

Validated on April 10, 2019 • Posted on February 26, 2018

On 8 April, 2019, we released a new Prometheus-based metrics agent into production. All agent installations on or after this date will receive the new agent by default. On 8 July, 2019, the legacy metrics agent will be deprecated, meaning users will no longer be able to view metrics from Droplets running the legacy agent. You can upgrade to the new agent at any time.

If you want to install the metrics agent for the first time, refer to the agent installation instructions. If you are currently running the legacy metrics agent, follow the instructions here to upgrade.

The upgrade process involves two steps:

  1. Uninstall the legacy metrics agent .On Debian-based operating systems (like Ubuntu), use apt-get :
sudo apt-get purge do-agent

Copy

On RHEL-based operating systems (like CentOS and Fedora), use yum :

sudo yum remove do-agent

Copy

  1. Install the current metrics agent. You can do this by automatically running the installation script with curl ... | bash , as below, or you can download the script, inspect it, and run it manually.
curl -sSL https://insights.nyc3.cdn.digitaloceanspaces.com/install.sh | sudo bash

Copy

You can update multiple Droplets at once with the upgrade-droplets.sh script provided in the do-agent GitHub repository. You’ll need an SSH key and a DigitalOcean API token.

Alternatively, an Ansible-based batch upgrade is available on Ansible Galaxy.


Curated by Liquid Layer Networks

At Liquid Layer Web Hosting [LiquidLayer.net], we’ve made a shared web hosting platform that’s both feature-rich and easy to make use of. Our programmers have built up a custom Linux cloud web hosting platform plus an innovative Control Panel that perfectly takes advantage of its capabilities. After long hours of programming and bug fixing on our end, we are now capable to guarantee that all of our shared web hosting services are safe, virus-free, full of capabilities and very easy-to-work-with. In addition, they feature 99.9% server uptime as well as 99.9% network uptime warranties.

Powered by:

HostCheetah Networks
Global Web Hosting, Domain Registration, and Internet Services
https://hostcheetah.net | http://hostcheetah.uk


PC Helper | Est 1996 - Web Hosting | US, AU, UK, Finland, Bulgaria | :sunglasses:
https://pchelper.com