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 Resposta
0
Resposta aceita

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
ESPECIALISTA
respondido há um ano
  • It seems to be working just the namespace should be:

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

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas