-
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
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
This pull request is now in conflicts. Could you fix it? 🙏
|
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
💚 Build Succeeded
History
|
💔 Build Failed
Failed CI StepsHistory
|
💔 Build Failed
Failed CI StepsHistory
|
💔 Build Failed
Failed CI StepsHistory
|
💔 Build Failed
Failed CI Steps
History
|
💔 Build Failed
Failed CI StepsHistory
|
💔 Build Failed
Failed CI StepsHistory |
@harnish-elastic, |
16f9aee
to
78a997b
Compare
Updated, thanks! |
…mysql-update-query
…mysql-update-query
…mysql-update-query
…ic/beats into mysql-update-query
This pull request is now in conflicts. Could you fix it? 🙏
|
@@ -26,6 +26,9 @@ | |||
- name: 'avg.timer.wait' | |||
type: long | |||
description: Average wait time of the summarized events that are timed | |||
- name: 'schemaname' |
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.
{"log.level":"error","@timestamp":"2024-05-31T11:46:34.810+0530","log.logger":"mysql.performance","log.origin":{"function":"[github.com/elastic/beats/v7/metricbeat/module/mysql/query.(*MetricSet).Fetch](http://github.com/elastic/beats/v7/metricbeat/module/mysql/query.%28*MetricSet%29.Fetch)","[file.name](http://file.name/)":"query/query.go","file.line":112},"message":"error doing query {events_statements SELECT schema_name AS schema, digest_text, count_star, avg_timer_wait, max_timer_wait, last_seen /*!80001 ,quantile_95 / \n FROM performance_schema.events_statements_summary_by_digest \n ORDER BY avg_timer_wait DESC \n LIMIT 10;\n table %!s(bool=true)}%!(EXTRA *mysql.MySQLError=Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'schema, digest_text, count_star, avg_timer_wait, max_timer_wait, last_seen /!80' at line 1)","[service.name](http://service.name/)":"metricbeat","ecs.version":"1.6.0"}
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
…mysql-update-query Conflicts: metricbeat/module/mysql/performance/manifest.yml
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.
Can we address the failure for check-metricbeat by running make update
, as suggested in the output?
When I run it locally I get:
$ make update
$ git diff
<snipped output with changes to two files, see below>
$ git status
On branch pr/38363
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: metricbeat/docs/fields.asciidoc
modified: metricbeat/module/mysql/fields.go
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.
Thanks for addressing #38363 (review)
LGTM from my side/CI PoV as well.
Thank you! 🙌 |
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.
LGTM
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.
Looks good!
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.
Looks good!
* 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]>
Proposed commit message
schemaname
.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues