-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[O11y][MySQL] Update query for performance data stream (#38363)
* mysql update query * add changelog entry * mage check command * make update * change in python version to fix CI issue * update python version * revert changes of python file * revert install-tools.bat file changes * Merge branch 'main' of https://github.com/harnish-elastic/beats into mysql-update-query * address review comments * address review comments * revert schema to schemaname to avoid error --------- Co-authored-by: subham sarkar <[email protected]>
- Loading branch information
1 parent
d535d17
commit 8cc85a2
Showing
6 changed files
with
68 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,82 @@ | ||
{ | ||
"@timestamp": "2020-07-13T13:43:28.495Z", | ||
"@timestamp": "2024-02-27T07:33:02.881Z", | ||
"@metadata": { | ||
"beat": "metricbeat", | ||
"type": "_doc", | ||
"version": "8.0.0" | ||
}, | ||
"event": { | ||
"duration": 1379935, | ||
"dataset": "mysql.performance", | ||
"module": "mysql" | ||
}, | ||
"metricset": { | ||
"name": "performance", | ||
"period": 10000 | ||
}, | ||
"service": { | ||
"address": "tcp(172.17.0.2:3306)/", | ||
"type": "mysql" | ||
"version": "8.14.0" | ||
}, | ||
"mysql": { | ||
"performance": { | ||
"events_statements": { | ||
"digest": { | ||
"text": "SELECT @@SESSION . `auto_increment_increment` AS `auto_increment_increment` , @@`character_set_client` AS `character_set_client` , @@`character_set_connection` AS `character_set_connection` , @@`character_set_results` AS `character_set_results` , @@`character_set_server` AS `character_set_server` , @@`collation_server` AS `collation_server` , @@`collation_connection` AS `collation_connection` , @@`init_connect` AS `init_connect` , @@`interactive_timeout` AS `interactive_timeout` , @@`license` AS `license` , @@`lower_case_table_names` AS `lower_case_table_names` , @@`max_allowed_packet` AS `max_allowed_packet` , @@`net_write_timeout` AS `net_write_timeout` , @@`performance_schema` AS `performance_schema` , @@`sql_mode` AS `sql_mode` , @@`system_time_zone` AS `system_time_zone` , @@`time_zone` AS `time_zone` , @@`transaction_isolation` AS `transaction_isolation` , @@`wait_timeout` AS `wait_timeout`" | ||
"text": "SHOW SCHEMAS" | ||
}, | ||
"count": { | ||
"star": 2 | ||
"star": 5 | ||
}, | ||
"avg": { | ||
"timer": { | ||
"wait": 1.78294e+08 | ||
"wait": 1.6439131e+10 | ||
} | ||
}, | ||
"max": { | ||
"timer": { | ||
"wait": 1.89622e+08 | ||
"wait": 4.0834164e+10 | ||
} | ||
}, | ||
"last": { | ||
"seen": "2020-07-13 10:04:47.709230" | ||
"seen": "2024-02-27 06:44:17.296246" | ||
}, | ||
"quantile": { | ||
"95": 1.90546071e+08 | ||
} | ||
"95": 4.1686938347e+10 | ||
}, | ||
"schemaname": "performance_schema" | ||
} | ||
} | ||
}, | ||
"ecs": { | ||
"version": "1.5.0" | ||
}, | ||
"host": { | ||
"name": "mcastro" | ||
"id": "41359f29035549cda159ae8d1a533d72", | ||
"containerized": false, | ||
"ip": [ | ||
"127.0.0.1" | ||
], | ||
"name": "localhost", | ||
"mac": [ | ||
"86-32-76-45-EB-2B" | ||
], | ||
"hostname": "localhost", | ||
"architecture": "x86_64", | ||
"os": { | ||
"name": "CentOS Linux", | ||
"kernel": "3.10.0-1160.102.1.el7.x86_64", | ||
"codename": "Core", | ||
"type": "linux", | ||
"platform": "centos", | ||
"version": "7 (Core)", | ||
"family": "redhat" | ||
} | ||
}, | ||
"agent": { | ||
"id": "803dfdba-e638-4590-a2de-80cb1cebe78d", | ||
"name": "mcastro", | ||
"type": "metricbeat", | ||
"version": "8.0.0", | ||
"ephemeral_id": "f87e6edc-2f37-45f2-9644-b67b1834abfd" | ||
"version": "8.14.0", | ||
"ephemeral_id": "539a163b-91ab-433c-9893-31a48d09b5a7", | ||
"id": "e5bcfbf0-4c74-44dd-b711-c5e90a69ab7a", | ||
"name": "localhost" | ||
}, | ||
"ecs": { | ||
"version": "8.0.0" | ||
}, | ||
"event": { | ||
"dataset": "mysql.performance", | ||
"module": "mysql", | ||
"duration": 14244062 | ||
}, | ||
"metricset": { | ||
"period": 10000, | ||
"name": "performance" | ||
}, | ||
"service": { | ||
"address": "tcp(127.0.0.1:3306)/?readTimeout=10s&timeout=10s&writeTimeout=10s", | ||
"type": "mysql" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters