How To Install graphite-api on CentOS 7
Introduction
In this tutorial we learn how to install graphite-api on CentOS 7.
What is graphite-api
Graphite-API is an alternative to Graphite-web, without any built-in dashboard. Its role is solely to fetch metrics from a time-series database (whisper, cyanite, etc.) and rendering graphs or JSON data out of these time series. It is meant to be consumed by any of the numerous Graphite dashboard applications.
We can use yum or dnf to install graphite-api on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install graphite-api.
Install graphite-api on CentOS 7 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install graphite-api using yum by running the following command:
sudo yum -y install graphite-api
Install graphite-api on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf using the following command.
sudo dnf makecache
After updating yum database, We can install graphite-api using dnf by running the following command:
sudo dnf -y install graphite-api
How To Uninstall graphite-api on CentOS 7
To uninstall only the graphite-api package we can use the following command:
sudo dnf remove graphite-api
References
Summary
In this tutorial we learn how to install graphite-api on CentOS 7 using yum and dnf.