Monday, December 14, 2020

Setup NewRelic for servers

 To get a little bit more insight on the servers that Im running I decided to tryout NewRelicOne platform. It comes with a free tier that I believe will be enough to host my logs for a reasonable amount of time.

This post is best read together with the previous post I jotted down on centralised log management for nextcloud server. which can be found at https://rarepraveen.blogspot.com/2020/09/centralised-logging-for-nextcloud.html.

Steps I followed:

  1. Setup a NewRelic account
  2. Setup fluentd output source for NewRelic
    1. sudo /usr/sbin/td-agent-gem install fluent-plugin-newrelic
    2. Add relevant match clause to /etc/td-config/td-agent.conf
    3. systemctl restart td-agent
  3. Setup NewRelic OS agent
    1. Follow the NewRelic guide for setting up the OS agent at https://docs.newrelic.com/docs/infrastructure/install-infrastructure-agent/configuration/configure-infrastructure-agent
    2. Verify the service is running
      1. sudo systemctl status newrelic-infra.service
Thats it for now. 




No comments: