From a1a3d4d8485506a47523b5cd9dccff04c4020940 Mon Sep 17 00:00:00 2001 From: Allen Zhou Date: Fri, 21 Mar 2025 12:51:11 -0400 Subject: [PATCH] Show MySQL schema collection config (#19910) * testing a branch * show mysql schema collection config * Delete allen-test-file.txt delete file (cherry picked from commit b4503df53ea852de4c77b49324f838550a68ceaa) --- mysql/assets/configuration/spec.yaml | 1 - .../mysql/data/conf.yaml.example | 21 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/mysql/assets/configuration/spec.yaml b/mysql/assets/configuration/spec.yaml index 3e88e62777288..32b85efdf227f 100644 --- a/mysql/assets/configuration/spec.yaml +++ b/mysql/assets/configuration/spec.yaml @@ -382,7 +382,6 @@ files: type: number example: 600 - name: schemas_collection - hidden: true description: | Configure collection of schemas (databases). Only tables and schemas for which the user has been granted SELECT privileges are collected. diff --git a/mysql/datadog_checks/mysql/data/conf.yaml.example b/mysql/datadog_checks/mysql/data/conf.yaml.example index 8efb303e6bbb0..1c92d789c1104 100644 --- a/mysql/datadog_checks/mysql/data/conf.yaml.example +++ b/mysql/datadog_checks/mysql/data/conf.yaml.example @@ -379,6 +379,27 @@ instances: # # collection_interval: 600 + ## Configure collection of schemas (databases). + ## Only tables and schemas for which the user has been granted SELECT privileges are collected. + # + # schemas_collection: + + ## @param enabled - boolean - optional - default: false + ## Enable schema collection. Requires `dbm: true`. Defaults to false. + # + # enabled: false + + ## @param collection_interval - number - optional - default: 600 + ## Set the database schema collection interval (in seconds). Defaults to 600 seconds. + # + # collection_interval: 600 + + ## @param max_execution_time - number - optional - default: 60 + ## Set the maximum time for schema collection (in seconds). Defaults to 60 seconds. + ## Capped by `schemas_collection.collection_interval` + # + # max_execution_time: 60 + ## Configure collection of query metrics # # query_metrics: