teach estatsd to support a custom name intead of just node() #5

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
1 participant

dch commented Jan 30, 2013

estatsd gets the node name from node() directly. If running epmd and connecting the erlang node to the network isn't possible, this means the default atom nonode@nohost is used.

This patch enables estatsd to use a new application environment VmName, which if present, is used in NodeKey instead. This allows nice, and unique, metric names in graphite without needing epmd and connecting the node to the erlang network.

Dave Cottlehuber read vm_name from app env, otherwise default to node()
- add `vm_name` parameter to environment, and store in state
- allows collecting uniquely named VM metrics even if epmd is not running
66bd647

dch closed this May 7, 2013

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