Skip to content

Commit

Permalink
Update config models
Browse files Browse the repository at this point in the history
  • Loading branch information
hithwen committed Aug 23, 2021
1 parent 39f1e4c commit e29cab7
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def instance_cache_shared_labels(field, value):
return True


def instance_check_generic_tags(field, value):
return False


def instance_collect_counters_with_distributions(field, value):
return False

Expand All @@ -60,6 +64,10 @@ def instance_connect_timeout(field, value):
return get_default_field_value(field, value)


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ class Config:
aws_service: Optional[str]
cache_metric_wildcards: Optional[bool]
cache_shared_labels: Optional[bool]
check_generic_tags: Optional[bool]
collect_counters_with_distributions: Optional[bool]
collect_histogram_buckets: Optional[bool]
connect_timeout: Optional[float]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
enable_health_service_check: Optional[bool]
entities: Optional[Sequence[Literal['controller', 'pool', 'serviceengine', 'virtualservice']]]
Expand Down
8 changes: 8 additions & 0 deletions process/datadog_checks/process/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,18 @@ def shared_shared_process_list_cache_duration(field, value):
return 120


def instance_check_generic_tags(field, value):
return False


def instance_collect_children(field, value):
return False


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
2 changes: 2 additions & 0 deletions process/datadog_checks/process/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ class InstanceConfig(BaseModel):
class Config:
allow_mutation = False

check_generic_tags: Optional[bool]
collect_children: Optional[bool]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
exact_match: Optional[bool]
ignore_denied_access: Optional[bool]
Expand Down
8 changes: 8 additions & 0 deletions proxysql/datadog_checks/proxysql/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,18 @@ def instance_additional_metrics(field, value):
return get_default_field_value(field, value)


def instance_check_generic_tags(field, value):
return False


def instance_connect_timeout(field, value):
return 10


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
2 changes: 2 additions & 0 deletions proxysql/datadog_checks/proxysql/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ class Config:
allow_mutation = False

additional_metrics: Optional[Sequence[str]]
check_generic_tags: Optional[bool]
connect_timeout: Optional[int]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
host: str
min_collection_interval: Optional[float]
Expand Down
8 changes: 8 additions & 0 deletions redisdb/datadog_checks/redisdb/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ def shared_service(field, value):
return get_default_field_value(field, value)


def instance_check_generic_tags(field, value):
return False


def instance_collect_client_metrics(field, value):
return False

Expand All @@ -24,6 +28,10 @@ def instance_disable_connection_cache(field, value):
return False


def instance_disable_generic_tags(field, value):
return False


def instance_empty_default_hostname(field, value):
return False

Expand Down
2 changes: 2 additions & 0 deletions redisdb/datadog_checks/redisdb/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ class InstanceConfig(BaseModel):
class Config:
allow_mutation = False

check_generic_tags: Optional[bool]
collect_client_metrics: Optional[bool]
command_stats: Optional[bool]
db: Optional[int]
disable_connection_cache: Optional[bool]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
host: str
keys: Optional[Sequence[str]]
Expand Down

0 comments on commit e29cab7

Please sign in to comment.