Skip to content

Instantly share code, notes, and snippets.

@danriti
Last active March 9, 2016 02:30
Show Gist options
  • Save danriti/756eaae0cd113040f16e to your computer and use it in GitHub Desktop.
Save danriti/756eaae0cd113040f16e to your computer and use it in GitHub Desktop.
pcp + vector + filtered per process stats

run on ubuntu 12.04

  1. install pcp from source following: https://github.com/Netflix/vector/wiki/Installing-Performance-Co-Pilot
  2. install vector following: https://github.com/Netflix/vector/wiki/Getting-Started#vector
  3. update pmwedb config to use port 9999 by default: /etc/pcp/pmwebd/pmwebd.options
  4. sudo service pmwebd restart
  5. update pmcd to run proc pmda as root (add -A flag): /etc/pcp/pmcd/pmcd.conf
  6. sudo service pcp restart
  7. run vector via gulp: https://github.com/Netflix/vector/wiki/Getting-Started#running-with-gulp
  8. created a hotproc.conf in /var/lib/pcp/pmdas/proc
  9. example hotproc matcher: psargs ~ /python_module\.py/
  10. pminfo -f hotproc.nprocs
  11. hack vector to display hotproc stats of interest in app.widgets.js

Other Links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment