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

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ