MySQL 8.4 參考手冊  /  ...  /  伺服器指標

35.4.3 伺服器指標

預設會註冊以下伺服器指標

可建立的最大指標工具數量由 performance_schema_max_metric_classes 設定。

mysql.stats 指標

表 35.3 mysql.stats 指標

名稱 來源變數 OTEL 類型 描述

aborted_clients

Aborted_clients

非同步計數器

因用戶端未正確關閉連線而中止的連線數

aborted_connects

Aborted_connects

非同步計數器

連線至 MySQL 伺服器失敗的嘗試次數

acl_cache_items_count

Acl_cache_items_count

非同步測量計數器

快取權限物件的數量

binlog_cache.disk_use

Binlog_cache_disk_use

非同步計數器

使用暫時二進位記錄快取但超出 binlog_cache_size 值,並使用暫存檔儲存交易中陳述式的交易數量

binlog_cache.use

Binlog_cache_use

非同步計數器

使用二進位記錄快取的交易數量。

binlog_stmt_cache_disk_use

Binlog_stmt_cache_disk_use

非同步計數器

使用二進位記錄陳述式快取但超出 binlog_stmt_cache_size 值,並使用暫存檔儲存這些陳述式的非交易陳述式數量。

binlog_stmt_cache_use

Binlog_stmt_cache_use

非同步計數器

使用二進位記錄陳述式快取的非交易陳述式數量

bytes_received

Bytes_received

非同步計數器

從所有用戶端接收的位元組數

bytes_sent

Bytes_sent

非同步計數器

傳送至所有用戶端的位元組數

created.tmp_disk_tables

Created_tmp_disk_tables

非同步計數器

伺服器在執行陳述式時建立的內部磁碟臨時資料表數量

created.tmp_files

Created_tmp_files

非同步計數器

mysqld 已建立的暫存檔數量

created.tmp_tables

Created_tmp_tables

非同步計數器

伺服器在執行陳述式時建立的內部臨時資料表數量

error_log.buffered_bytes

Error_log_buffered_bytes

非同步測量計數器

目前在 Performance Schema error_log 資料表中使用中的位元組數

error_log.buffered_events

Error_log_buffered_events

非同步測量計數器

目前在 Performance Schema error_log 資料表中存在的事件數量

error_log.expired_events

Error_log_expired_events

非同步計數器

為新事件騰出空間而從 Performance Schema error_log 資料表中捨棄的事件數量

flush_commands

Flush_commands

非同步計數器

伺服器刷新資料表的次數

global_connection_memory

Global_connection_memory

非同步測量計數器

所有使用者連線至伺服器所使用的記憶體

locked_connects

Locked_connects

非同步計數器

嘗試連線至鎖定的使用者帳戶的次數

max_execution_time_exceeded

Max_execution_time_exceeded

非同步計數器

執行逾時的 SELECT 陳述式數量

max_execution_time_set

Max_execution_time_set

非同步計數器

設定非零執行逾時的 SELECT 陳述式數量

max_execution_time_set_failed

Max_execution_time_set_failed

非同步計數器

嘗試設定執行逾時失敗的 SELECT 陳述式數量

max_used_connections

Max_used_connections

非同步測量計數器

自伺服器啟動以來同時使用中的最大連線數

ongoing_anonymous_transaction_count

Ongoing_anonymous_transaction_count

非同步測量計數器

顯示已標示為匿名且正在進行的交易數量

open_files

Open_files

非同步計數器

開啟的檔案數量。此計數包含伺服器開啟的常規檔案。

open_streams

Open_streams

非同步計數器

開啟的串流數量,主要用於記錄

open_table_definitions

Open_table_definitions

非同步測量計數器

快取的資料表定義數量

open_tables

Open_tables

非同步測量計數器

開啟的資料表數量。

opened_files

Opened_files

非同步計數器

已使用 my_open() 開啟的檔案數量。

opened_table_definitions

Opened_table_definitions

非同步測量計數器

已快取的資料表定義數量。

opened_tables

Opened_tables

非同步計數器

已開啟的資料表數量

prepared_stmt_count

Prepared_stmt_count

非同步測量計數器

目前預備陳述式的數量

queries

Queries

非同步計數器

伺服器執行的陳述式數量,包括在儲存程式內執行的陳述式。不計入 COM_PINGCOM_STATISTICS 命令。

questions

Questions

非同步計數器

伺服器執行的陳述式數量。這僅包含用戶端傳送至伺服器的陳述式,不包含在儲存程式內執行的陳述式。

replica_open_temp_tables

Replica_open_temp_tables

非同步測量計數器

複製 SQL 執行緒目前開啟的臨時資料表數量。

secondary_engine_execution_count

Secondary_engine_execution_count

非同步計數器

卸載至次要引擎的查詢數量

select_full_join

Select_full_join

非同步計數器

由於不使用索引而執行資料表掃描的聯結數量

select_full_range_join

Select_full_range_join

非同步計數器

在參考資料表上使用範圍搜尋的聯結數量

select_range

Select_range

非同步計數器

在第一個資料表上使用範圍的聯結數量

select_range_check

Select_range_check

非同步計數器

在每個資料列之後檢查索引鍵使用情況的不含索引鍵的聯結數量

select_scan

Select_scan

非同步計數器

對第一個資料表進行完整掃描的聯結數量

slow_launch_threads

Slow_launch_threads

非同步計數器

建立時間超過 slow_launch_time 秒的執行緒數量。

slow_queries

Slow_queries

非同步計數器

執行時間超過 long_query_time 秒的查詢數量

sort_merge_passes

Sort_merge_passes

非同步計數器

排序演算法必須執行的合併傳遞次數

sort_range

Sort_range

非同步計數器

使用範圍完成的排序數量

sort_rows

Sort_rows

非同步計數器

已排序的資料列數量。

sort_scan

Sort_scan

非同步計數器

透過掃描資料表完成的排序數量。

table_locks_immediate

Table_locks_immediate

非同步計數器

立即授予資料表鎖定請求的次數

table_locks_waited

Table_locks_waited

非同步計數器

無法立即授予資料表鎖定請求且需要等待的次數。

table_open_cache_hits

Table_open_cache_hits

非同步計數器

開啟資料表快取查詢的命中次數。

table_open_cache_misses

Table_open_cache_misses

非同步計數器

開啟資料表快取查詢的未命中次數。

table_open_cache_overflows

Table_open_cache_overflows

非同步計數器

開啟資料表快取的溢位次數。

tc_log_page_waits

Tc_log_page_waits

非同步計數器

對於記憶體對應的復原日誌實作,此變數會在伺服器無法提交交易且必須等待日誌中可用頁面時遞增。

threads_cached

Threads_cached

非同步測量計數器

執行緒快取中的執行緒數量。

threads_connected

Threads_connected

非同步測量計數器

目前開啟的連線數量

threads_created

Threads_created

非同步測量計數器

為了處理連線而建立的執行緒數量。

threads_running

Threads_running

非同步測量計數器

不在休眠狀態的執行緒數量。

uptime

Uptime

非同步計數器

伺服器已啟動的秒數。


mysql.stats.com 指標

mysql.stats.com 指標對應於 Com_xxx 陳述式計數器變數。請參閱第 7.1.10 節「伺服器狀態變數」Com_xxx以取得更多資訊。

mysql.stats.com 指標的名稱與這些變數相同,但不包含 Com_ 前綴。例如,select 指標對應於 Com_select 陳述式計數器變數。

這些指標的 OTEL 類型為 ASYNC COUNTER,並記錄對應命令陳述式已執行的次數 (INTEGER)。

mysql.stats.connection 指標

mysql.stats.connection 指標對應於 ConnectionsConnection_XXX 狀態變數。

表 35.4 mysql.stats.connection 指標

名稱 來源變數 OTEL 類型 描述

total

Connections

非同步計數器

已建立連線總數的累積計數。

errors_accept

Connection_errors_accept

非同步計數器

在監聽連接埠上呼叫 accept() 時發生的錯誤數量。

errors_internal

Connection_errors_internal

非同步計數器

由於伺服器內部錯誤而拒絕的連線數量,例如無法啟動新執行緒或記憶體不足的情況。

errors_max_connections

Connection_errors_max_connections

非同步計數器

由於達到伺服器 max_connections 限制而拒絕的連線數量。

errors_peer_address

Connection_errors_peer_address

非同步計數器

在搜尋連線用戶端 IP 位址時發生的錯誤數量。

errors_select

Connection_errors_select

非同步計數器

在監聽連接埠上呼叫 select() 或 poll() 時發生的錯誤數量。

errors_tcpwrap

Connection_errors_tcpwrap

非同步計數器

libwrap 程式庫拒絕的連線數量。


mysql.perf_schema 指標

mysql.perf_schema 對應於 Performance_schema_XXX 狀態變數。請參閱第 29.7 節「效能架構狀態監控」

表 35.5 mysql.perf_schema 指標

名稱 來源變數 OTEL 類型 描述

accounts_lost

Performance_schema_accounts_lost

非同步計數器

由於帳戶表格已滿而無法新增列的次數。

cond_classes_lost

Performance_schema_cond_classes_lost

非同步計數器

有多少個條件儀器無法載入。

cond_instances_lost

Performance_schema_cond_instances_lost

非同步計數器

有多少個條件儀器執行個體無法建立。

digest_lost

Performance_schema_digest_lost

非同步計數器

events_statements_summary_by_digest 表格中,無法檢測的摘要執行個體數量。

file_classes_lost

Performance_schema_file_classes_lost

非同步計數器

有多少個檔案儀器無法載入。

file_handles_lost

Performance_schema_file_handles_lost

非同步計數器

有多少個檔案儀器執行個體無法開啟。

file_instances_lost

Performance_schema_file_instances_lost

非同步計數器

有多少個檔案儀器執行個體無法建立。

hosts_lost

Performance_schema_hosts_lost

非同步計數器

由於主機表格已滿而無法新增列的次數。

index_stat_lost

Performance_schema_index_stat_lost

非同步計數器

遺失統計資料的索引數量。

locker_lost

Performance_schema_locker_lost

非同步計數器

遺失或未記錄的事件數量。

memory_classes_lost

Performance_schema_memory_classes_lost

非同步計數器

無法載入記憶體儀器的次數。

metadata_lock_lost

Performance_schema_metadata_lock_lost

非同步計數器

metadata_locks 表格中無法檢測的中繼資料鎖定數量。

meter_lost

Performance_schema_meter_lost

非同步計數器

有多少個量測儀器無法載入。

metric_lost

Performance_schema_metric_lost

非同步計數器

有多少個度量儀器無法載入。

mutex_classes_lost

Performance_schema_mutex_classes_lost

非同步計數器

有多少個互斥鎖儀器無法載入。

mutex_instances_lost

Performance_schema_mutex_instances_lost

非同步計數器

有多少個互斥鎖儀器執行個體無法建立。

nested_statement_lost

Performance_schema_nested_statement_lost

非同步計數器

遺失統計資料的預存程式陳述式數量。

prepared_statements_lost

Performance_schema_prepared_statements_lost

非同步計數器

prepared_statements_instances 表格中無法檢測的預備陳述式數量。

program_lost

Performance_schema_program_lost

非同步計數器

遺失統計資料的預存程式數量。

rwlock_classes_lost

Performance_schema_rwlock_classes_lost

非同步計數器

有多少個讀寫鎖儀器無法載入。

rwlock_instances_lost

Performance_schema_rwlock_instances_lost

非同步計數器

有多少個讀寫鎖儀器執行個體無法建立。

session_connect_attrs_longest_seen

Performance_schema_session_connect_attrs_longest_seen

非同步計數器

收到的最長連線屬性。

session_connect_attrs_lost

Performance_schema_session_connect_attrs_lost

非同步計數器

發生連線屬性截斷的連線數量

socket_classes_lost

Performance_schema_socket_classes_lost

非同步計數器

有多少個通訊端儀器無法載入。

socket_instances_lost

Performance_schema_socket_instances_lost

非同步計數器

有多少個通訊端儀器執行個體無法建立。

stage_classes_lost

Performance_schema_stage_classes_lost

非同步計數器

有多少個階段儀器無法載入。

statement_classes_lost

Performance_schema_statement_classes_lost

非同步計數器

有多少個陳述式儀器無法載入。

table_handles_lost

Performance_schema_table_handles_lost

非同步計數器

有多少個表格儀器執行個體無法開啟。

table_instances_lost

Performance_schema_table_instances_lost

非同步計數器

有多少個表格儀器執行個體無法建立。

table_lock_stat_lost

Performance_schema_table_lock_stat_lost

非同步計數器

遺失鎖定統計資料的表格數量。

thread_classes_lost

Performance_schema_thread_classes_lost

非同步計數器

有多少個執行緒儀器無法載入。

thread_instances_lost

Performance_schema_thread_instances_lost

非同步計數器

threads 表格中無法檢測的執行緒執行個體數量。

users_lost

Performance_schema_users_lost

非同步計數器

由於 users 表格已滿而無法新增列的次數。


mysql.stats.handler 指標

mysql.stats.handler 指標對應於 Handler_XXX 狀態變數。

表 35.6 mysql.perf_schema 指標

名稱 來源變數 OTEL 類型 描述

commit

Handler_commit

非同步計數器

內部 COMMIT 陳述式的數量。

delete

Handler_delete

非同步計數器

從表格中刪除列的次數

discover

Handler_discover

非同步計數器

探索表格的次數。

external_lock

Handler_external_lock

非同步計數器

伺服器會針對每次呼叫其 external_lock() 函式遞增此變數,這通常發生在存取表格執行個體的開始和結束時。

mrr_init

Handler_mrr_init

非同步計數器

伺服器使用儲存引擎自己的多範圍讀取實作進行表格存取的次數。

prepare

Handler_prepare

非同步計數器

二階段提交作業準備階段的計數器。

read_first

Handler_read_first

非同步計數器

讀取索引中第一個項目的次數。

read_key

Handler_read_key

非同步計數器

根據索引鍵讀取列的請求次數。

read_last

Handler_read_last

非同步計數器

讀取索引中最後一個索引鍵的請求次數。

read_next

Handler_read_next

非同步計數器

讀取索引鍵順序中下一列的請求次數。

read_prev

Handler_read_prev

非同步計數器

讀取索引鍵順序中上一列的請求次數。

read_rnd

Handler_read_rnd

非同步計數器

根據固定位置讀取列的請求次數。

read_rnd_next

Handler_read_rnd_next

非同步計數器

讀取資料檔案中下一列的請求次數。

rollback

Handler_rollback

非同步計數器

儲存引擎執行復原作業的請求次數。

savepoint

Handler_savepoint

非同步計數器

儲存引擎放置儲存點的請求次數。

savepoint_rollback

Handler_savepoint_rollback

非同步計數器

儲存引擎復原至儲存點的請求次數。

update

Handler_update

非同步計數器

更新表格中列的請求次數。

write

Handler_write

非同步計數器

在表格中插入列的請求次數。


mysql.stats.myisam 指標

表 35.7 mysql.perf_schema 指標

名稱 來源變數 OTEL 類型 描述

key_blocks_not_flushed

Key_blocks_not_flushed

非同步計數器

MyISAM 金鑰快取中已變更但尚未刷新到磁碟的索引鍵區塊數量。

key_blocks_unused

Key_blocks_unused

非同步計數器

MyISAM 金鑰快取中未使用的區塊數量。

key_blocks_used

Key_blocks_used

非同步計數器

MyISAM 金鑰快取中已使用的區塊數量。

key_read_requests

Key_read_requests

非同步計數器

從 MyISAM 金鑰快取讀取索引鍵區塊的請求數量。

key_reads

Key_reads

非同步計數器

從磁碟實際讀取索引鍵區塊到 MyISAM 金鑰快取的次數。

key_write_requests

Key_write_requests

非同步計數器

將索引鍵區塊寫入 MyISAM 金鑰快取的請求數量。

key_writes

Key_writes

非同步計數器

從 MyISAM 金鑰快取實際寫入索引鍵區塊到磁碟的次數。


mysql.stats.ssl 指標

表 35.8 mysql.stats.ssl 指標

名稱 來源變數 OTEL 類型 描述

client_connects

Ssl_client_connects

非同步計數器

嘗試連線到啟用 SSL 的複寫來源伺服器的 SSL 連線次數。

connect_renegotiates

Ssl_connect_renegotiates

非同步計數器

建立與啟用 SSL 的複寫來源伺服器的連線所需的交涉次數。

finished_accepts

Ssl_finished_accepts

非同步計數器

成功連線到伺服器的 SSL 連線次數。

finished_connects

Ssl_finished_connects

非同步計數器

成功連線到啟用 SSL 的複寫來源伺服器的複本連線次數。

session_cache_hits

Ssl_session_cache_hits

非同步計數器

SSL 會話快取命中的次數。

session_cache_misses

Ssl_session_cache_misses

非同步計數器

SSL 會話快取未命中的次數。

session_cache_overflows

Ssl_session_cache_overflows

非同步計數器

SSL 會話快取溢位的次數。

session_cache_size

Ssl_session_cache_size

非同步計數器

SSL 會話快取大小。

session_cache_timeouts

Ssl_session_cache_timeouts

非同步計數器

SSL 會話快取逾時的次數。

used_session_cache_entries

Ssl_used_session_cache_entries

非同步計數器

已使用的 SSL 會話快取項目數量。

accept_renegotiates

Ssl_accept_renegotiates

非同步計數器

建立連線所需的交涉次數。

accepts

Ssl_accepts

非同步計數器

已接受的 SSL 連線次數。

callback_cache_hits

Ssl_callback_cache_hits

非同步計數器

回呼快取命中的次數。


mysql.inno 指標

表 35.9 mysql.inno 指標

名稱 來源變數 OTEL 類型 描述

dblwr_pages_written

Innodb_dblwr_pages_written

非同步計數器

已寫入以進行雙寫操作的頁面數量

dblwr_writes

Innodb_dblwr_writes

非同步計數器

已執行的雙寫操作次數

redo_log_logical_size

Innodb_redo_log_logical_size

非同步測量計數器

包含正在使用中的重做日誌資料的 LSN 範圍大小 (以位元組為單位)。

redo_log_physical_size

Innodb_redo_log_physical_size

非同步測量計數器

磁碟上所有重做日誌檔案目前所佔用的磁碟空間 (以位元組為單位),不包含備用重做日誌檔案

redo_log_capacity_resized

Innodb_redo_log_capacity_resized

非同步測量計數器

上次完成的容量調整作業之後,所有重做日誌檔案的重做日誌容量 (以位元組為單位)

log_waits

Innodb_log_waits

非同步計數器

因日誌緩衝區太小而導致的日誌等待次數

log_write_requests

Innodb_log_write_requests

非同步計數器

日誌寫入請求的次數

log_writes

Innodb_log_writes

非同步計數器

實際寫入 InnoDB 重做日誌檔案的次數

os_log_fsyncs

Innodb_os_log_fsyncs

非同步計數器

fsync 日誌寫入次數。

os_log_pending_fsyncs

Innodb_os_log_pending_fsyncs

非同步測量計數器

待處理的 fsync 寫入次數。

os_log_pending_writes

Innodb_os_log_pending_writes

非同步測量計數器

待處理的日誌檔案寫入次數。

os_log_written

Innodb_os_log_written

非同步計數器

已寫入的日誌位元組數。

page_size

Innodb_page_size

非同步測量計數器

InnoDB 頁面大小 (以位元組為單位)。

pages_created

Innodb_pages_created

非同步計數器

建立的頁面數量

pages_read

Innodb_pages_read

非同步計數器

讀取的頁面數量。

pages_written

Innodb_pages_written

非同步計數器

寫入的頁面數量。

row_lock_current_waits

Innodb_row_lock_current_waits

非同步測量計數器

目前正在等待的資料列鎖定次數。

row_lock_time

Innodb_row_lock_time

非同步計數器

取得資料列鎖定所花費的時間 (以毫秒為單位)

row_lock_time_avg

Innodb_row_lock_time_avg

非同步測量計數器

取得資料列鎖定的平均時間 (以毫秒為單位)

row_lock_time_max

Innodb_row_lock_time_max

非同步測量計數器

取得資料列鎖定的最長時間 (以毫秒為單位)。

row_lock_waits

Innodb_row_lock_waits

非同步計數器

必須等待資料列鎖定的次數。

rows_deleted

Innodb_rows_deleted

非同步計數器

插入到 InnoDB 表格中的資料列數量。

rows_read

Innodb_rows_read

非同步計數器

從 InnoDB 表格讀取的資料列數量

rows_updated

Innodb_rows_updated

非同步計數器

在 InnoDB 表格中更新的資料列數量。

system_rows_deleted

Innodb_system_rows_deleted

非同步計數器

從屬於系統建立的綱要的 InnoDB 表格刪除的資料列數量。

system_rows_inserted

Innodb_system_rows_inserted

非同步計數器

插入到屬於系統建立的綱要的 InnoDB 表格中的資料列數量

system_rows_read

Innodb_system_rows_read

非同步計數器

從屬於系統建立的綱要的 InnoDB 表格讀取的資料列數量。

system_rows_updated

Innodb_system_rows_updated

非同步計數器

在屬於系統建立的綱要的 InnoDB 表格中更新的資料列數量。

num_open_files

Innodb_num_open_files

非同步測量計數器

目前開啟的檔案數量。

truncated_status_writes

Innodb_truncated_status_writes

非同步計數器

SHOW ENGINE INNODB STATUS 陳述式輸出遭到截斷的次數。

undo_tablespaces_total

Innodb_undo_tablespaces_total

非同步測量計數器

復原表格空間的總數。

undo_tablespaces_explicit

Innodb_undo_tablespaces_explicit

非同步測量計數器

使用者建立的復原表格空間數量。

undo_tablespaces_active

Innodb_undo_tablespaces_active

非同步測量計數器

作用中的復原表格空間數量,包括隱含和明確的表格空間


mysql.inno.buffer_pool 指標

表 35.10 mysql.inno.buffer_pool 指標

名稱 來源變數 OTEL 類型 描述

pages_data

Innodb_buffer_pool_pages_data

非同步測量計數器

包含資料的緩衝頁面。

bytes_data

Innodb_buffer_pool_bytes_data

非同步測量計數器

包含資料的緩衝位元組數。

pages_dirty

Innodb_buffer_pool_pages_dirty

非同步測量計數器

目前已變更的緩衝頁面。

bytes_dirty

Innodb_buffer_pool_bytes_dirty

非同步測量計數器

目前已變更的緩衝位元組數

pages_flushed

Innodb_buffer_pool_pages_flushed

非同步計數器

從 InnoDB 緩衝集區刷新頁面的請求次數。

pages_free

Innodb_buffer_pool_pages_free

非同步測量計數器

目前可用的緩衝頁面。

pages_misc

Innodb_buffer_pool_pages_misc

非同步測量計數器

用於其他用途的緩衝頁面,例如資料列鎖定或適應性雜湊索引。

pages_total

Innodb_buffer_pool_pages_total

非同步測量計數器

緩衝集區的總大小 (以頁面為單位)。

read_ahead_rnd

Innodb_buffer_pool_read_ahead_rnd

非同步計數器

InnoDB 啟動的「隨機」預讀次數。

read_ahead

Innodb_buffer_pool_read_ahead

非同步計數器

以預讀方式讀取的頁面數量。

read_ahead_evicted

Innodb_buffer_pool_read_ahead_evicted

非同步計數器

未經存取即遭逐出的預讀頁面。

read_requests

Innodb_buffer_pool_read_requests

非同步計數器

邏輯讀取請求次數。

reads

Innodb_buffer_pool_reads

非同步計數器

直接從磁碟讀取的次數。

wait_free

Innodb_buffer_pool_wait_free

非同步計數器

等待可用緩衝區的次數。

write_requests

Innodb_buffer_pool_write_requests

非同步計數器

寫入請求次數。


mysql.inno.data 指標

表 35.11 mysql.inno.data 指標

名稱 來源變數 OTEL 類型 描述

fsyncs

Innodb_data_fsyncs

非同步計數器

fsync() 呼叫次數。

pending_fsyncs

Innodb_data_pending_fsyncs

非同步測量計數器

待處理的 fsync 操作次數。

pending_reads

Innodb_data_pending_reads

非同步測量計數器

目前待處理的讀取次數

pending_writes

Innodb_data_pending_writes

非同步測量計數器

目前待處理的寫入次數。

read

Innodb_data_read

非同步計數器

讀取的資料量 (以位元組為單位)。

reads

Innodb_data_reads

非同步計數器

啟動的讀取次數。

writes

Innodb_data_writes

非同步計數器

啟動的寫入次數。

written

Innodb_data_written

非同步計數器

寫入的資料量 (以位元組為單位)。


mysql.x 指標

表 35.12 mysql.x 指標

名稱 來源變數 OTEL 類型 描述

aborted_clients

Mysqlx_aborted_clients

非同步計數器

因輸入或輸出錯誤而斷線的用戶端數量。

bytes_received

Mysqlx_bytes_received

非同步計數器

透過網路接收的總位元組數,在解壓縮之前測量。

bytes_received_compressed_payload

Mysqlx_bytes_received_compressed_payload

非同步計數器

以壓縮訊息承載接收的位元組數,在解壓縮之前測量。

bytes_received_uncompressed_frame

Mysqlx_bytes_received_uncompressed_frame

非同步計數器

以壓縮訊息承載接收的位元組數,在解壓縮之後測量。

bytes_sent

Mysqlx_bytes_sent

非同步計數器

透過網路傳送的總位元組數。

bytes_sent_compressed_payload

Mysqlx_bytes_sent_compressed_payload

非同步計數器

以壓縮訊息承載傳送的位元組數,在壓縮之後測量。

bytes_sent_uncompressed_frame

Mysqlx_bytes_sent_uncompressed_frame

非同步計數器

以壓縮訊息承載傳送的位元組數,在壓縮之前測量。

connection_accept_errors

Mysqlx_connection_accept_errors

非同步計數器

導致接受錯誤的連線次數。

connection_errors

Mysqlx_connection_errors

非同步計數器

導致錯誤的連線次數。

connections_accepted

Mysqlx_connections_accepted

非同步計數器

已接受的連線次數。

connections_closed

Mysqlx_connections_closed

非同步計數器

已關閉的連線次數。

connections_rejected

Mysqlx_connections_rejected

非同步計數器

已拒絕的連線次數。

crud_create_view

Mysqlx_crud_create_view

非同步計數器

收到的建立檢視請求次數。

crud_delete

Mysqlx_crud_delete

非同步計數器

收到的刪除請求次數。

crud_drop_view

Mysqlx_crud_drop_view

非同步計數器

收到的刪除檢視請求次數。

crud_find

Mysqlx_crud_find

非同步計數器

收到的尋找請求次數。

crud_insert

Mysqlx_crud_insert

非同步計數器

收到的插入請求次數。

crud_modify_view

Mysqlx_crud_modify_view

非同步計數器

收到的修改檢視請求次數。

crud_update

Mysqlx_crud_update

非同步計數器

收到的更新請求次數。

cursor_close

Mysqlx_cursor_close

非同步計數器

收到的游標關閉訊息次數。

cursor_fetch

Mysqlx_cursor_fetch

非同步計數器

收到的游標擷取訊息次數。

cursor_open

Mysqlx_cursor_open

非同步計數器

收到的游標開啟訊息次數。

errors_sent

Mysqlx_errors_sent

非同步計數器

傳送至用戶端的錯誤次數。

errors_unknown_message_type

Mysqlx_errors_unknown_message_type

非同步計數器

已接收到的未知訊息類型數量。

expect_close

Mysqlx_expect_close

非同步計數器

已關閉的期望區塊數量。

expect_open

Mysqlx_expect_open

非同步計數器

已開啟的期望區塊數量。

init_error

Mysqlx_init_error

非同步計數器

初始化期間發生的錯誤數量。

messages_sent

Mysqlx_messages_sent

非同步計數器

已傳送至用戶端的所有訊息類型總數。

notice_global_sent

Mysqlx_notice_global_sent

非同步計數器

已傳送至用戶端的全域通知數量。

notice_other_sent

Mysqlx_notice_other_sent

非同步計數器

已傳送回用戶端的其他類型通知數量。

notice_warning_sent

Mysqlx_notice_warning_sent

非同步計數器

已傳送回用戶端的警告通知數量。

notified_by_group_replication

Mysqlx_notified_by_group_replication

非同步計數器

傳送至用戶端的群組複製通知數量。

prep_deallocate

Mysqlx_prep_deallocate

非同步計數器

已接收到的預備語句取消配置訊息數量。

prep_execute

Mysqlx_prep_execute

非同步計數器

已接收到的預備語句執行訊息數量。

prep_prepare

Mysqlx_prep_prepare

非同步計數器

已接收到的預備語句訊息數量。

rows_sent

Mysqlx_rows_sent

非同步計數器

已傳送回用戶端的資料列數量。

sessions

Mysqlx_sessions

非同步計數器

已開啟的連線數量。

sessions_accepted

Mysqlx_sessions_accepted

非同步計數器

已接受的連線嘗試次數。

sessions_closed

Mysqlx_sessions_closed

非同步計數器

已關閉的連線數量。

sessions_fatal_error

Mysqlx_sessions_fatal_error

非同步計數器

因嚴重錯誤而關閉的連線數量。

sessions_killed

Mysqlx_sessions_killed

非同步計數器

已被終止的連線數量。

sessions_rejected

Mysqlx_sessions_rejected

非同步計數器

已被拒絕的連線嘗試次數。

ssl_accepts

Mysqlx_ssl_accepts

非同步計數器

已接受的 SSL 連線次數。

ssl_finished_accepts

Mysqlx_ssl_finished_accepts

非同步測量計數器

成功連線到伺服器的 SSL 連線次數。

worker_threads

Mysqlx_worker_threads

非同步測量計數器

可用的工作執行緒數量。

worker_threads_active

Mysqlx_worker_threads_active

非同步計數器

目前正在使用的工作執行緒數量。


mysql.x.stmt 指標

表 35.13 mysql.x.stmt 指標

名稱 來源變數 OTEL 類型 描述

create_collection

Mysqlx_stmt_create_collection

非同步計數器

已接收到的建立集合語句數量。

create_collection_index

Mysqlx_stmt_create_collection_index

非同步計數器

已接收到的建立集合索引語句數量。

disable_notices

Mysqlx_stmt_disable_notices

非同步計數器

已接收到的停用通知語句數量。

drop_collection

Mysqlx_stmt_drop_collection

非同步計數器

已接收到的刪除集合語句數量。

drop_collection_index

Mysqlx_stmt_drop_collection_index

非同步計數器

已接收到的刪除集合索引語句數量。

enable_notices

Mysqlx_stmt_enable_notices

非同步計數器

已接收到的啟用通知語句數量。

ensure_collection

Mysqlx_stmt_ensure_collection

非同步計數器

已接收到的確保集合語句數量。

execute_mysqlx

Mysqlx_stmt_execute_mysqlx

非同步計數器

接收到的 StmtExecute 訊息中,命名空間設定為 mysqlx 的數量。

execute_sql

Mysqlx_stmt_execute_sql

非同步計數器

已接收到的 SQL 命名空間的 StmtExecute 請求數量。

get_collection_options

Mysqlx_stmt_get_collection_options

非同步計數器

已接收到的取得集合物件語句數量。

kill_client

Mysqlx_stmt_kill_client

非同步計數器

已接收到的終止用戶端語句數量。

list_clients

Mysqlx_stmt_list_clients

非同步計數器

已接收到的列出用戶端語句數量。

list_notices

Mysqlx_stmt_list_notices

非同步計數器

已接收到的列出通知語句數量。

list_objects

Mysqlx_stmt_list_objects

非同步計數器

已接收到的列出物件語句數量。

modify_collection_options

Mysqlx_stmt_modify_collection_options

非同步計數器

已接收到的修改集合選項語句數量。

ping

Mysqlx_stmt_ping

非同步計數器

已接收到的 ping 語句數量。