Skip to content

Commit

Permalink
Sync config model
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-mez committed May 4, 2022
1 parent bc8da94 commit e14c76e
Show file tree
Hide file tree
Showing 56 changed files with 183 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def instance_bearer_token_path(field, value):
return get_default_field_value(field, value)


def instance_bearer_token_refresh_interval(field, value):
return 60


def instance_connect_timeout(field, value):
return get_default_field_value(field, value)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class Config:
aws_service: Optional[str]
bearer_token_auth: Optional[Union[bool, str]]
bearer_token_path: Optional[str]
bearer_token_refresh_interval: Optional[int]
connect_timeout: Optional[float]
disable_generic_tags: Optional[bool]
edge_agent_prometheus_url: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,11 @@ instances:
#
# bearer_token_path: <TOKEN_PATH>

## @param bearer_token_refresh_interval - integer - optional - default: 60
## The refresh interval to keep the bearer token up-to-date.
#
# bearer_token_refresh_interval: 60

## @param ignore_metrics - list of strings - optional
## A list of metrics to ignore, the "*" wildcard can be used to match multiple metric names.
## The wildcard matching is done via fnmatch, it locates a match anywhere in the string.
Expand Down
4 changes: 4 additions & 0 deletions cilium/datadog_checks/cilium/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ def instance_bearer_token_path(field, value):
return get_default_field_value(field, value)


def instance_bearer_token_refresh_interval(field, value):
return 60


def instance_cache_metric_wildcards(field, value):
return True

Expand Down
1 change: 1 addition & 0 deletions cilium/datadog_checks/cilium/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class Config:
aws_service: Optional[str]
bearer_token_auth: Optional[Union[bool, str]]
bearer_token_path: Optional[str]
bearer_token_refresh_interval: Optional[int]
cache_metric_wildcards: Optional[bool]
cache_shared_labels: Optional[bool]
collect_counters_with_distributions: Optional[bool]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def instance_bearer_token_path(field, value):
return get_default_field_value(field, value)


def instance_bearer_token_refresh_interval(field, value):
return 60


def instance_cache_metric_wildcards(field, value):
return True

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class Config:
aws_service: Optional[str]
bearer_token_auth: Optional[Union[bool, str]]
bearer_token_path: Optional[str]
bearer_token_refresh_interval: Optional[int]
cache_metric_wildcards: Optional[bool]
cache_shared_labels: Optional[bool]
collect_counters_with_distributions: Optional[bool]
Expand Down
4 changes: 4 additions & 0 deletions coredns/datadog_checks/coredns/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def instance_bearer_token_path(field, value):
return get_default_field_value(field, value)


def instance_bearer_token_refresh_interval(field, value):
return 60


def instance_cache_metric_wildcards(field, value):
return True

Expand Down
1 change: 1 addition & 0 deletions coredns/datadog_checks/coredns/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class Config:
aws_service: Optional[str]
bearer_token_auth: Optional[Union[bool, str]]
bearer_token_path: Optional[str]
bearer_token_refresh_interval: Optional[int]
cache_metric_wildcards: Optional[bool]
cache_shared_labels: Optional[bool]
collect_counters_with_distributions: Optional[bool]
Expand Down
4 changes: 4 additions & 0 deletions crio/datadog_checks/crio/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def instance_bearer_token_path(field, value):
return get_default_field_value(field, value)


def instance_bearer_token_refresh_interval(field, value):
return 60


def instance_connect_timeout(field, value):
return get_default_field_value(field, value)

Expand Down
1 change: 1 addition & 0 deletions crio/datadog_checks/crio/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class Config:
aws_service: Optional[str]
bearer_token_auth: Optional[Union[bool, str]]
bearer_token_path: Optional[str]
bearer_token_refresh_interval: Optional[int]
connect_timeout: Optional[float]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
Expand Down
5 changes: 5 additions & 0 deletions crio/datadog_checks/crio/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ instances:
#
# bearer_token_path: <TOKEN_PATH>

## @param bearer_token_refresh_interval - integer - optional - default: 60
## The refresh interval to keep the bearer token up-to-date.
#
# bearer_token_refresh_interval: 60

## @param ignore_metrics - list of strings - optional
## A list of metrics to ignore, the "*" wildcard can be used to match multiple metric names.
## The wildcard matching is done via fnmatch, it locates a match anywhere in the string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def instance_bearer_token_path(field, value):
return get_default_field_value(field, value)


def instance_bearer_token_refresh_interval(field, value):
return 60


def instance_connect_timeout(field, value):
return get_default_field_value(field, value)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class Config:
aws_service: Optional[str]
bearer_token_auth: Optional[Union[bool, str]]
bearer_token_path: Optional[str]
bearer_token_refresh_interval: Optional[int]
connect_timeout: Optional[float]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ instances:
#
# bearer_token_path: <TOKEN_PATH>

## @param bearer_token_refresh_interval - integer - optional - default: 60
## The refresh interval to keep the bearer token up-to-date.
#
# bearer_token_refresh_interval: 60

## @param ignore_metrics - list of strings - optional
## A list of metrics to ignore, the "*" wildcard can be used to match multiple metric names.
## The wildcard matching is done via fnmatch, it locates a match anywhere in the string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ instances:
#
# bearer_token_path: <TOKEN_PATH>

## @param bearer_token_refresh_interval - integer - optional - default: 60
## The refresh interval to keep the bearer token up-to-date.
#
# bearer_token_refresh_interval: 60

## @param ignore_metrics - list of strings - optional
## A list of metrics to ignore, the "*" wildcard can be used to match multiple metric names.
## The wildcard matching is done via fnmatch, it locates a match anywhere in the string.
Expand Down
4 changes: 4 additions & 0 deletions etcd/datadog_checks/etcd/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def instance_bearer_token_path(field, value):
return get_default_field_value(field, value)


def instance_bearer_token_refresh_interval(field, value):
return 60


def instance_connect_timeout(field, value):
return get_default_field_value(field, value)

Expand Down
1 change: 1 addition & 0 deletions etcd/datadog_checks/etcd/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class Config:
aws_service: Optional[str]
bearer_token_auth: Optional[Union[bool, str]]
bearer_token_path: Optional[str]
bearer_token_refresh_interval: Optional[int]
connect_timeout: Optional[float]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
Expand Down
5 changes: 5 additions & 0 deletions etcd/datadog_checks/etcd/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ instances:
#
# bearer_token_path: <TOKEN_PATH>

## @param bearer_token_refresh_interval - integer - optional - default: 60
## The refresh interval to keep the bearer token up-to-date.
#
# bearer_token_refresh_interval: 60

## @param ignore_metrics - list of strings - optional
## A list of metrics to ignore, the "*" wildcard can be used to match multiple metric names.
## The wildcard matching is done via fnmatch, it locates a match anywhere in the string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def instance_bearer_token_path(field, value):
return get_default_field_value(field, value)


def instance_bearer_token_refresh_interval(field, value):
return 60


def instance_connect_timeout(field, value):
return get_default_field_value(field, value)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class Config:
aws_service: Optional[str]
bearer_token_auth: Optional[Union[bool, str]]
bearer_token_path: Optional[str]
bearer_token_refresh_interval: Optional[int]
connect_timeout: Optional[float]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ instances:
#
# bearer_token_path: <TOKEN_PATH>

## @param bearer_token_refresh_interval - integer - optional - default: 60
## The refresh interval to keep the bearer token up-to-date.
#
# bearer_token_refresh_interval: 60

## @param ignore_metrics - list of strings - optional
## A list of metrics to ignore, the "*" wildcard can be used to match multiple metric names.
## The wildcard matching is done via fnmatch, it locates a match anywhere in the string.
Expand Down
4 changes: 4 additions & 0 deletions gitlab/datadog_checks/gitlab/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ def instance_bearer_token_path(field, value):
return get_default_field_value(field, value)


def instance_bearer_token_refresh_interval(field, value):
return 60


def instance_connect_timeout(field, value):
return get_default_field_value(field, value)

Expand Down
1 change: 1 addition & 0 deletions gitlab/datadog_checks/gitlab/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class Config:
aws_service: Optional[str]
bearer_token_auth: Optional[Union[bool, str]]
bearer_token_path: Optional[str]
bearer_token_refresh_interval: Optional[int]
connect_timeout: Optional[float]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
Expand Down
5 changes: 5 additions & 0 deletions gitlab/datadog_checks/gitlab/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ instances:
#
# bearer_token_path: <TOKEN_PATH>

## @param bearer_token_refresh_interval - integer - optional - default: 60
## The refresh interval to keep the bearer token up-to-date.
#
# bearer_token_refresh_interval: 60

## @param ignore_metrics - list of strings - optional
## A list of metrics to ignore, the "*" wildcard can be used to match multiple metric names.
## The wildcard matching is done via fnmatch, it locates a match anywhere in the string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def instance_bearer_token_path(field, value):
return get_default_field_value(field, value)


def instance_bearer_token_refresh_interval(field, value):
return 60


def instance_connect_timeout(field, value):
return get_default_field_value(field, value)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class Config:
aws_service: Optional[str]
bearer_token_auth: Optional[Union[bool, str]]
bearer_token_path: Optional[str]
bearer_token_refresh_interval: Optional[int]
connect_timeout: Optional[float]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ instances:
#
# bearer_token_path: <TOKEN_PATH>

## @param bearer_token_refresh_interval - integer - optional - default: 60
## The refresh interval to keep the bearer token up-to-date.
#
# bearer_token_refresh_interval: 60

## @param ignore_metrics - list of strings - optional
## A list of metrics to ignore, the "*" wildcard can be used to match multiple metric names.
## The wildcard matching is done via fnmatch, it locates a match anywhere in the string.
Expand Down
4 changes: 4 additions & 0 deletions haproxy/datadog_checks/haproxy/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ def instance_bearer_token_path(field, value):
return get_default_field_value(field, value)


def instance_bearer_token_refresh_interval(field, value):
return 60


def instance_cache_metric_wildcards(field, value):
return True

Expand Down
1 change: 1 addition & 0 deletions haproxy/datadog_checks/haproxy/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class Config:
aws_service: Optional[str]
bearer_token_auth: Optional[Union[bool, str]]
bearer_token_path: Optional[str]
bearer_token_refresh_interval: Optional[int]
cache_metric_wildcards: Optional[bool]
cache_shared_labels: Optional[bool]
collate_status_tags_per_host: Optional[bool]
Expand Down
2 changes: 1 addition & 1 deletion ibm_ace/datadog_checks/ibm_ace/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Config:
mq_port: int
mq_server: str = Field(..., min_length=1)
mq_user: Optional[str] = Field(None, min_length=1)
mqcd_version: Optional[Literal[1, 2, 3, 4, 5, 6, 7, 8, 9]]
mqcd_version: Optional[Literal['1', '2', '3', '4', '5', '6', '7', '8', '9']]
persist_connections: Optional[bool]
queue_manager: str = Field(..., min_length=1)
resource_statistics: Optional[bool]
Expand Down
4 changes: 4 additions & 0 deletions istio/datadog_checks/istio/config_models/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def instance_bearer_token_path(field, value):
return get_default_field_value(field, value)


def instance_bearer_token_refresh_interval(field, value):
return 60


def instance_cache_metric_wildcards(field, value):
return True

Expand Down
1 change: 1 addition & 0 deletions istio/datadog_checks/istio/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class Config:
aws_service: Optional[str]
bearer_token_auth: Optional[Union[bool, str]]
bearer_token_path: Optional[str]
bearer_token_refresh_interval: Optional[int]
cache_metric_wildcards: Optional[bool]
cache_shared_labels: Optional[bool]
collect_counters_with_distributions: Optional[bool]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def instance_bearer_token_path(field, value):
return get_default_field_value(field, value)


def instance_bearer_token_refresh_interval(field, value):
return 60


def instance_connect_timeout(field, value):
return get_default_field_value(field, value)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class Config:
aws_service: Optional[str]
bearer_token_auth: Optional[Union[bool, str]]
bearer_token_path: Optional[str]
bearer_token_refresh_interval: Optional[int]
connect_timeout: Optional[float]
disable_generic_tags: Optional[bool]
empty_default_hostname: Optional[bool]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ instances:
#
# bearer_token_path: <TOKEN_PATH>

## @param bearer_token_refresh_interval - integer - optional - default: 60
## The refresh interval to keep the bearer token up-to-date.
#
# bearer_token_refresh_interval: 60

## @param ignore_metrics - list of strings - optional
## A list of metrics to ignore, the "*" wildcard can be used to match multiple metric names.
## The wildcard matching is done via fnmatch, it locates a match anywhere in the string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ instances:
#
# bearer_token_path: <TOKEN_PATH>

## @param bearer_token_refresh_interval - integer - optional - default: 60
## The refresh interval to keep the bearer token up-to-date.
#
# bearer_token_refresh_interval: 60

## @param ignore_metrics - list of strings - optional
## A list of metrics to ignore, the "*" wildcard can be used to match multiple metric names.
## The wildcard matching is done via fnmatch, it locates a match anywhere in the string.
Expand Down
5 changes: 5 additions & 0 deletions kube_dns/datadog_checks/kube_dns/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ instances:
#
# bearer_token_path: <TOKEN_PATH>

## @param bearer_token_refresh_interval - integer - optional - default: 60
## The refresh interval to keep the bearer token up-to-date.
#
# bearer_token_refresh_interval: 60

## @param ignore_metrics - list of strings - optional
## A list of metrics to ignore, the "*" wildcard can be used to match multiple metric names.
## The wildcard matching is done via fnmatch, it locates a match anywhere in the string.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ instances:
#
# bearer_token_path: <TOKEN_PATH>

## @param bearer_token_refresh_interval - integer - optional - default: 60
## The refresh interval to keep the bearer token up-to-date.
#
# bearer_token_refresh_interval: 60

## @param ignore_metrics - list of strings - optional
## A list of metrics to ignore, the "*" wildcard can be used to match multiple metric names.
## The wildcard matching is done via fnmatch, it locates a match anywhere in the string.
Expand Down
Loading

0 comments on commit e14c76e

Please sign in to comment.