Skip to content

Commit

Permalink
Update the configuration to include the metric_prefix option (#17065)
Browse files Browse the repository at this point in the history
* Update the configuration to include the `metric_prefix` option

* Update the configuration to include the `metric_prefix` option
  • Loading branch information
FlorentClarret authored Mar 7, 2024
1 parent 56adf6f commit 6374198
Show file tree
Hide file tree
Showing 33 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions clickhouse/changelog.d/17065.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the configuration to include the `metric_prefix` option
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class CustomQuery(BaseModel):
)
collection_interval: Optional[int] = None
columns: Optional[tuple[MappingProxyType[str, Any], ...]] = None
metric_prefix: Optional[str] = None
query: Optional[str] = None
tags: Optional[tuple[str, ...]] = None

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ instances:
## If the collection interval is greater than check collection interval,
## the query will NOT BE RUN exactly at the collection interval.
## The query will be run at the next check run after the collection interval has passed.
## 5. metric_prefix (optional) - The prefix to apply to each metric.
#
# custom_queries:
# - query: SELECT foo, COUNT(*) FROM table.events GROUP BY foo
Expand Down
1 change: 1 addition & 0 deletions datadog_checks_dev/changelog.d/17065.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the configuration to include the `metric_prefix` option
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
If the collection interval is greater than check collection interval,
the query will NOT BE RUN exactly at the collection interval.
The query will be run at the next check run after the collection interval has passed.
5. metric_prefix (optional) - The prefix to apply to each metric.
value:
type: array
items:
Expand All @@ -83,6 +84,8 @@
type: string
- name: collection_interval
type: integer
- name: metric_prefix
type: string
example:
- query: SELECT foo, COUNT(*) FROM table.events GROUP BY foo
columns:
Expand All @@ -93,3 +96,4 @@
tags:
- test:<INTEGRATION>
collection_interval: 30
metric_prefix: foo_prefix
1 change: 1 addition & 0 deletions mysql/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ files:
type: gauge
tags:
- test:mysql
metric_prefix: mysql
- name: additional_status
description: |
Set this parameter to collect additional MySQL status variables as metrics
Expand Down
1 change: 1 addition & 0 deletions mysql/changelog.d/17065.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the configuration to include the `metric_prefix` option
1 change: 1 addition & 0 deletions mysql/datadog_checks/mysql/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class CustomQuery(BaseModel):
)
collection_interval: Optional[int] = None
columns: Optional[tuple[MappingProxyType[str, Any], ...]] = None
metric_prefix: Optional[str] = None
query: Optional[str] = None
tags: Optional[tuple[str, ...]] = None

Expand Down
2 changes: 2 additions & 0 deletions mysql/datadog_checks/mysql/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ instances:
## If the collection interval is greater than check collection interval,
## the query will NOT BE RUN exactly at the collection interval.
## The query will be run at the next check run after the collection interval has passed.
## 5. metric_prefix (optional) - The prefix to apply to each metric.
#
# custom_queries:
# - query: SELECT foo, COUNT(*) FROM table.events GROUP BY foo
Expand All @@ -172,6 +173,7 @@ instances:
# type: gauge
# tags:
# - test:mysql
# metric_prefix: mysql

## @param additional_status - list of mappings - optional
## Set this parameter to collect additional MySQL status variables as metrics
Expand Down
1 change: 1 addition & 0 deletions oracle/changelog.d/17065.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the configuration to include the `metric_prefix` option
1 change: 1 addition & 0 deletions oracle/datadog_checks/oracle/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class CustomQuery(BaseModel):
)
collection_interval: Optional[int] = None
columns: Optional[tuple[MappingProxyType[str, Any], ...]] = None
metric_prefix: Optional[str] = None
query: Optional[str] = None
tags: Optional[tuple[str, ...]] = None

Expand Down
2 changes: 2 additions & 0 deletions oracle/datadog_checks/oracle/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ instances:
## If the collection interval is greater than check collection interval,
## the query will NOT BE RUN exactly at the collection interval.
## The query will be run at the next check run after the collection interval has passed.
## 5. metric_prefix (optional) - The prefix to apply to each metric.
#
# custom_queries:
# - query: SELECT foo, COUNT(*) FROM table.events GROUP BY foo
Expand All @@ -164,6 +165,7 @@ instances:
# tags:
# - test:<INTEGRATION>
# collection_interval: 30
# metric_prefix: foo_prefix

## @param tags - list of strings - optional
## A list of tags to attach to every metric and service check emitted by this instance.
Expand Down
1 change: 1 addition & 0 deletions sap_hana/changelog.d/17065.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the configuration to include the `metric_prefix` option
1 change: 1 addition & 0 deletions sap_hana/datadog_checks/sap_hana/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class CustomQuery(BaseModel):
)
collection_interval: Optional[int] = None
columns: Optional[tuple[MappingProxyType[str, Any], ...]] = None
metric_prefix: Optional[str] = None
query: Optional[str] = None
tags: Optional[tuple[str, ...]] = None

Expand Down
2 changes: 2 additions & 0 deletions sap_hana/datadog_checks/sap_hana/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ instances:
## If the collection interval is greater than check collection interval,
## the query will NOT BE RUN exactly at the collection interval.
## The query will be run at the next check run after the collection interval has passed.
## 5. metric_prefix (optional) - The prefix to apply to each metric.
#
# custom_queries:
# - query: SELECT foo, COUNT(*) FROM table.events GROUP BY foo
Expand All @@ -156,6 +157,7 @@ instances:
# tags:
# - test:<INTEGRATION>
# collection_interval: 30
# metric_prefix: foo_prefix

## @param persist_db_connections - boolean - optional - default: true
## Whether or not to persist database connections.
Expand Down
1 change: 1 addition & 0 deletions singlestore/changelog.d/17065.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the configuration to include the `metric_prefix` option
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class CustomQuery(BaseModel):
)
collection_interval: Optional[int] = None
columns: Optional[tuple[MappingProxyType[str, Any], ...]] = None
metric_prefix: Optional[str] = None
query: Optional[str] = None
tags: Optional[tuple[str, ...]] = None

Expand Down
2 changes: 2 additions & 0 deletions singlestore/datadog_checks/singlestore/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ instances:
## If the collection interval is greater than check collection interval,
## the query will NOT BE RUN exactly at the collection interval.
## The query will be run at the next check run after the collection interval has passed.
## 5. metric_prefix (optional) - The prefix to apply to each metric.
#
# custom_queries:
# - query: SELECT foo, COUNT(*) FROM table.events GROUP BY foo
Expand All @@ -131,6 +132,7 @@ instances:
# tags:
# - test:<INTEGRATION>
# collection_interval: 30
# metric_prefix: foo_prefix

## @param collect_system_metrics - boolean - optional - default: false
## Collect additional system metrics from the MV_SYSINFO_* tables. Disabled by default to limit
Expand Down
1 change: 1 addition & 0 deletions snowflake/changelog.d/17065.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the configuration to include the `metric_prefix` option
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class CustomQuery(BaseModel):
)
collection_interval: Optional[int] = None
columns: Optional[tuple[MappingProxyType[str, Any], ...]] = None
metric_prefix: Optional[str] = None
query: Optional[str] = None
tags: Optional[tuple[str, ...]] = None

Expand Down
1 change: 1 addition & 0 deletions snowflake/datadog_checks/snowflake/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ instances:
## If the collection interval is greater than check collection interval,
## the query will NOT BE RUN exactly at the collection interval.
## The query will be run at the next check run after the collection interval has passed.
## 5. metric_prefix (optional) - The prefix to apply to each metric.
#
# custom_queries:
# - query: SELECT foo, COUNT(*) FROM table.events GROUP BY foo
Expand Down
1 change: 1 addition & 0 deletions sqlserver/changelog.d/17065.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the configuration to include the `metric_prefix` option
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class CustomQuery(BaseModel):
)
collection_interval: Optional[int] = None
columns: Optional[tuple[MappingProxyType[str, Any], ...]] = None
metric_prefix: Optional[str] = None
query: Optional[str] = None
tags: Optional[tuple[str, ...]] = None

Expand Down
2 changes: 2 additions & 0 deletions sqlserver/datadog_checks/sqlserver/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ instances:
## If the collection interval is greater than check collection interval,
## the query will NOT BE RUN exactly at the collection interval.
## The query will be run at the next check run after the collection interval has passed.
## 5. metric_prefix (optional) - The prefix to apply to each metric.
#
# custom_queries:
# - query: SELECT foo, COUNT(*) FROM table.events GROUP BY foo
Expand All @@ -622,6 +623,7 @@ instances:
# tags:
# - test:<INTEGRATION>
# collection_interval: 30
# metric_prefix: foo_prefix

## @param stored_procedure - string - optional
## DEPRECATED - use `custom_queries` instead. For guidance, see:
Expand Down
1 change: 1 addition & 0 deletions teradata/changelog.d/17065.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the configuration to include the `metric_prefix` option
1 change: 1 addition & 0 deletions teradata/datadog_checks/teradata/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class CustomQuery(BaseModel):
)
collection_interval: Optional[int] = None
columns: Optional[tuple[MappingProxyType[str, Any], ...]] = None
metric_prefix: Optional[str] = None
query: Optional[str] = None
tags: Optional[tuple[str, ...]] = None

Expand Down
2 changes: 2 additions & 0 deletions teradata/datadog_checks/teradata/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ instances:
## If the collection interval is greater than check collection interval,
## the query will NOT BE RUN exactly at the collection interval.
## The query will be run at the next check run after the collection interval has passed.
## 5. metric_prefix (optional) - The prefix to apply to each metric.
#
# custom_queries:
# - query: SELECT foo, COUNT(*) FROM table.events GROUP BY foo
Expand All @@ -218,6 +219,7 @@ instances:
# tags:
# - test:<INTEGRATION>
# collection_interval: 30
# metric_prefix: foo_prefix

## @param tags - list of strings - optional
## A list of tags to attach to every metric and service check emitted by this instance.
Expand Down
1 change: 1 addition & 0 deletions vertica/changelog.d/17065.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the configuration to include the `metric_prefix` option
1 change: 1 addition & 0 deletions vertica/datadog_checks/vertica/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class CustomQuery(BaseModel):
)
collection_interval: Optional[int] = None
columns: Optional[tuple[MappingProxyType[str, Any], ...]] = None
metric_prefix: Optional[str] = None
query: Optional[str] = None
tags: Optional[tuple[str, ...]] = None

Expand Down
1 change: 1 addition & 0 deletions vertica/datadog_checks/vertica/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ instances:
## If the collection interval is greater than check collection interval,
## the query will NOT BE RUN exactly at the collection interval.
## The query will be run at the next check run after the collection interval has passed.
## 5. metric_prefix (optional) - The prefix to apply to each metric.
#
# custom_queries:
# - query: SELECT force_outer, table_name FROM v_catalog.tables
Expand Down
1 change: 1 addition & 0 deletions voltdb/changelog.d/17065.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update the configuration to include the `metric_prefix` option
1 change: 1 addition & 0 deletions voltdb/datadog_checks/voltdb/config_models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class CustomQuery(BaseModel):
)
collection_interval: Optional[int] = None
columns: Optional[tuple[MappingProxyType[str, Any], ...]] = None
metric_prefix: Optional[str] = None
query: Optional[str] = None
tags: Optional[tuple[str, ...]] = None

Expand Down
2 changes: 2 additions & 0 deletions voltdb/datadog_checks/voltdb/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ instances:
## If the collection interval is greater than check collection interval,
## the query will NOT BE RUN exactly at the collection interval.
## The query will be run at the next check run after the collection interval has passed.
## 5. metric_prefix (optional) - The prefix to apply to each metric.
#
# custom_queries:
# - query: SELECT foo, COUNT(*) FROM table.events GROUP BY foo
Expand All @@ -328,6 +329,7 @@ instances:
# tags:
# - test:<INTEGRATION>
# collection_interval: 30
# metric_prefix: foo_prefix

## @param tags - list of strings - optional
## A list of tags to attach to every metric and service check emitted by this instance.
Expand Down

0 comments on commit 6374198

Please sign in to comment.