From e251e1be2435cdd54eb9f1036742b75e8fd824a6 Mon Sep 17 00:00:00 2001 From: Vincent Whitchurch Date: Fri, 14 Aug 2026 10:08:26 +0000 Subject: [PATCH 1/2] Manually author discovery metrics_prefix in spec.yaml for gearmand, krakend, prefect Alternative to PR #24738's auto-detection approach, which computed each integration's metrics_prefix from manifest.json or the repo's .ddev/config.toml override table at `ddev validate config` time. Integration owners raised a concern that this made .ddev/config.toml, a developer/tooling config file, silently production-critical, since a wrong or missing entry there would flow straight into the auto_conf.yaml shipped with the Agent. This hand-authors the same metrics_prefix values directly in each integration's assets/configuration/spec.yaml via a discovery.example override on the existing auto_conf/discovery template, using the same override mechanism already used for ad_identifiers' value.example and krakend's cel_selector.example. auto_conf.yaml is then regenerated with `ddev validate config -s`, producing output identical to PR #24738's. Environment: Datadog workspace Co-Authored-By: Claude Sonnet 5 --- gearmand/assets/configuration/spec.yaml | 3 +++ gearmand/datadog_checks/gearmand/data/auto_conf.yaml | 3 ++- krakend/assets/configuration/spec.yaml | 3 +++ krakend/datadog_checks/krakend/data/auto_conf.yaml | 3 ++- prefect/assets/configuration/spec.yaml | 3 +++ prefect/datadog_checks/prefect/data/auto_conf.yaml | 3 ++- 6 files changed, 15 insertions(+), 3 deletions(-) diff --git a/gearmand/assets/configuration/spec.yaml b/gearmand/assets/configuration/spec.yaml index f27d2cc1ab2fb..64627a7986661 100644 --- a/gearmand/assets/configuration/spec.yaml +++ b/gearmand/assets/configuration/spec.yaml @@ -55,3 +55,6 @@ files: value.example: - gearmand - template: auto_conf/discovery + overrides: + discovery.example: + metrics_prefix: gearman diff --git a/gearmand/datadog_checks/gearmand/data/auto_conf.yaml b/gearmand/datadog_checks/gearmand/data/auto_conf.yaml index 4d9f3d01a767e..35b23b626c648 100644 --- a/gearmand/datadog_checks/gearmand/data/auto_conf.yaml +++ b/gearmand/datadog_checks/gearmand/data/auto_conf.yaml @@ -8,7 +8,8 @@ ad_identifiers: ## Enables configuration discovery # -discovery: {} +discovery: + metrics_prefix: gearman ## Unused init configuration # diff --git a/krakend/assets/configuration/spec.yaml b/krakend/assets/configuration/spec.yaml index e706adb537d29..f2ff8fbfd2eab 100644 --- a/krakend/assets/configuration/spec.yaml +++ b/krakend/assets/configuration/spec.yaml @@ -86,3 +86,6 @@ files: processes: - "process.name == 'krakend'" - template: auto_conf/discovery + overrides: + discovery.example: + metrics_prefix: krakend.api diff --git a/krakend/datadog_checks/krakend/data/auto_conf.yaml b/krakend/datadog_checks/krakend/data/auto_conf.yaml index 8492456cc00e4..21991d62ea47b 100644 --- a/krakend/datadog_checks/krakend/data/auto_conf.yaml +++ b/krakend/datadog_checks/krakend/data/auto_conf.yaml @@ -14,7 +14,8 @@ cel_selector: ## Enables configuration discovery # -discovery: {} +discovery: + metrics_prefix: krakend.api ## Unused init configuration # diff --git a/prefect/assets/configuration/spec.yaml b/prefect/assets/configuration/spec.yaml index 8326fc0c8d9ad..367c7e4f3a1c1 100644 --- a/prefect/assets/configuration/spec.yaml +++ b/prefect/assets/configuration/spec.yaml @@ -160,4 +160,7 @@ files: value.example: - prefect - template: auto_conf/discovery + overrides: + discovery.example: + metrics_prefix: prefect.server diff --git a/prefect/datadog_checks/prefect/data/auto_conf.yaml b/prefect/datadog_checks/prefect/data/auto_conf.yaml index 56983e9cde0da..3096b410cda18 100644 --- a/prefect/datadog_checks/prefect/data/auto_conf.yaml +++ b/prefect/datadog_checks/prefect/data/auto_conf.yaml @@ -8,7 +8,8 @@ ad_identifiers: ## Enables configuration discovery # -discovery: {} +discovery: + metrics_prefix: prefect.server ## Unused init configuration # From e35aa9d861b0e1052086ec78343e4e2cacb1465f Mon Sep 17 00:00:00 2001 From: Vincent Whitchurch Date: Fri, 14 Aug 2026 10:09:55 +0000 Subject: [PATCH 2/2] Add changelog entries for PR #24861 Environment: Datadog workspace Co-Authored-By: Claude Sonnet 5 --- gearmand/changelog.d/24861.added | 1 + krakend/changelog.d/24861.added | 1 + prefect/changelog.d/24861.added | 1 + 3 files changed, 3 insertions(+) create mode 100644 gearmand/changelog.d/24861.added create mode 100644 krakend/changelog.d/24861.added create mode 100644 prefect/changelog.d/24861.added diff --git a/gearmand/changelog.d/24861.added b/gearmand/changelog.d/24861.added new file mode 100644 index 0000000000000..6433ff9315b3c --- /dev/null +++ b/gearmand/changelog.d/24861.added @@ -0,0 +1 @@ +Add ``metrics_prefix`` to the ``discovery`` block of ``auto_conf.yaml``. diff --git a/krakend/changelog.d/24861.added b/krakend/changelog.d/24861.added new file mode 100644 index 0000000000000..6433ff9315b3c --- /dev/null +++ b/krakend/changelog.d/24861.added @@ -0,0 +1 @@ +Add ``metrics_prefix`` to the ``discovery`` block of ``auto_conf.yaml``. diff --git a/prefect/changelog.d/24861.added b/prefect/changelog.d/24861.added new file mode 100644 index 0000000000000..6433ff9315b3c --- /dev/null +++ b/prefect/changelog.d/24861.added @@ -0,0 +1 @@ +Add ``metrics_prefix`` to the ``discovery`` block of ``auto_conf.yaml``.