vendredi 6 mars 2015

AWS EC2 CloudWatch Mem Util and Disk Util in AutoScaleGroup

Recently, I've been investigating how to setup CloudWatch Monitoring in our AWS instances to include Mem Util and Disk Util.


I've followed this guide: http://ift.tt/1fopQBA


It worked like a charm.


I have everything working on our Production-REF (Reference) box. I create an Image, and add it to our Launch Configuration for our AutoScaleGroup. Everything deploys fine, and all the scripts run.


The Problem: The instance-id is cached on the AutoScale boxes, so it sends all information back as the Production-REF box.


I don't really want to tweak the out of the box AWS script, but I see in CloudWatchClient.pm it calls get_instance_id, which calls get_meta_data, which uses cache [ http://ift.tt/1MeYIsc ].


Anyway to clear http://ift.tt/1MeYIsc cache? Preferably just the first time its called on that instance. Maybe another way?


Any help is appreciated!





Aucun commentaire:

Enregistrer un commentaire