omni-lchen / zabbix-cloudwatch

71 stars 61 forks source link

Can we have support for monitoring the EC2 instances #16

Open macadminrohit opened 7 years ago

macadminrohit commented 7 years ago

Can we have support for monitoring the EC2 instances or the auto scaling group?

omni-lchen commented 7 years ago

This can be easily set up if you follow the instructions, add EC2 metrics to conf/aws_services_metrics.conf, create a zabbix template for all EC2 metrics with the correct format, create a bash wrapper and set up a cron job.

macadminrohit commented 7 years ago

The solution requires the instance id which will change every time it scales out . On Wed, Jul 12, 2017 at 4:13 PM Long Chen notifications@github.com wrote:

This can be easily set up if you follow the instructions, add EC2 metrics to conf/aws_services_metrics.conf, create a zabbix template for all EC2 metrics with the correct format, create a bash wrapper and set up a cron job.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/omni-lchen/zabbix-cloudwatch/issues/16#issuecomment-314898696, or mute the thread https://github.com/notifications/unsubscribe-auth/AZTeMdn6uxm9SB8nGyxGlBkmfGx5t87Gks5sNTbdgaJpZM4OTJ0F .

omni-lchen commented 7 years ago

You can use this dimension "AutoScalingGroupName" to get the metrics of the group. If you can want to monitor individual instance, I think you need to create a discovery rule for all instance ids in the group.

maiconbaumx commented 7 years ago

This is possible and easy to do. I wrote a feature to discover EC2 instances, create the host in Zabbix Server and start monitoring within 3 minutes from running instance.

macadminrohit commented 7 years ago

Would you mind sharing that ??

On Tue, Aug 1, 2017 at 8:06 AM Maicon Baum notifications@github.com wrote:

This is possible and easy to do. I wrote a feature to discover EC2 instances, create the host in Zabbix Server and start monitoring within 3 minutes from running instance.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/omni-lchen/zabbix-cloudwatch/issues/16#issuecomment-319364456, or mute the thread https://github.com/notifications/unsubscribe-auth/AZTeMWNiUBO76Aao-p9r31rLTfh7X7wNks5sTyLzgaJpZM4OTJ0F .

macadminrohit commented 7 years ago

@maiconbaumx Hey can you share your feature?

macadminrohit commented 7 years ago

@omni-lchen Even our Autoscalinggroupname changes whenever we create new stack for application servers. Only thing that remains same is the Instance Name. Not sure if that will help.