可能是由于您的应用程序在没有任何活动的情况下,导致AWS Elastic Beanstalk暂停了该环境的CloudWatch指标。您可以通过将以下示例代码的“MonitoringInterval”属性从“off”更改为“1分钟”来启用CloudWatch监控:
Resources:
MyEnvironment:
Type: AWS::ElasticBeanstalk::Environment
Properties:
...
OptionSettings:
aws:elasticbeanstalk:environment:
MonitoringInterval: '1 minute'
如果您想更改监控集成,可以使用AWS控制台、AWS CLI或AWS SDK对应用程序进行更改。