Skip to content

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 <[email protected]>
Signed-off-by: wuxu92 <[email protected]>
@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