Back to Yugabyte Db

YB-Master metrics

docs/content/v2025.1/launch-and-manage/monitor-and-alert/metrics/ybmaster.md

2026.1.0.0-b292.7 KB
Original Source

The YB-Master hosts system metadata, records about tables in the system and locations of their tablets, users, roles, permissions, and so on. YB-Masters are also responsible for coordinating background operations such as schema changes, handling addition and removal of nodes from the cluster, automatic re-replication of data on permanent failures, and so on.

All handler latency metrics include additional attributes. Refer to Throughput and latency.

The following are key metrics for evaluating YB-Master performance. All metrics are counters and units are microseconds.

Metric (Counter | microseconds)Description
handler_latency_yb_master_MasterClient_GetTabletLocationsTime spent on fetching the replicas from the master servers. This metric includes the number of times the locations of the replicas are fetched from the master server.
handler_latency_yb_tserver_TabletServerService_ReadTime to read the PostgreSQL system tables (during DDL). This metric includes the count or number of reads.
handler_latency_yb_tserver_TabletServerService_WriteTime to write the PostgreSQL system tables (during DDL). This metric includes the count or number of writes.
handler_latency_yb_master_MasterDdl_CreateTableTime to create a table (during DDL). This metric includes the count of create table operations.
handler_latency_yb_master_MasterDdl_DeleteTableTime to delete a table (during DDL). This metric includes the count of delete table operations.
<!-- | Metrics | Unit | Type | Description | | :------ | :--- | :--- | :---------- | | `handler_latency_yb_master_MasterClient_GetTabletLocations` | The number of microseconds spent on fetching the replicas from the master servers. This metric includes the number of times the locations of the replicas are fetched from the master server. | | `handler_latency_yb_tserver_TabletServerService_Read` | The time in microseconds to read the PostgreSQL system tables (during DDL). This metric includes the count or number of reads. | | `handler_latency_yb_tserver_TabletServerService_Write` | The time in microseconds to write the PostgreSQL system tables (during DDL). This metric includes the count or number of writes. | | `handler_latency_yb_master_MasterDdl_CreateTable` | The time in microseconds to create a table (during DDL). This metric includes the count of create table operations.| | `handler_latency_yb_master_MasterDdl_DeleteTable` | The time in microseconds to delete a table (during DDL). This metric includes the count of delete table operations.| -->

These metrics can be aggregated for nodes across the entire cluster using appropriate aggregations.