From 0cbb4a9a1ec439ca9b7597f7eafffde3e0d36e34 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Tue, 10 Oct 2023 10:57:52 +0200 Subject: [PATCH] use shipped hotproc conf --- .../proc_configuring-pcp-data-collection.adoc | 43 +------------------ 1 file changed, 2 insertions(+), 41 deletions(-) diff --git a/guides/doc-Monitoring_Project/topics/proc_configuring-pcp-data-collection.adoc b/guides/doc-Monitoring_Project/topics/proc_configuring-pcp-data-collection.adoc index d5d95933566..ec5709bea13 100644 --- a/guides/doc-Monitoring_Project/topics/proc_configuring-pcp-data-collection.adoc +++ b/guides/doc-Monitoring_Project/topics/proc_configuring-pcp-data-collection.adoc @@ -4,25 +4,10 @@ This procedure describes how to configure PCP to collect metrics about processes, {Project}, Apache HTTP Server, and PostgreSQL. .Procedure -. To configure PCP to collect data about {Project} processes, create the `/var/lib/pcp/pmdas/proc/hotproc.conf` file and include the following content: +. To configure PCP to collect data about {Project} processes, configure the process monitoring PMDA to use the {Project} specific config: + ---- -#pmdahotproc -Version 1.0 - -( - fname == "java" || - fname == "redis-server" || - (fname == "postgres" && psargs ~ /-D/) || - psargs ~ /puma/ || -ifndef::foreman-el,foreman-deb[] - psargs ~ /pulpcore.app.wsgi:application/ || - psargs ~ /pulpcore.content:server/ || - psargs ~ /pulpcore-worker/ || -endif::[] - psargs ~ /sidekiq/ || - psargs ~ /smart-proxy/ -) +# ln -s /var/lib/pcp/pmdas/proc/hotproc.conf /etc/pcp/proc/foreman-hotproc.conf ---- + By default, PCP collects basic system metrics. @@ -37,30 +22,6 @@ ifndef::foreman-el,foreman-deb[] * Pulpcore endif::[] -. Configure PCP to log the process metrics being collected. -+ ----- -# mkdir -p /var/lib/pcp/config/pmlogconf/foreman-hotproc -# cat >/var/lib/pcp/config/pmlogconf/foreman-hotproc/summary << EOF -#pmlogconf-setup 2.0 -ident foreman hotproc metrics -probe hotproc.control.config != "" ? include : exclude - hotproc.psinfo.psargs - hotproc.psinfo.cnswap - hotproc.psinfo.nswap - hotproc.psinfo.rss - hotproc.psinfo.vsize - hotproc.psinfo.cstime - hotproc.psinfo.cutime - hotproc.psinfo.stime - hotproc.psinfo.utime - hotproc.io.write_bytes - hotproc.io.read_bytes - hotproc.schedstat.cpu_time - hotproc.fd.count -EOF ----- - . Install the process monitoring PMDA. + ----