How do I uninstall the mysql/apache/redis/nginx agent?

These are uninstall instructions for the Custom Metrics agent, as run from the installer found on the Custom -> Getting Started page.

Log into the system and run "ls /etc/init/copperegg-metrics.conf".
If it says "/etc/init/copperegg-metrics.conf", run this set of commands:

  • sudo stop copperegg-metrics
  • sudo killall copperegg-metrics
  • sudo rm -rf /usr/local/copperegg
  • sudo rm /etc/init.d/copperegg-metrics  # File may not exist
  • sudo rm /etc/init/copperegg-metrics.conf
  • sudo userdel copperegg
  • sudo gem remove copperegg


If it says "ls: cannot access /etc/init/copperegg-metrics.conf: No such file or directory", run this set:

  • sudo /etc/init.d/copperegg-metrics stop
  • sudo rm -rf /usr/local/copperegg
  • sudo rm /etc/init.d/copperegg-metrics
  • sudo rm /etc/rc*.d/*copperegg-metrics
  • sudo userdel copperegg
  • sudo gem remove copperegg

NOTE: The init scripts used to be named "copperegg-agent".  If the above does not work, try the same, replacing "copperegg-metrics" with "copperegg-agent".
Powered by Zendesk