diff --git a/amazon_msk/datadog_checks/amazon_msk/check.py b/amazon_msk/datadog_checks/amazon_msk/check.py index 8b0a0344ec655..64744d0f70100 100644 --- a/amazon_msk/datadog_checks/amazon_msk/check.py +++ b/amazon_msk/datadog_checks/amazon_msk/check.py @@ -37,6 +37,12 @@ class AmazonMskCheckV2(OpenMetricsBaseCheckV2, ConfigMixin): def __init__(self, name, init_config, instances): super().__init__(name, init_config, instances) + # This prevents botocore INFO logs from being printed in the Agent log + # https://github.com/boto/botocore/blob/develop/botocore/credentials.py#L1075 + import logging + + logging.getLogger('botocore').setLevel(logging.CRITICAL) + self._region_name = None self._exporter_data = None self._endpoint_prefix = None