0

I tried installing the monitoring agent multiple times using both Google Cloud Console & Command Line. None of the approach worked.

My OS Version:

Description: Debian GNU/Linux 11 (bullseye)

Release: 11

Codename: bullseye

Installation Logs:

curl -sSO https://dl.google.com/cloudagents/add-monitoring-agent-repo.sh
sudo bash add-monitoring-agent-repo.sh --also-install

Error:

Err:10 https://packages.cloud.google.com/apt google-cloud-monitoring-bullseye-all Release 404 Not Found [IP: 142.250.182.206 443]

Marc Anthony B
  • 3,635
  • 2
  • 4
  • 19
Pritesh Mhatre
  • 3,847
  • 2
  • 23
  • 27

1 Answers1

1

It fails because it's getting 404 from the legacy monitoring agent source list and you need the updated Cloud Ops Agent script:

curl -sSO https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.sh

You would also need to remove the apt source of google-cloud-monitoring:

sudo rm /etc/apt/sources.list.d/google-cloud-monitoring.list

Then run the script installation inside the VM Instance:

sudo bash add-google-cloud-ops-agent-repo.sh --also-install

As the Legacy Monitoring Agent does not support the Debian 11 Bullseye.

Marc Anthony B
  • 3,635
  • 2
  • 4
  • 19
Siegfred V.
  • 1,143
  • 3
  • 12