Skip to content
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

fix info_schema_processlist collector, binlog dump may cause ‘write to net‘ a huge number #381

Closed
wants to merge 2 commits into from

Conversation

wuxu92
Copy link

@wuxu92 wuxu92 commented Apr 26, 2019

when binlog dump thread in 'writing to net' state, the value of metric 'mysql_info_schema_threads_seconds_by_user{state='writing to net'}' can be a very huge number, which firing meaningless alerts.

move binlog dump cmd check before nomrmal state checker.

wuxu92 added 2 commits April 26, 2019 11:51
…ate check

because binlog dump can in writing to net state, which cause this state be a very large number

Signed-off-by: wuxu92 <wuxu92@qq.com>
Signed-off-by: wuxu92 <wuxu92@qq.com>
@SuperQ
Copy link
Member

SuperQ commented Apr 26, 2019

That seems like a problem with the alert, not with the exporter. I don't see anything invalid about this.

@wuxu92
Copy link
Author

wuxu92 commented Apr 27, 2019

That seems like a problem with the alert, not with the exporter. I don't see anything invalid about this.

IMHO, it would be better to add all binlog dump threads to mysql_info_schema_threads_seconds_by_user{state='replication master'}, rather than mysql_info_schema_threads_seconds_by_user{state='writing to net'} even this binlog dump thread in writing to net state. for this thead's time can be very huge and will shadow all user's 'writing to net' thread count

@SuperQ
Copy link
Member

SuperQ commented Jan 5, 2022

Fixed with #603.

@SuperQ SuperQ closed this Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants