How To Install pcp-pmda-openmetrics on Rocky Linux 8

In this tutorial we learn how to install pcp-pmda-openmetrics on Rocky Linux 8. pcp-pmda-openmetrics is Performance Co-Pilot (PCP) metrics from OpenMetrics endpoints

Introduction

In this tutorial we learn how to install pcp-pmda-openmetrics on Rocky Linux 8.

What is pcp-pmda-openmetrics

This package contains the PCP Performance Metrics Domain Agent (PMDA) for extracting metrics from OpenMetrics (https

We can use yum or dnf to install pcp-pmda-openmetrics on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install pcp-pmda-openmetrics.

Install pcp-pmda-openmetrics on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install pcp-pmda-openmetrics using dnf by running the following command:

sudo dnf -y install pcp-pmda-openmetrics

Install pcp-pmda-openmetrics on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install pcp-pmda-openmetrics using yum by running the following command:

sudo yum -y install pcp-pmda-openmetrics

How To Uninstall pcp-pmda-openmetrics on Rocky Linux 8

To uninstall only the pcp-pmda-openmetrics package we can use the following command:

sudo dnf remove pcp-pmda-openmetrics

pcp-pmda-openmetrics Package Contents on Rocky Linux 8

/etc/pcp/openmetrics
/etc/pcp/openmetrics/collectd.url
/etc/pcp/openmetrics/etcd.url
/etc/pcp/openmetrics/grafana.url
/etc/pcp/openmetrics/spark.url
/usr/libexec/pcp/pmdas/openmetrics
/usr/libexec/pcp/pmdas/openmetrics/Install
/usr/libexec/pcp/pmdas/openmetrics/Remove
/usr/libexec/pcp/pmdas/openmetrics/Upgrade
/usr/libexec/pcp/pmdas/openmetrics/pmdaopenmetrics.python
/var/lib/pcp/pmdas/openmetrics
/var/lib/pcp/pmdas/openmetrics/Install
/var/lib/pcp/pmdas/openmetrics/Remove
/var/lib/pcp/pmdas/openmetrics/Upgrade
/var/lib/pcp/pmdas/openmetrics/config.d
/var/lib/pcp/pmdas/openmetrics/config.d/grafana.url
/var/lib/pcp/pmdas/openmetrics/pmdaopenmetrics.python

References

Summary

In this tutorial we learn how to install pcp-pmda-openmetrics on Rocky Linux 8 using yum and dnf.