prometheus-nginx-exporter command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
prometheus-nginx-exporter: command not found
or when using sudo you get the following error message
sudo: prometheus-nginx-exporter: command not found
Solutions to prometheus-nginx-exporter: command not found
How To Fix prometheus-nginx-exporter: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu prometheus-nginx-exporter is provided by prometheus-nginx-exporter package.
prometheus-nginx-exporter is:
Official Prometheus exporter for NGINX, developed by NGINX, Inc. This exporter supports the NGINX stub_status handler, as well as the NGINX Plus API, and exposes metrics such as number of current requests and total requests served.
To fix this problem, we can install more using the command below.
sudo apt-get -y install prometheus-nginx-exporter
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install prometheus-nginx-exporter.
sudo apt -y install prometheus-nginx-exporter
Or if you have aptitude installed you can use the following command.
sudo aptitude install prometheus-nginx-exporter
Summary
In this tutorial we learn how to fix prometheus-nginx-exporter command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.