mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 12:36:56 +00:00
Per-table metrics are very valuable for the users, it does come with a high load on both the reporting and the collecting metrics systems. This patch adds a small subset of per-metrics table that will be reported on the node level. The list of metrics is: system_column_family_memtable_switch - Number of times flush has resulted in the memtable being switched out system_column_family_memtable_partition_writes - Number of write operations performed on partitions in memtables system_column_family_memtable_partition_hits - Number of times a write operation was issued on an existing partition in memtables system_column_family_memtable_row_writes - Number of row writes performed in memtables system_column_family_memtable_row_hits - Number of rows overwritten by write operations in memtables system_column_family_total_disk_space - Total disk space used system_column_family_live_sstable - Live sstable count system_column_family_read_latency_count - Number of reads system_column_family_write_latency_count - Number of writes The names of the read/write metrics is based on the histogram convention, so when latencies histograms will be added, the names will not change. The metrics are label with a specific label __per_table="node" so it will be possible to easily manipulate it. The metrics will be available when enable_metrics_reporting (the per-table full metrics flag) is off Fixes #2198 Closes #13293 * github.com:scylladb/scylladb: replica/table.cc: Add node-per-table metrics config: add enable_node_table_metrics flag