How To Install collectd-mysql on Fedora 36

In this tutorial we learn how to install collectd-mysql in Fedora 36. collectd-mysql is MySQL plugin for collectd

Introduction

In this tutorial we learn how to install collectd-mysql on Fedora 36.

What is collectd-mysql

MySQL querying plugin. This plugin provides data of issued commands, called handlers and database traffic.

We can use yum or dnf to install collectd-mysql on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install collectd-mysql.

Install collectd-mysql on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install collectd-mysql using dnf by running the following command:

sudo dnf -y install collectd-mysql

Install collectd-mysql on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install collectd-mysql using yum by running the following command:

sudo yum -y install collectd-mysql

How To Uninstall collectd-mysql on Fedora 36

To uninstall only the collectd-mysql package we can use the following command:

sudo dnf remove collectd-mysql

collectd-mysql Package Contents on Fedora 36

/etc/collectd.d/mysql.conf
/usr/lib/.build-id
/usr/lib/.build-id/91
/usr/lib/.build-id/91/3a8f48a8cd6ca3b4cb7ce318039a57a5e1ae2f
/usr/lib64/collectd/mysql.so

References

Summary

In this tutorial we learn how to install collectd-mysql on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).