PCP-HTOP(5) | File Formats | PCP-HTOP(5) |
pcp-htop - pcp-htop configuration file
pcp-htop is a customizable performance metrics reporting tool. It has a dynamic architecture, where a set of configuration files provide additional, optional meters and columns to extend the fixed set of display options provided by regular htop.
These configuration files can be provided from both system-wide locations (first /etc/pcp/htop then /usr/share/pcp/htop) and below the user's home directory (usually ~/.config/htop). Within these locations the meters and columns are scanned for dynamic Meter and Column specifications.
Meters are displayed in the top part of the pcp-htop window, and columns are displayed in the lower part. Meters tend to display system-wide metrics, and Columns display metrics about individual processes.
The formats are similar but have slightly different requirements. Both formats follow the common ini-style. Blank lines are ignored. Lines starting with the "#" character are treated as comments.
The following is an example configuration for a new Redis meter:
[redisclient] caption = Redis clients type = bar blocked.metric = redis.blocked_clients blocked.color = blue blocked.label = blk clients.metric = redis.connected_clients clients.color = green clients.label = conn
A configuration file can contain multiple meter definitions. Each definition begins with a identifying name enclosed by square brackets - redisclient in this example. The name is used internally within pcp-htop and must be unique, must begin with an alphabetic character, and may subsequently only contain alphanumeric characters or the underscore character. No whitespace or other characters are allowed.
There are several parameters that define the way the meter will be displayed to the user.
The remaining definition syntax describes the individual metric(s) which will be used to animate the meter. One or more metrics must be specified for each meter and there are several properties associated with each. Once again, these metrics must be named (the same rules described above for meters apply here) and the following properties can be configured:
The following is an example configuration for a new column showing open file descriptors for each process:
[openfds] heading = FDS caption = FDCOUNT description = Open file descriptors metric = proc.fd.count width = 3
A configuration file can contain multiple column definitions. Each definition begins with a identifying name enclosed by square brackets - openfds in this example, and the same rules apply as described above for meter names.
Each column must specify a metric. Optional parameters can also be set.
pcp-htop(1), pminfo(1), pmcd(1), pmdaproc(1), pmdabcc(1), pmdabpf(1) and pmRegisterDerived(3).
htop was originally developed by Hisham Muhammad. Nowadays it is maintained by the community at <htop@groups.io>.
pcp-htop is maintained as a collaboration between the <htop@groups.io> and <pcp@groups.io> communities, and forms part of the Performance Co-Pilot suite of tools.
2024 | Performance Co-Pilot |