Hello all,
I am looking for a way to
1. install node_exporter automatically on all EC2 instances on AWS
2. Handle auto-scaling, newly added instances and deleted instances.
3. Looking for a simple bash script and NOT through configuration tools(like ansible).
From what I understood, EC2 service discovery helps with identifying newly added instances, but it expects node_exporter to be installed already on the target/s. I am looking for a way where it helps with node_exporter installation automatically(I know EC2 userdata section can be used but that's one instance at a time and is manual and applicable for new instances) as well.
Anyone has a bash script that one could share that will be great.