I'm trying to get 10gen's MongoDB Monitoring Service monitoring my 3-node replica set. The replica set running in an AWS VPC. Each node runs on a different [virtual] machine. Assume their IPs are
192.168.1.1 (primary or secondary),
192.168.1.2 (primary or secondary),
From a quick look at the source, MMS appears to get the hostname of the machine it is running on like so:
For my VPC EC2 instance, this returns something like
MMS then tries to connect to this hostname, which does not resolve. I'd rather just use IP addresses (since they're always static), but it seems like the hardcoded use of
mmsAgent.py precludes that.
So, what's an elegant way out of this? Hack
/etc/hosts? I'm not setting up a DNS server just for this. Maybe I'm just misunderstanding how to configure MMS.