PCP-HTOP(5)
πΈ PCP-HTOP β the pcp-htop config file, bestie edition πΈ
okay so this is the manual page for pcp-htop(5), from the File Formats section of the manual. yes it's a config file page. no it's not boring. let's go π
β¨ NAME β¨
pcp-htop β the pcp-htop configuration file π
π DESCRIPTION π
pcp-htop is a customizable performance metrics reporting tool. it's got a whole dynamic architecture thing going on, where a bunch of configuration files hand over extra, optional meters and columns to stretch out the fixed set of display options that regular htop comes with. it's giving glow-up. β¨
these config files can come from system-wide locations β first /etc/pcp/htop, then /usr/share/pcp/htop β and also from below your home directory (usually ~/.config/htop). inside those locations, the meters and columns get scanned for dynamic Meter and Column specifications. yes bestie, it goes looking. π
Meters show up in the top part of the pcp-htop window, and columns live in the lower part. meters tend to display system-wide metrics, and columns display metrics about individual processes. that's the vibe split. π«Ά
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. periodt.
π₯ METERS π₯
here's an example config for a brand new Redis meter, look at her go:
[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, no cap. each definition begins with an identifying name enclosed by square brackets β redisclient in this example. the name is used internally within pcp-htop and it 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 allowed. we are not playing games with the naming rules. π
there are several parameters that define the way the meter will be displayed to the user:
captionβ this value is displayed on the Setup screen once the meter has been selected. a truncated version of the caption will also be displayed (followed by a colon) on the primary display while the meter is updating. πdescriptionβ this can be used to provide more detail during the meter selection process on the Setup screen, and if present it is displayed in the"Available Meters"column. if not present, thecaptionwill be used for this. if neither is present, the internal (mandatory) name will be used.typeβ this setting lets you specify a preferred default meter type. the associated value must be one ofbar,text,graph, orled. if no value is provided for a dynamic meter, the default value oftextwill be used. β¨maximumβ a numeric value can also be set to size the meter, such that values (e.g. for abartype meter display) will be scaled within range zero tomaximum.
the metric part, aka where the animation lives π¦
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, fr fr) and the following properties can be configured:
name.metricβ this is the only mandatory field and it associates a PCP metric with the meter. values sampled for each metric at runtime provide the animation visible in thepcp-htopdisplay. the metric specification can be either a PCP metric name as listed bypminfo(1)or a"derived"metric expression. the format for derived metric expressions is described on thepmRegisterDerived(3)manual page. πname.colorβ setting color to be used when rendering metric values. possible values arered,green,blue,cyan,magenta,yellow,gray,darkgrayorwhite. pick your aesthetic πname.labelβ an optional, short label to display before the metric value. the":"character will be appended to the label before the metric value part of the display.name.suffixβ an optional, short suffix to display after the metric value. commonly used to indicate values as a percentage using a"%"suffix value and to provide the base unit of measurement. note that since PCP maintains units for metrics, for those metrics that have dimension in"space"(bytes, kilobytes, megabytes, etc), a suffix will be automatically appended. so don't double up bestie, it's handled π«Ά
π COLUMNS π
here's an example config 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 an 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.
metricβ as with meters, the metric value must be either a PCP metric name as listed bypminfo(1)or a derived metric. the metric must have an instance domain (set of values) and that instance domain must map to the set of processes with the instance identifier being PIDs (process identifiers). typically this will be metrics from theprocorhotprocnamespace (pmdaproc(1)), but metrics from other domains (pmdabpf(1), etc) that have per-process values are equally applicable. equal opportunity metrics πwidthβ column width to use when displaying values for the metric. a negative value can be used to specify left alignment. an upper column limit of 28 characters is enforced. the default column width is 5 characters.headingβ the short title that will be displayed at the head of the column β usually a short, cryptic, all uppercase string.FDSenergy.captionβ a short identifying word presented to users on the Setup screen under both the Available and Active Columns lists.descriptionβ text that assists users to understand the meaning of this column when it is being presented via the Setup screen in the Available Columns list.
π SEE ALSO π
pcp-htop(1), pminfo(1), pmcd(1), pmdaproc(1), pmdabpf(1) and pmRegisterDerived(3). go read those too, they're the supporting cast π
π AUTHORS π
htop was originally developed by Hisham Muhammad. nowadays it is maintained by the community at <htop@groups.io>. iconic lineage honestly π
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. it's a whole crossover event β¨
and that's the whole page bestie π
this manual page comes to you from Performance Co-Pilot, dated 2026, and yes it's the PCP-HTOP(5) page in the File Formats section. slay, go configure something, and remember: every option, every rule, every default β kept exactly as it was. no cap. π«Ά
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-htop 7.2.1-1.fc43
- fedora 43: pcp-htop 7.2.2-1.fc43
- fedora 43: pcp-htop 7.2.2-2.fc43 Β· GPL-2.0-or-later
- fedora 44: pcp-htop 7.2.1-1.fc44
- fedora 44: pcp-htop 7.2.2-1.fc44
- fedora 44: pcp-htop 7.2.2-2.fc44 Β· GPL-2.0-or-later
- ubuntu resolute: pcp 7.1.1-1
- ubuntu stonking: pcp-htop 7.2.1-2build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms