Allow specifying an attribute that holds the ip to use for monitoring

This feature lets you provide an attribute that holds the ip address you want to use as a monitoring address.