Skip to content

Commit

Permalink
Document new option of OpenMetrics-based integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
olivielpeau committed Nov 12, 2021
1 parent 42534d9 commit 38aa927
Show file tree
Hide file tree
Showing 65 changed files with 297 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,5 +288,9 @@ def instance_use_openmetrics(field, value):
return False


def instance_use_process_start_time(field, value):
return False


def instance_username(field, value):
return get_default_field_value(field, value)
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ class Config:
use_latest_spec: Optional[bool]
use_legacy_auth_encoding: Optional[bool]
use_openmetrics: Optional[bool]
use_process_start_time: Optional[bool]
username: Optional[str]

@root_validator(pre=True)
Expand Down
8 changes: 8 additions & 0 deletions amazon_msk/datadog_checks/amazon_msk/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,14 @@ instances:
#
# collect_counters_with_distributions: false

## @param use_process_start_time - boolean - optional - default: false
## Whether to enable a heuristic for reporting counter values on the first scrape. When true,
## the first time an endpoint is scraped, check `process_start_time_seconds` to decide whether zero
## initial value can be assumed for counters. This requires keeping metrics in memory until the entire
## response is received.
#
# use_process_start_time: false

## @param share_labels - mapping - optional
## This mapping allows for the sharing of labels across multiple metrics. The keys represent the
## exposed metrics from which to share labels, and the values are mappings that configure the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,5 +264,9 @@ def instance_use_legacy_auth_encoding(field, value):
return True


def instance_use_process_start_time(field, value):
return False


def instance_username(field, value):
return get_default_field_value(field, value)
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ class Config:
tls_verify: Optional[bool]
use_latest_spec: Optional[bool]
use_legacy_auth_encoding: Optional[bool]
use_process_start_time: Optional[bool]
username: Optional[str]

@root_validator(pre=True)
Expand Down
8 changes: 8 additions & 0 deletions avi_vantage/datadog_checks/avi_vantage/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,14 @@ instances:
#
# collect_counters_with_distributions: false

## @param use_process_start_time - boolean - optional - default: false
## Whether to enable a heuristic for reporting counter values on the first scrape. When true,
## the first time an endpoint is scraped, check `process_start_time_seconds` to decide whether zero
## initial value can be assumed for counters. This requires keeping metrics in memory until the entire
## response is received.
#
# use_process_start_time: false

## @param share_labels - mapping - optional
## This mapping allows for the sharing of labels across multiple metrics. The keys represent the
## exposed metrics from which to share labels, and the values are mappings that configure the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,5 +252,9 @@ def instance_use_legacy_auth_encoding(field, value):
return True


def instance_use_process_start_time(field, value):
return False


def instance_username(field, value):
return get_default_field_value(field, value)
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class Config:
tls_verify: Optional[bool]
type_overrides: Optional[Mapping[str, Any]]
use_legacy_auth_encoding: Optional[bool]
use_process_start_time: Optional[bool]
username: Optional[str]

@root_validator(pre=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ instances:
#
# send_distribution_sums_as_monotonic: false

## @param use_process_start_time - boolean - optional - default: false
## Whether to enable a heuristic for reporting counter values on the first scrape. When true,
## the first time an endpoint is scraped, check `process_start_time_seconds` to decide whether zero
## initial value can be assumed for counters. This requires keeping metrics in memory until the entire
## response is received.
#
# use_process_start_time: false

## @param exclude_labels - list of strings - optional
## A list of labels to be excluded
#
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 @@ -256,5 +256,9 @@ def instance_use_legacy_auth_encoding(field, value):
return True


def instance_use_process_start_time(field, value):
return False


def instance_username(field, value):
return get_default_field_value(field, value)
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 @@ -117,6 +117,7 @@ class Config:
tls_verify: Optional[bool]
type_overrides: Optional[Mapping[str, Any]]
use_legacy_auth_encoding: Optional[bool]
use_process_start_time: Optional[bool]
username: Optional[str]

@root_validator(pre=True)
Expand Down
8 changes: 8 additions & 0 deletions cilium/datadog_checks/cilium/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ instances:
#
# send_distribution_sums_as_monotonic: false

## @param use_process_start_time - boolean - optional - default: false
## Whether to enable a heuristic for reporting counter values on the first scrape. When true,
## the first time an endpoint is scraped, check `process_start_time_seconds` to decide whether zero
## initial value can be assumed for counters. This requires keeping metrics in memory until the entire
## response is received.
#
# use_process_start_time: false

## @param exclude_labels - list of strings - optional
## A list of labels to be excluded
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,5 +248,9 @@ def instance_use_legacy_auth_encoding(field, value):
return True


def instance_use_process_start_time(field, value):
return False


def instance_username(field, value):
return get_default_field_value(field, value)
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class Config:
tls_verify: Optional[bool]
type_overrides: Optional[Mapping[str, Any]]
use_legacy_auth_encoding: Optional[bool]
use_process_start_time: Optional[bool]
username: Optional[str]

@root_validator(pre=True)
Expand Down
8 changes: 8 additions & 0 deletions cockroachdb/datadog_checks/cockroachdb/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ instances:
#
# send_distribution_sums_as_monotonic: false

## @param use_process_start_time - boolean - optional - default: false
## Whether to enable a heuristic for reporting counter values on the first scrape. When true,
## the first time an endpoint is scraped, check `process_start_time_seconds` to decide whether zero
## initial value can be assumed for counters. This requires keeping metrics in memory until the entire
## response is received.
#
# use_process_start_time: false

## @param exclude_labels - list of strings - optional
## A list of labels to be excluded
#
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 @@ -248,5 +248,9 @@ def instance_use_legacy_auth_encoding(field, value):
return True


def instance_use_process_start_time(field, value):
return False


def instance_username(field, value):
return get_default_field_value(field, value)
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 @@ -115,6 +115,7 @@ class Config:
tls_verify: Optional[bool]
type_overrides: Optional[Mapping[str, Any]]
use_legacy_auth_encoding: Optional[bool]
use_process_start_time: Optional[bool]
username: Optional[str]

@root_validator(pre=True)
Expand Down
8 changes: 8 additions & 0 deletions coredns/datadog_checks/coredns/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ instances:
#
# send_distribution_sums_as_monotonic: false

## @param use_process_start_time - boolean - optional - default: false
## Whether to enable a heuristic for reporting counter values on the first scrape. When true,
## the first time an endpoint is scraped, check `process_start_time_seconds` to decide whether zero
## initial value can be assumed for counters. This requires keeping metrics in memory until the entire
## response is received.
#
# use_process_start_time: false

## @param exclude_labels - list of strings - optional
## A list of labels to be excluded
#
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 @@ -248,5 +248,9 @@ def instance_use_legacy_auth_encoding(field, value):
return True


def instance_use_process_start_time(field, value):
return False


def instance_username(field, value):
return get_default_field_value(field, value)
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 @@ -115,6 +115,7 @@ class Config:
tls_verify: Optional[bool]
type_overrides: Optional[Mapping[str, Any]]
use_legacy_auth_encoding: Optional[bool]
use_process_start_time: Optional[bool]
username: Optional[str]

@root_validator(pre=True)
Expand Down
8 changes: 8 additions & 0 deletions crio/datadog_checks/crio/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ instances:
#
# send_distribution_sums_as_monotonic: false

## @param use_process_start_time - boolean - optional - default: false
## Whether to enable a heuristic for reporting counter values on the first scrape. When true,
## the first time an endpoint is scraped, check `process_start_time_seconds` to decide whether zero
## initial value can be assumed for counters. This requires keeping metrics in memory until the entire
## response is received.
#
# use_process_start_time: false

## @param exclude_labels - list of strings - optional
## A list of labels to be excluded
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,15 @@
value:
example: false
type: boolean
- name: use_process_start_time
description: |
Whether to enable a heuristic for reporting counter values on the first scrape. When true,
the first time an endpoint is scraped, check `process_start_time_seconds` to decide whether zero
initial value can be assumed for counters. This requires keeping metrics in memory until the entire
response is received.
value:
example: false
type: boolean
- name: share_labels
description: |
This mapping allows for the sharing of labels across multiple metrics. The keys represent the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@
value:
example: false
type: boolean
- name: use_process_start_time
description: |
Whether to enable a heuristic for reporting counter values on the first scrape. When true,
the first time an endpoint is scraped, check `process_start_time_seconds` to decide whether zero
initial value can be assumed for counters. This requires keeping metrics in memory until the entire
response is received.
value:
example: false
type: boolean
- name: exclude_labels
description: A list of labels to be excluded
value:
Expand Down Expand Up @@ -177,4 +186,4 @@
example:
- <FULL:TAG>
- <TAG_PREFIX:.*>
- <TAG_SUFFIX$>
- <TAG_SUFFIX$>
Original file line number Diff line number Diff line change
Expand Up @@ -248,5 +248,9 @@ def instance_use_legacy_auth_encoding(field, value):
return True


def instance_use_process_start_time(field, value):
return False


def instance_username(field, value):
return get_default_field_value(field, value)
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class Config:
tls_verify: Optional[bool]
type_overrides: Optional[Mapping[str, Any]]
use_legacy_auth_encoding: Optional[bool]
use_process_start_time: Optional[bool]
username: Optional[str]

@root_validator(pre=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ instances:
#
# send_distribution_sums_as_monotonic: false

## @param use_process_start_time - boolean - optional - default: false
## Whether to enable a heuristic for reporting counter values on the first scrape. When true,
## the first time an endpoint is scraped, check `process_start_time_seconds` to decide whether zero
## initial value can be assumed for counters. This requires keeping metrics in memory until the entire
## response is received.
#
# use_process_start_time: false

## @param exclude_labels - list of strings - optional
## A list of labels to be excluded
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ instances:
#
# send_distribution_sums_as_monotonic: false

## @param use_process_start_time - boolean - optional - default: false
## Whether to enable a heuristic for reporting counter values on the first scrape. When true,
## the first time an endpoint is scraped, check `process_start_time_seconds` to decide whether zero
## initial value can be assumed for counters. This requires keeping metrics in memory until the entire
## response is received.
#
# use_process_start_time: false

## @param exclude_labels - list of strings - optional
## A list of labels to be excluded
#
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 @@ -260,5 +260,9 @@ def instance_use_preview(field, value):
return True


def instance_use_process_start_time(field, value):
return False


def instance_username(field, value):
return get_default_field_value(field, value)
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 @@ -118,6 +118,7 @@ class Config:
url: Optional[str]
use_legacy_auth_encoding: Optional[bool]
use_preview: Optional[bool]
use_process_start_time: Optional[bool]
username: Optional[str]

@root_validator(pre=True)
Expand Down
8 changes: 8 additions & 0 deletions etcd/datadog_checks/etcd/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ instances:
#
# send_distribution_sums_as_monotonic: false

## @param use_process_start_time - boolean - optional - default: false
## Whether to enable a heuristic for reporting counter values on the first scrape. When true,
## the first time an endpoint is scraped, check `process_start_time_seconds` to decide whether zero
## initial value can be assumed for counters. This requires keeping metrics in memory until the entire
## response is received.
#
# use_process_start_time: false

## @param exclude_labels - list of strings - optional
## A list of labels to be excluded
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,5 +248,9 @@ def instance_use_legacy_auth_encoding(field, value):
return True


def instance_use_process_start_time(field, value):
return False


def instance_username(field, value):
return get_default_field_value(field, value)
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class Config:
tls_verify: Optional[bool]
type_overrides: Optional[Mapping[str, Any]]
use_legacy_auth_encoding: Optional[bool]
use_process_start_time: Optional[bool]
username: Optional[str]

@root_validator(pre=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ instances:
#
# send_distribution_sums_as_monotonic: false

## @param use_process_start_time - boolean - optional - default: false
## Whether to enable a heuristic for reporting counter values on the first scrape. When true,
## the first time an endpoint is scraped, check `process_start_time_seconds` to decide whether zero
## initial value can be assumed for counters. This requires keeping metrics in memory until the entire
## response is received.
#
# use_process_start_time: false

## @param exclude_labels - list of strings - optional
## A list of labels to be excluded
#
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 @@ -260,5 +260,9 @@ def instance_use_legacy_auth_encoding(field, value):
return True


def instance_use_process_start_time(field, value):
return False


def instance_username(field, value):
return get_default_field_value(field, value)
Loading

0 comments on commit 38aa927

Please sign in to comment.