How to Enable Detailed Monitoring by default for ElasticBeanstalk managed EC2 instances

0

ElasticBeanstalk keeps generating and rewriting its EC2 launch templates and setting Detailed CloudWatch monitoring to false upon some changes to configuration. Manualy changing launch template fixes problem until EB decides to update it again.

How to make sure that instances spawned by EB has Detailed monitoring enabled without the need to update launch template every time? There seems to be no relevant option in EB configuration.

1 Answer
0
Accepted Answer

There is a "aws:autoscaling:launchconfiguration" in the configuration file.
I think that setting "MonitoringInterval" to "1 minute" will enable detailed monitoring, but what do you think?
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options-general.html#command-options-general-autoscalinglaunchconfiguration

option_settings:
  aws:elasticbeanstalk:environment:
    MonitoringInterval: 1 minute
profile picture
EXPERT
answered a year ago
  • It seems to be working just the namespace should be:

    option_settings: aws:autoscaling:launchconfiguration: MonitoringInterval: 1 minute

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions