---
title: How to Upgrade Your Legacy Metrics Agent
description: Remove the legacy metrics agent and install the newer Prometheus-based version to restore extended metrics visibility.
product: Insights
url: https://docs.digitalocean.com/products/insights/how-to/upgrade-legacy-agent/
last_updated: "2026-11-23"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# How to Upgrade Your Legacy Metrics Agent

DigitalOcean Insights provides metrics, logs, traces, dashboards, and alerts to help you monitor, analyze, and troubleshoot supported DigitalOcean resources.

**Note**:

  As of 8 April 2019, new metrics agent installations use the [Prometheus-based metrics agent](https://github.com/digitalocean/do-agent). This lightweight agent collects Droplet-level system metrics.

  As of 8 July 2019, the legacy metrics agent is deprecated. It doesn’t support newer metrics, uses more system resources, and no longer provides extended metrics in the DigitalOcean Control Panel or API.

Upgrading to the Prometheus-based agent restores enhanced Droplet metrics in Insights, including load averages, memory usage, and disk usage. The newer agent also uses fewer resources and supports resource alerts.

Without upgrading, your Droplet stops receiving enhanced metrics, reducing visibility into resource usage and potentially affecting resource alerts.

## Check If Legacy Agent Installed

Before upgrading your metrics agent, check if your Droplet is still using the legacy agent by running the following command:

```shell
ps aux | grep do-agent
```

If the output includes `/opt/digitalocean/bin/do-agent`, your Droplet uses the Prometheus-based agent. If it includes `/usr/bin/droplet-agent`, another older agent path, or no output, your Droplet is likely using the legacy agent or the agent isn’t running, and you may need to [upgrade the metrics agent](#upgrade).

Alternatively, you can run the following command to check the installed agent version:

```shell
/opt/digitalocean/bin/do-agent --version
```

If the command fails or returns a version earlier than 3.x, your Droplet is using the legacy agent and you need to [upgrade the metrics agent](#upgrade).

## Upgrade Metrics Agent

To upgrade from the legacy metrics agent to the [Prometheus-based metrics agent](https://github.com/digitalocean/do-agent), first [uninstall the legacy metrics agent](https://docs.digitalocean.com/products/insights/how-to/uninstall-metrics-agent/index.html.md). Then, either [download the installation script, inspect it, and run it manually](https://docs.digitalocean.com/products/insights/how-to/install-metrics-agent/index.html.md#download-inspect-run) or [install it by configuring the repository directly](https://docs.digitalocean.com/products/insights/how-to/install-metrics-agent-repository/index.html.md).

If you want to upgrade multiple Droplets at once, use the [Ansible-based batch upgrade](https://galaxy.ansible.com/andrewsomething/do-agent) available on Ansible Galaxy.

## Verify Metrics Agent Installed

To check whether the `do-agent` systemd service is active, run the following command:

```shell
systemctl status do-agent
```

If the metrics agent is active, the output confirms that it’s installed, running, and set to start automatically on boot:

```text
● do-agent.service - The DigitalOcean Monitoring Agent
     Loaded: loaded (/etc/systemd/system/do-agent.service; enabled; ...)
     Active: active (running) since Wed 2025-06-18 19:14:50 UTC; 35s ago
...
   Main PID: 4675 (do-agent)
...
             └─4675 /opt/digitalocean/bin/do-agent --syslog
```

Then, check whether the agent process is running by searching for processes with the name `do-agent`:

```shell
ps aux | grep do-agent
```

If the metrics agent is running, the output includes a line that shows `do-agent` is running as a background process like this:

```text
do-agent    4675  0.0  0.3 ... ?  Ssl  19:14   0:00 /opt/digitalocean/bin/do-agent --syslog
root        4733  0.0  0.0 ... pts/0  S+  19:15   0:00 grep --color=auto do-agent
```

To see your Droplet’s metrics, exit your Droplet’s terminal session, and then click its **Insights** tab. Metrics appear a few minutes after the metrics agent starts reporting data.

If the service isn’t running or these commands return no output, [contact support](https://cloudsupport.digitalocean.com) for help troubleshooting the installation.