mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-26 07:45:45 +00:00
01f5b89278
Several improvements to the way values are displayed in the PCP platform DynamicMeter implementation: - handle the initial 'caption' setting as with regular meters, this required a new meter callback because we no longer have just a single meter caption for the DynamicMeter case - if no label is provided for a metric in a configuration file use the short form metric name as a fallback - honour the suffix setting in the configuration file - convert metric values to the canonical units for htop (kbyte and seconds), and use Meter_humanUnit when it makes sense to do so. Also improves the handling of fatal string error messages in a couple of places, thanks to BenBE for the review feedback.
72 lines
1.8 KiB
Plaintext
72 lines
1.8 KiB
Plaintext
#
|
|
# pcp-htop(1) configuration file - see pcp-htop(5)
|
|
#
|
|
|
|
[mysql_io]
|
|
caption = MySQL I/O
|
|
recv.metric = mysql.status.bytes_received
|
|
recv.color = green
|
|
sent.metric = mysql.status.bytes_sent
|
|
sent.color = blue
|
|
|
|
[mysql_keys]
|
|
caption = MySQL keys
|
|
description = MySQL key status
|
|
key_blocks_used.metric = mysql.status.key_blocks_used
|
|
key_blocks_used.label = color
|
|
key_blocks_used.label = used
|
|
key_reads.metric = mysql.status.key_reads
|
|
key_reads.label = read
|
|
key_reads.color = green
|
|
key_writes.metric = mysql.status.key_writes
|
|
key_writes.label = writ
|
|
key_writes.color = blue
|
|
key_read_requests.metric = mysql.status.key_read_requests
|
|
key_read_requests.label = rreq
|
|
key_read_requests.color = green
|
|
key_write_requests.metric = mysql.status.key_write_requests
|
|
key_write_requests.label = wreq
|
|
key_write_requests.color = blue
|
|
|
|
[innodb_buffer]
|
|
caption = InnoDB pool
|
|
description = InnoDB buffer pool
|
|
created.metric = mysql.status.innodb_pages_created
|
|
created.label = cr
|
|
created.color = yellow
|
|
read.metric = mysql.status.innodb_pages_read
|
|
read.label = rd
|
|
read.color = greed
|
|
written.metric = mysql.status.innodb_pages_written
|
|
written.label = wr
|
|
written.color = red
|
|
|
|
[innodb_io]
|
|
caption = InnoDB I/O
|
|
description = InnoDB I/O operations
|
|
read.metric = mysql.status.innodb_data_read
|
|
read.label = rd
|
|
read.color = green
|
|
written.metric = mysql.status.innodb_data.writes
|
|
written.label = wr
|
|
written.color = blue
|
|
sync.metric = mysql.status.innodb_data_fsyncs
|
|
sync.label = sync
|
|
sync.color = cyan
|
|
|
|
[innodb_ops]
|
|
caption = InnoDB ops
|
|
description = InnoDB operations
|
|
inserted.metric = mysql.status.innodb_rows_inserted
|
|
inserted.label = ins
|
|
inserted.color = blue
|
|
updated.metric = mysql.status.innodb_rows_updated
|
|
updated.label = upd
|
|
updated.color = cyan
|
|
deleted.metric = mysql.status.innodb_rows_deleted
|
|
deleted.label = del
|
|
deleted.color = red
|
|
read.metric = mysql.status.innodb_rows_read
|
|
read.label = rd
|
|
read.color = green
|