From 51dda6f703f403e19f6711a6e1f3c2dd157b64e1 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 6 Oct 2023 13:22:35 +0200 Subject: [PATCH] Fixes #36805 - add foreman-hotproc config to be used with PCP --- extras/pcp/foreman-hotproc.conf | 14 ++++++++++++++ extras/pcp/foreman-hotproc.summary | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 extras/pcp/foreman-hotproc.conf create mode 100644 extras/pcp/foreman-hotproc.summary diff --git a/extras/pcp/foreman-hotproc.conf b/extras/pcp/foreman-hotproc.conf new file mode 100644 index 00000000000..f5b2a64b599 --- /dev/null +++ b/extras/pcp/foreman-hotproc.conf @@ -0,0 +1,14 @@ +#pmdahotproc +Version 1.0 + +( + fname == "java" || + fname == "redis-server" || + (fname == "postgres" && psargs ~ /-D/) || + psargs ~ /puma/ || + psargs ~ /pulpcore.app.wsgi:application/ || + psargs ~ /pulpcore.content:server/ || + psargs ~ /pulpcore-worker/ || + psargs ~ /sidekiq/ || + psargs ~ /smart-proxy/ +) diff --git a/extras/pcp/foreman-hotproc.summary b/extras/pcp/foreman-hotproc.summary new file mode 100644 index 00000000000..84c32eaa36c --- /dev/null +++ b/extras/pcp/foreman-hotproc.summary @@ -0,0 +1,16 @@ +#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