Skip to content

Commit

Permalink
Fixes #36805 - add foreman-hotproc config to be used with PCP
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Oct 10, 2023
1 parent 2f429d5 commit 51dda6f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions extras/pcp/foreman-hotproc.conf
Original file line number Diff line number Diff line change
@@ -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/
)
16 changes: 16 additions & 0 deletions extras/pcp/foreman-hotproc.summary
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 51dda6f

Please sign in to comment.