From fcb9364956dace02a7ed75b340cb9a0c7c28a16d Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Wed, 10 Jul 2019 12:04:40 +0200 Subject: [PATCH] Disable info_schema.tables collector by default `info_schema.tables` has a danger of excessive cardinality, disable by default. Signed-off-by: Ben Kochie --- CHANGELOG.md | 3 +++ mysqld_exporter.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7858ac34..29ea546e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ The minimum supported MySQL version is now 5.5. +Collector `info_schema.tables` is now disabled by default due to high cardinality danger. + ### Changes: * [CHANGE] @@ -13,6 +15,7 @@ The minimum supported MySQL version is now 5.5. * [CHANGE] Update innodb buffer pool mappings #369 * [CHANGE] Update defaults for MySQL 5.5 #318 +* [CHANGE] Disable info_schema.tables collector by default #406 * [BUGFIX] Sanitize metric names in global variables #307 * [BUGFIX] Clear last_scrape_error on every scrape (PR #368) #367 * [FEATURE] Add by_user and by_host metrics to info_schema.processlist collector (PR #333) #334 diff --git a/mysqld_exporter.go b/mysqld_exporter.go index e1054b8c..bff1c901 100644 --- a/mysqld_exporter.go +++ b/mysqld_exporter.go @@ -63,7 +63,7 @@ var scrapers = map[collector.Scraper]bool{ collector.ScrapeSlaveStatus{}: true, collector.ScrapeProcesslist{}: false, collector.ScrapeUser{}: false, - collector.ScrapeTableSchema{}: true, + collector.ScrapeTableSchema{}: false, collector.ScrapeInfoSchemaInnodbTablespaces{}: false, collector.ScrapeInnodbMetrics{}: false, collector.ScrapeAutoIncrementColumns{}: false,