Skip to content

Commit

Permalink
use shipped hotproc conf
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Oct 10, 2023
1 parent f962a49 commit 565ed01
Showing 1 changed file with 2 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
+
----
Expand Down

0 comments on commit 565ed01

Please sign in to comment.