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 年前355 查看次数
1 回答
0
已接受的回答

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
专家
已回答 1 年前
  • It seems to be working just the namespace should be:

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

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则