promtool command not found

In this troubleshooting guide we learn how to fix promtool command not found error message

Introduction

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

promtool: command not found

or when using sudo you get the following error message

sudo: promtool: command not found

Solutions to promtool: command not found

How To Fix promtool: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu promtool is provided by prometheus package.

prometheus is:

Prometheus is a systems and services monitoring system. It collects metrics from configured targets at given intervals, evaluates rule expressions, displays the results, and can trigger alerts if some condition is observed to be true.

Prometheus’ main distinguishing features as compared to other monitoring systems are:

  • A multi-dimensional data model (timeseries defined by metric name and set of key/value dimensions).
  • A flexible query language to leverage this dimensionality.
  • No dependency on distributed storage; single server nodes are autonomous.
  • Timeseries collection happens via a pull model over HTTP.
  • Pushing timeseries is supported via an intermediary gateway.
  • Targets are discovered via service discovery or static configuration.
  • Multiple modes of graphing and dashboarding support.
  • Federation support coming soon.

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

sudo apt-get -y install prometheus

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

You can also use apt command to install prometheus.

sudo apt -y install prometheus

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

sudo aptitude install prometheus

Summary

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