LABELS.CONF(5)
π LABELS.CONF π
okay bestie, so this is the manual for labels.conf β it's part of the File Formats Manual fam, and it's literally just called labels.conf (Performance Co-Pilot labels configuration, if we're being formal). it's the lil config file that tells PCP how to do its labels thing. let's get into it π
β¨ SYNOPSIS β¨
/etc/pcp/labels.conf
that's it. one file. one vibe. she's lowkey iconic for that π¦
πΈ DESCRIPTION πΈ
so, a bunch of Performance Co-Pilot (PCP) tools and utilities are out here supporting metric labels. what that means is: this functionality applied a hierarchical set of labels to each instance of every metric β and it's all described over in pmLookupLabels(3) if you wanna go deeper, which you should, no cap π
now, the pmcd(1) and pmproxy(1) daemons? they are main character energy in the labels system. like, genuinely crucial. pmcd(1) is the one serving up the labels in real-time, and pmproxy(1) is the one discovering recorded (archive) labels and indexing all of that so pmseries(1) queries can go off β using a distributed key-value service like https://valkey.io/ β¨
and the /etc/pcp/labels.conf file? she is the single point of configuration for behaviour affecting all labels exported by pmcd or through tools using PMAPI local context services. it uses the common "ini" file format, and here's the tea: any variable it specifies that is not sitting inside an explicit square-bracket enclosed section gets treated as a [global] variable. so if you're being lazy with your sections, congrats, it's global now π
the available configuration variables are as follows :
machineid_hash=none|sha256β when you put this in the[global]section, it controls the manner in which the localmachine-id(5)is exported as a label. the default setting (none) exports a"machineid"context label, and its value reflects the contents of the/etc/machine-idfile β on any platforms that provide this file. the alternative (sha256) exports a"machineid_sha256"label instead, and the value is the SHA256 (one-way) hash of the file. so like, either you're showing the whole thing or you're showing the glow-up version π₯
ngl the one-way hash one is giving privacy-conscious queen. pick your fighter π
π«Ά SEE ALSO π«Ά
pmcd(1), pmproxy(1), pmseries(1), PMAPI(3), pmLookupLabels(3) and machine-id(5).
go read 'em, bestie, they're all in the group chat π
mwah, that's the whole page. this one's brought to you by Performance Co-Pilot β PCP β and it's the LABELS.CONF(5) girlie herself. go configure something cute πβ¨π
π¦ 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
- centos-stream 9: pcp-doc 6.3.7-14.el9 Β· GPL-2.0-or-later AND CC-BY-3.0
- debian trixie: pcp 6.3.8-1
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.1.0-6.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu questing: pcp 6.3.8-1
- ubuntu resolute: pcp 7.1.1-1
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2020 Red Hat. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms