Skip to content

Instantly share code, notes, and snippets.

@kccheung
Last active September 29, 2017 03:41
Show Gist options
  • Save kccheung/208a1a10a53439985ae604e37dd9d002 to your computer and use it in GitHub Desktop.
Save kccheung/208a1a10a53439985ae604e37dd9d002 to your computer and use it in GitHub Desktop.
Simple steps detailing how to monitor process within docker container, TL;TR; we will use New Relic's infrastructure service.
  1. install new relic on the instance to be monitored: https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/installation/install-infrastructure-linux#install-procedure
  2. after step two of echo "license_key: YOUR_LICENSE_KEY" | sudo tee -a /etc/newrelic-infra.yml:
    • vi /etc/newrelic-infra.yml and add the line strip_command_line: false, this allows the command line filter to include all arguments
  3. restart newlic agent by: sudo systemctl restart newrelic-infra
  4. (optional) update agent, please read: https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/installation/update-infrastructure-agent
  5. To create an alert on cron process, please goto INFRASTRUCTURE -> Settings -> Alerts -> Create alert condition, check existing created alert for reference
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment