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 Risposta
0
Risposta accettata

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
ESPERTO
con risposta un anno fa
  • It seems to be working just the namespace should be:

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

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande