Skip to content

Commit

Permalink
Decrease database instance collection interval (#17676)
Browse files Browse the repository at this point in the history
* Decrease database instance collection interval

* fix tests
  • Loading branch information
jmeunier28 authored May 30, 2024
1 parent d47ef6b commit e9b3e5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mysql/datadog_checks/mysql/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(self, instance):
}
self.log_unobfuscated_queries = is_affirmative(instance.get('log_unobfuscated_queries', False))
self.log_unobfuscated_plans = is_affirmative(instance.get('log_unobfuscated_plans', False))
self.database_instance_collection_interval = instance.get('database_instance_collection_interval', 1800)
self.database_instance_collection_interval = instance.get('database_instance_collection_interval', 300)
self.configuration_checks()

def _build_tags(self, custom_tags):
Expand Down
2 changes: 1 addition & 1 deletion mysql/tests/test_mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def test_database_instance_metadata(aggregator, dd_run_check, instance_complex,
assert event['dbms'] == "mysql"
assert event['tags'].sort() == tags.METRIC_TAGS.sort()
assert event['integration_version'] == __version__
assert event['collection_interval'] == 1800
assert event['collection_interval'] == 300
assert event['metadata'] == {
'dbm': dbm_enabled,
'connection_host': instance_complex['host'],
Expand Down

0 comments on commit e9b3e5e

Please sign in to comment.