-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[O11y][MySQL] Update query for performance data stream #38363
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
444ea6c
mysql update query
harnish-elastic 1aa4011
add changelog entry
harnish-elastic 465e2c4
Merge branch 'main' of https://github.com/harnish-elastic/beats into …
harnish-elastic 0e87886
mage check command
harnish-elastic 78a997b
make update
harnish-elastic b0ab6ce
change in python version to fix CI issue
harnish-elastic 40c85b4
update python version
harnish-elastic bf21a73
Merge branch 'main' of https://github.com/harnish-elastic/beats into …
harnish-elastic 7167af7
Merge branch 'main' into mysql-update-query
shmsr 92e8b82
revert changes of python file
harnish-elastic a86fb55
Merge branch 'mysql-update-query' of https://github.com/harnish-elast…
harnish-elastic 99b6521
revert install-tools.bat file changes
harnish-elastic 0e74215
Merge branch 'main' of https://github.com/harnish-elastic/beats into …
harnish-elastic 0e7dd32
Merge branch 'main' of https://github.com/harnish-elastic/beats into …
harnish-elastic cd1389a
Merge branch 'main' into mysql-update-query
harnish-elastic 93484cb
Merge branch 'main' of https://github.com/harnish-elastic/beats into …
harnish-elastic be607aa
Merge branch 'mysql-update-query' of https://github.com/harnish-elast…
harnish-elastic f7887f6
Merge branch 'main' of https://github.com/harnish-elastic/beats into …
harnish-elastic 5a872a4
address review comments
harnish-elastic 597b246
address review comments
harnish-elastic ee6582e
revert schema to schemaname to avoid error
harnish-elastic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think that the
schema
would be more relevant field name here?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we can do that. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While doing schemaname to schema we are getting the following error. We can keep schemaname to avoid this error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which error? I think you missed pasting it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mb, Updated