prometheus-alertmanager command not found

In this troubleshooting guide we learn how to fix prometheus-alertmanager command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

prometheus-alertmanager: command not found

or when using sudo you get the following error message

sudo: prometheus-alertmanager: command not found

Solutions to prometheus-alertmanager: command not found

How To Fix prometheus-alertmanager: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu prometheus-alertmanager is provided by prometheus-alertmanager package.

prometheus-alertmanager is:

The Alertmanager handles alerts sent by client applications such as the Prometheus server. It takes care of deduplicating, grouping, and routing them to the correct receiver integration such as email, PagerDuty, or OpsGenie. It also takes care of silencing and inhibition of alerts.

To fix this problem, we can install more using the command below.

sudo apt-get -y install prometheus-alertmanager

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install prometheus-alertmanager.

sudo apt -y install prometheus-alertmanager

Or if you have aptitude installed you can use the following command.

sudo aptitude install prometheus-alertmanager

Summary

In this tutorial we learn how to fix prometheus-alertmanager command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.