From fab441b462ded32546b4e0475d3415f548f1b008 Mon Sep 17 00:00:00 2001 From: Kush Rana <89848966+kush-elastic@users.noreply.github.com> Date: Thu, 16 May 2024 14:53:22 +0530 Subject: [PATCH] [Metricbeat][MySQL] Performance metricset does not working with MySQL 5.7 (#38710) * fix mysql metricbeat module failure for version 5.7 * add entry to CHANGELOG.next.asciidoc * update changelog entry * Update CHANGELOG.next.asciidoc Co-authored-by: subham sarkar --------- Co-authored-by: subham sarkar Co-authored-by: subham sarkar --- CHANGELOG.next.asciidoc | 1 + metricbeat/module/mysql/performance/manifest.yml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 3beb4ef51e5..807dba72261 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -162,6 +162,7 @@ https://github.com/elastic/beats/compare/v8.8.1\...main[Check the HEAD diff] - rabbitmq/queue - Change the mapping type of `rabbitmq.queue.consumers.utilisation.pct` to `scaled_float` from `long` because the values fall within the range of `[0.0, 1.0]`. Previously, conversion to integer resulted in reporting either `0` or `1`. - Fix timeout caused by the retrival of which indices are hidden {pull}39165[39165] - Fix Azure Monitor support for multiple aggregation types {issue}39192[39192] {pull}39204[39204] +- Fix for MySQL/Performance - Query failure for MySQL versions below v8.0.1, for performance metric `quantile_95`. {pull}38710[38710] *Osquerybeat* diff --git a/metricbeat/module/mysql/performance/manifest.yml b/metricbeat/module/mysql/performance/manifest.yml index 51aa01614b5..84eb953ab95 100644 --- a/metricbeat/module/mysql/performance/manifest.yml +++ b/metricbeat/module/mysql/performance/manifest.yml @@ -6,10 +6,10 @@ input: namespace: performance queries: - query: > - SELECT digest_text, count_star, avg_timer_wait, max_timer_wait, last_seen, quantile_95 - FROM performance_schema.events_statements_summary_by_digest - ORDER BY avg_timer_wait DESC - LIMIT 10 + SELECT digest_text, count_star, avg_timer_wait, max_timer_wait, last_seen /*!80001 ,quantile_95 */ + FROM performance_schema.events_statements_summary_by_digest + ORDER BY avg_timer_wait DESC + LIMIT 10; query_namespace: events_statements response_format: table replace_underscores: true