TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How do you monitor MySQL queries?

9 pointsby grafelicover 8 years ago
I want to monitor the queries which impact performance on a very busy (Percona) Galera cluster. I've yet to find a monitoring tool which can handle this. What do you use?

5 comments

bryan11over 8 years ago
Innotop is great for watching things live. To review long or resource intensive queries, the Percona toolkit scripts create excellent summaries of the MySQL slow query log.<p>I use them to send these weekly reports to our developers: Slow queries, lock waits, transactions with the most rows affected, transaction by highest statement count, largest statements by rows affected, busiest tables, queries doing full table scan or full join, and busy writes.
评论 #13213555 未加载
joshstrangeover 8 years ago
Not sure if this will work&#x2F;help on Galera but on a single mysql server I have used mytop [0] to watch for long running queries on the fly. Nothing beats the slow query log though for monitoring for problem queries. I only use mytop when there is an active issue I&#x27;m trying to debug.<p>[0] <a href="http:&#x2F;&#x2F;jeremy.zawodny.com&#x2F;mysql&#x2F;mytop&#x2F;" rel="nofollow">http:&#x2F;&#x2F;jeremy.zawodny.com&#x2F;mysql&#x2F;mytop&#x2F;</a>
评论 #13214060 未加载
atmosxover 8 years ago
The ELK stack[1]. If you don&#x27;t use the ELK stack for everything already, it might be considered an overkill as a <i>safe deployment</i> would take at least three nodes with 8GB of RAM at least.<p>[1] <a href="https:&#x2F;&#x2F;www.phase2technology.com&#x2F;blog&#x2F;adding-mysql-slow-query-logs-to-logstash&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.phase2technology.com&#x2F;blog&#x2F;adding-mysql-slow-quer...</a>
评论 #13214146 未加载
misframerover 8 years ago
Shameless plug: I work at VividCortex[0] and we&#x27;re building a database monitoring SaaS. Someone else wrote &quot;nothing beats the slow query log though for monitoring for problem queries&quot; ... give our tool a shot and see how it compares :).<p>[0] <a href="https:&#x2F;&#x2F;www.vividcortex.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.vividcortex.com&#x2F;</a>
sciurusover 8 years ago
<a href="https:&#x2F;&#x2F;blog.box.com&#x2F;blog&#x2F;optimizing-mysql-performance-at-scale-with-anemometer-2&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.box.com&#x2F;blog&#x2F;optimizing-mysql-performance-at-sc...</a>
评论 #13214154 未加载