newrelic/rpm — pull request #58 by chendo (2012-03-19 06:50:01+00:00)
Title: Add ability to set custom hostname

I've added the ability to set a custom hostname by setting "hostname: whatever" within newrelic.yml

Use case:

Due to restrictions we have on some of our servers, we can't change the hostname of the machine. We're able to override the hostname for the system monitoring by setting "hostname=whatever", but lack this facility for rpm. We want to have the server monitoring integrated properly with the application monitoring but since it's based on hostnames, it's not linking up properly.

I've written tests for both the custom hostname case and default hostname case.