MySQL için InnoDB-derin izleme

Performance Schema'dan InnoDB buffer pool ve redo log'a, group replication üyelerinden binlog tüketimine, SSL bağlantılarından events scheduler'a kadar — MySQL ortamınızın her açısı görünür.

Beta durumu: Provider canlı, üretim PoC kapsamında çalışıyor. SQL Server'daki 160+ async DBA action derinliğine paritetik eşitleme 2026-Q3'te hedefleniyor. Detaylar için yol haritamızı inceleyin.
MySQL 5.7 MySQL 8.0+ MariaDB 10.x Amazon Aurora MySQL Cloud SQL Azure DB for MySQL
30+İzleme Metodu
P_SPerformance Schema
InnoDBBuffer pool + redo log
8.0Group Replication

Performance Schema ve slow query log

Top Sorgular

events_statements_summary

Performance Schema events_statements_summary_by_digest ile DIGEST_TEXT bazlı TOP-N sıralama; toplam ve ortalama latency, rows_examined, rows_sent.

  • get_top_queries
  • events_statements_summary_*
  • DIGEST bazlı normalize
  • rows_examined / rows_sent oranı
Slow Log

Slow query log analizi

Slow query log'dan en uzun sorgular, query_time, lock_time, rows_examined ve indexsiz scan tespiti.

  • get_diag_slow_queries
  • long_query_time analizi
  • log_queries_not_using_indexes
  • Lock time vs query time
EXPLAIN

EXPLAIN FORMAT=JSON

Yürütme planı (FORMAT=JSON), her node'un cost'u, kullanılan index, tablo erişim türü (ALL, ref, range), filtered yüzdesi.

  • get_execution_plan
  • FORMAT=JSON parse
  • Type: ALL uyarısı
  • Filtered yüzdesi
Wait Events

Wait events

Performance Schema events_waits_summary üzerinden wait kategorileri, IO/lock/synch, top wait türleri.

  • get_wait_stats
  • get_diag_wait_events
  • get_active_waits
  • get_query_wait_stats
Live Monitor

Process list & live

SHOW PROCESSLIST + Performance Schema threads. Aktif sorgular, durum (Sending data, Locked, Waiting for table metadata lock).

  • get_diag_processlist
  • get_active_queries
  • get_live_query_monitor
  • State: Locked tespiti
Index

Index kullanımı

table_io_waits_summary_by_index_usage ile gerçek index kullanımı, hiç kullanılmamış index'ler, missing index önerileri.

  • get_diag_index_usage
  • get_missing_index_recommendations
  • Unused index tespiti
  • table_io_waits_summary

Buffer pool, redo log, encryption

Buffer Pool

InnoDB buffer pool

Innodb_buffer_pool_pages_data, free, dirty oranı, hit ratio (Innodb_buffer_pool_read_requests / Innodb_buffer_pool_reads). Pool dump/load durumu.

  • get_buffer_pool_detail
  • Hit ratio >= %99 hedef
  • Dirty page yüzdesi
  • Pool dump/load
Redo Log

Redo log durumu

innodb_log_file_size, log buffer kullanımı, log waits, checkpoint age. Redo log file count + dosya bazlı dağılım.

  • get_redo_log_status
  • Checkpoint age
  • Log waits sayısı
  • Log file utilization
Encryption

InnoDB encryption

Encryption-at-rest aktif tablespace'ler, master key ID, anahtar rotasyon tarihçesi, encrypted vs unencrypted tablespace dağılımı.

  • get_innodb_encryption
  • Encrypted tablespaces
  • Master key ID
  • Rotation history
InnoDB Status

SHOW ENGINE INNODB STATUS

Latest deadlock info, semaphore waits, transaction history list, log sequence number, pending I/O, OS-level latches.

  • get_diag_innodb_status
  • Latest deadlock
  • Semaphore waits
  • Pending I/O
Locks

InnoDB locks & blocking

data_locks, data_lock_waits üzerinden aktif kilitler ve bekleyenler. Blocking session zinciri.

  • get_diag_locks
  • get_blocking_sessions
  • data_locks (8.0+)
  • data_lock_waits
Table Sizes

Tablo boyutları

information_schema.tables üzerinden data_length + index_length, en büyük tablolar, fragmantasyon ipuçları.

  • get_diag_table_sizes
  • data_length + index_length
  • Top tablolar
  • Avg row length

Group replication, channels & binlog

Group Replication

MySQL Group Replication

replication_group_members ile grup üyeleri, role (PRIMARY/SECONDARY), member_state (ONLINE/RECOVERING/OFFLINE), conflict detection.

  • get_group_replication
  • Member state
  • Primary election
  • Conflict detection
Channels

Replication channels

Multi-source replication kanalları, IO_THREAD ve SQL_THREAD durumu, applier worker sayısı, last_error.

  • get_replication_channels
  • replication_connection_status
  • replication_applier_status
  • Channel error
Replica Lag

Replica lag & durum

Seconds_Behind_Source / Master, GTID set diff, position lag, Read_Master_Log_Pos vs Exec_Master_Log_Pos.

  • get_replication_status
  • Seconds behind master
  • GTID set diff
  • Position lag
Binlog

Binary log durumu

SHOW BINARY LOGS ile dosya listesi, toplam boyut, expire_logs_days kontrolü, format (ROW/STATEMENT/MIXED), checksum.

  • get_diag_binlog_status
  • Binlog file count + size
  • Expire policy
  • binlog_format

SSL, kullanıcı izinleri, audit log

Security Checks

Güvenlik denetimleri

Anonymous user kontrolleri, root remote login, default schema'lar (test), mysql_native_password vs caching_sha2_password kullanımı.

  • get_security_checks
  • Anonymous user
  • Root remote login
  • Auth plugin
SSL

SSL bağlantı durumu

SSL/TLS bağlantı aktif mi, cipher suite, sertifika expiry, REQUIRE SSL ayarı, kaç session SSL ile bağlı.

  • get_ssl_connection_status
  • have_ssl
  • ssl_cipher
  • SSL bağlı session sayısı
User Privileges

Kullanıcı izinleri

mysql.user + information_schema.user_privileges üzerinden GRANT haritası, SUPER / GRANT OPTION sahipleri, root benzeri hesaplar.

  • get_diag_user_privileges
  • get_logins_security
  • SUPER privilege
  • GRANT OPTION
Audit

Audit log

audit_log plugin (Enterprise) veya Community alternatifi MariaDB Audit Plugin kayıtları, son N olay incelemesi.

  • get_audit_logs(limit)
  • Plugin: audit_log
  • Connection events
  • Statement events

Global vars, status, events scheduler

Global variables

Tüm SHOW GLOBAL VARIABLES çıktısı, performance ayarları, replication yapılandırması.

  • get_diag_global_variables
  • InnoDB ayarları
  • Replication ayarları

Global status

SHOW GLOBAL STATUS counters: Threads_*, Innodb_*, Com_*, Handler_*, Slow_queries.

  • get_diag_global_status
  • Counters trend
  • Threads_connected

Events scheduler

information_schema.events üzerinden zamanlanmış olaylar, son çalışma zamanı, sonraki çalışma, status.

  • get_diag_events_scheduler
  • Last executed
  • Next execution

Health check

Sağlık skoru: uptime, connection limit, slow query oranı, replication lag, InnoDB log waits.

  • get_health_check
  • Uptime
  • Composite score

MySQL provider izleme metodları

Yetenek Açıklama Kaynak
Performance & Query
Top sorgularDigest bazlı TOP-Nevents_statements_summary_by_digest
Slow query loglong_query_time aşan sorgularslow_log table / file
EXPLAIN JSONPlan node + costEXPLAIN FORMAT=JSON
Wait eventsevents_waits_summaryperformance_schema
Process listAktif thread'lerSHOW PROCESSLIST + threads
Index usagetable_io_waits_summaryperformance_schema
InnoDB
Buffer poolHit ratio + dirty pagesinformation_schema.innodb_buffer_pool_stats
Redo logCheckpoint age + log waitsSHOW ENGINE INNODB STATUS
EncryptionEncrypted tablespacesinformation_schema.innodb_tablespaces
InnoDB statusDeadlocks, semaphoresSHOW ENGINE INNODB STATUS
Data locksAktif kilitler (8.0+)performance_schema.data_locks
Table sizesdata_length + index_lengthinformation_schema.tables
Replication
Group replicationGrup üyeleri + stateperformance_schema.replication_group_members
Replication channelsMulti-source kanal durumureplication_connection_status
Replica lagSeconds_Behind + GTID diffSHOW REPLICA STATUS
BinlogDosya listesi + formatSHOW BINARY LOGS
Security
SSL durumuhave_ssl + SSL session countSHOW GLOBAL VARIABLES / STATUS
User privilegesSUPER + GRANT OPTIONmysql.user
Anonymous userBoş username uyarısımysql.user
Audit logaudit_log pluginmysql.audit_log
Diagnostic & Config
Global variablesTüm GUC parametreleriSHOW GLOBAL VARIABLES
Global statusCountersSHOW GLOBAL STATUS
Events schedulerZamanlanmış olaylarinformation_schema.events
Health checkComposite score

MySQL ortamınızı InnoDB-derin izleyin

5.7'den 8.0'a, MariaDB'den Aurora'ya — tek lisansta tam kapsam.