Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions amazon_msk/changelog.d/19376.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Reduced the volume of logging from the `botocore` library
6 changes: 6 additions & 0 deletions amazon_msk/datadog_checks/amazon_msk/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading