PCP2XLSX(1)
π pcp2xlsx(1) β the pcp-to-xlsx metrics exporter π
okay bestie, so this is the manual page for pcp2xlsx, living in the General Commands Manual section, and it's literally your girl for getting PCP metrics out into XLSX. let's go π¦
β¨ NAME β¨
pcp2xlsx β pcp-to-xlsx metrics exporter
πΈ SYNOPSIS πΈ
pcp2xlsx [-5CGHILmrRvVz?] [-4 action] [-a archive] [-A align]
[--archive-folio folio] [-b|-B space-scale] [-c config] [--container
container] [--daemonize] [-e derived] [-f format] [-F outfile] [-h host]
[-i instances] [-K spec] [-O origin] [-P|-0 precision] [-q|-Q count-
scale] [-s samples] [-S starttime] [-t interval] [-T endtime] [-y|-Y
time-scale] [-Z timezone] metricspec [...]
π DESCRIPTION π
pcp2xlsx is a customizable performance metrics exporter tool from PCP to XLSX. Any available performance metric β live or archived, system and/or application β can be selected for exporting using either command line arguments or a configuration file. no cap. π
pcp2xlsx is a close relative of pmrep(1). so like, refer to pmrep(1) for the metricspec description accepted on the pcp2xlsx command line. and see pmrep.conf(5) for the description of the pcp2xlsx.conf configuration file syntax. π
this page right here describes the pcp2xlsx specific options and configuration file differences with pmrep.conf(5). and heads up β pmrep(1) also lists some usage examples, and most of those are applicable with pcp2xlsx as well. iconic of them fr fr β¨
β οΈ okay this part matters: Only the command line options listed on this page are supported, other options available for pmrep(1) are not supported. don't come for me, that's just the rules π
options via environment values (see pmGetOptions(3)) override the corresponding built-in default values (if any). configuration file options override the corresponding environment variables (if any). command line options override the corresponding configuration file options (if any). it's giving very much a hierarchy, and honestly? the way that command line always wins is main character energy. π«Ά
π CONFIGURATION FILE π
pcp2xlsx uses a configuration file with syntax described in pmrep.conf(5). the following options are common with pmrep.conf:
versionsourcespeclocalderivedheaderglobalssamplesintervaltypetype_preferignore_incompatnames_changeinstancesomit_flatinclude_labelsprecisionprecision_forcecount_scalecount_scale_forcespace_scalespace_scale_forcetime_scaletime_scale_force
the rest of the pmrep.conf options are recognized but ignored for compatibility. so they're just there vibing, not doing anything. π
π pcp2xlsx specific options π
None.
yeah that's it. literally none. the girl has no exclusive options of her own and we respect that π
β¨ OPTIONS β¨
okay bestie, the available command line options are:
-0 precision,--precision-force=precisionβ Like-P, but this one is the forceful icon: it will override per-metric specifications. π-4 action,--names-change=actionβ Specify which action to take on receiving a metric names change event during sampling. These events happen when a PMDA discovers new metrics sometime after starting up, and tells running client tools like pcp2xlsx. Valid values for action areupdate(refresh metrics being sampled),ignore(do nothing β the default behaviour) andabort(exit the program if such an event occurs).-5,--ignore-unknownβ Silently ignore any metric name that cannot be resolved. At least one metric must be found for the tool to start. Like, you can ghost some metrics, but not all of them, bestie.-a archive,--archive=archiveβ Performance metric values are retrieved from the set of Performance Co-Pilot (PCP) archive files identified by the archive argument, which is a comma-separated list of names, each of which may be the base name of an archive or the name of a directory containing one or more archives.-A align,--align=alignβ Force the initial sample to be aligned on the boundary of a natural time unit align. Refer toPCPIntro(1)for a complete description of the syntax for align.--archive-folio=folioβ Read metric source archives from the PCP archive folio created by tools likepmchart(1)or, less often, manually withmkaf(1).-b scale,--space-scale=scaleβ Unit/scale for space (byte) metrics, possible values includebytes,Kbytes,KB,Mbytes,MB, and so forth. This option will not override possible per-metric specifications. See alsopmParseUnitsStr(3).-B scale,--space-scale-force=scaleβ Like-bbut this option will override per-metric specifications.-c config,--config=configβ Specify the config file or directory to use. In case config is a directory all files in it ending.confwill be included. The default is the first found of:./pcp2xlsx.conf,$HOME/.pcp2xlsx.conf,$HOME/pcp/pcp2xlsx.conf, and$PCP_SYSCONF_DIR/pcp2xlsx.conf. For details, see the above section andpmrep.conf(5).--container=containerβ Fetch performance metrics from the specified container, either local or remote (see-h).-C,--checkβ Exit before reporting any values, but after parsing the configuration and metrics and printing possible headers. It's a vibe check for your setup.--daemonizeβ Daemonize on startup.-e derived,--derived=derivedβ Specify derived performance metrics. If derived starts with a slash (/) or with a dot (.), it will be interpreted as a PCP derived metrics configuration file; otherwise it will be interpreted as comma- or semicolon-separated derived metric expressions. For complete description of derived metrics and PCP derived metrics configuration files seepmLoadDerivedConfig(3)andpmRegisterDerived(3). Alternatively, usingpmrep.conf(5)configuration syntax allows defining derived metrics as part of metricsets. In case of issues with derived metrics, review the aforementioned manual pages in detail and ensure all the required metrics are available, especially when using archives. Use-Dderiveto see additional debug information about parsing derived metrics.-G,--no-globalsβ Do not include global metrics in reporting (seepmrep.conf(5)).-f format,--timestamp-format=formatβ Use the format string for formatting the timestamp. The format will be used with Python'sdatetime.strftimemethod which is mostly the same as that described instrftime(3). The default is%Y-%m-%d %H:%M:%S.-F outfile,--output-file=outfileβ Specify the output file outfile.-h host,--host=hostβ Fetch performance metrics frompmcd(1)on host, rather than from the defaultlocalhost.-H,--no-headerβ Do not print any headers.-i instances,--instances=instancesβ Retrieve and report only the specified metric instances from currently present metric instances. By default all current instances are reported. Refer topmrep(1)for complete description of this option.-I,--ignore-incompatβ Ignore incompatible metrics. By default incompatible metrics (that is, their type is unsupported or they cannot be scaled as requested) will cause pcp2xlsx to terminate with an error message. With this option all incompatible metrics are silently omitted from reporting. This may be especially useful when requesting non-leaf nodes of the PMNS tree for reporting.-K spec,--spec-local=specβ When fetching metrics from a local context (see-L), the-Koption may be used to control the DSO PMDAs that should be made accessible. The spec argument conforms to the syntax described inpmSpecLocalPMDA(3). More than one-Koption may be used.-L,--local-PMDAβ Use a local context to collect metrics from DSO PMDAs on the local host without PMCD. See also-K.-m,--include-labelsβ Include PCP metric labels in the output.-O origin,--origin=originβ When reporting archived metrics, start reporting at origin within the time window (see-Sand-T). Refer toPCPIntro(1)for a complete description of the syntax for origin.-P precision,--precision=precisionβ Use precision for numeric non-integer output values. The default is to use 3 decimal places (when applicable). This option will not override possible per-metric specifications.-q scale,--count-scale=scaleβ Unit/scale for count metrics, possible values includecount x 10^-1,count,count x 10,count x 10^2, and so forth from10^-8to10^7. (These values are currently space-sensitive.) This option will not override possible per-metric specifications. See alsopmParseUnitsStr(3).-Q scale,--count-scale-force=scaleβ Like-qbut this option will override per-metric specifications.-r,--rawβ Output raw metric values, do not convert cumulative counters to rates. This option will override possible per-metric specifications.-R,--raw-preferβ Like-rbut this option will not override per-metric specifications.-s samples,--samples=samplesβ The samples argument defines the number of samples to be retrieved and reported. If samples is0or-sis not specified, pcp2xlsx will sample and report continuously (in real time mode) or until the end of the set of PCP archives (in archive mode). See also-T.-S starttime,--start=starttimeβ When reporting archived metrics, the report will be restricted to those records logged at or after starttime. Refer toPCPIntro(1)for a complete description of the syntax for starttime.-t interval,--interval=intervalβ Set the reporting interval to something other than the default 1 second. The interval argument follows the syntax described inPCPIntro(1), and in the simplest form may be an unsigned integer (the implied units in this case are seconds). See also the-Toption.-T endtime,--finish=endtimeβ When reporting archived metrics, the report will be restricted to those records logged before or at endtime. Refer toPCPIntro(1)for a complete description of the syntax for endtime. When used to define the runtime before pcp2xlsx will exit, if no samples is given (see-s) then the number of reported samples depends on interval (see-t). If samples is given then interval will be adjusted to allow reporting of samples during runtime. In case all of-T,-s, and-tare given, endtime determines the actual time pcp2xlsx will run.-v,--omit-flatβ Report only set-valued metrics with instances (e.g.disk.dev.read) and omit single-valued "flat" metrics without instances (e.g.kernel.all.sysfork). See-iand-I.-V,--versionβ Display version number and exit.-y scale,--time-scale=scaleβ Unit/scale for time metrics, possible values includenanosec,ns,microsec,us,millisec,ms, and so forth up tohour,hr. This option will not override possible per-metric specifications. See alsopmParseUnitsStr(3).-Y scale,--time-scale-force=scaleβ Like-ybut this option will override per-metric specifications.-z,--hostzoneβ Use the local timezone of the host that is the source of the performance metrics, as identified by either the-hor the-aoptions. The default is to use the timezone of the local host.-Z timezone,--timezone=timezoneβ Use timezone for the date and time. Timezone is in the format of the environment variableTZas described inenviron(7). Note that when including a timezone string in output, ISO 8601 -style UTC offsets are used (so something like-Z EST+5will becomeUTC-5).-?,--helpβ Display usage message and exit.
π FILES π
pcp2xlsx.confβ pcp2xlsx configuration file (see-c).$PCP_SYSCONF_DIR/pmrep/*.confβ system provided default pmrep configuration files.
π PCP ENVIRONMENT π
Environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. On each installation, the file /etc/pcp.conf contains the local values for these variables. The $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5).
For environment variables affecting PCP tools, see pmGetOptions(3).
π SEE ALSO π
PCPIntro(1)mkaf(1)pcp(1)pcp2elasticsearch(1)pcp2graphite(1)pcp2influxdb(1)pcp2json(1)pcp2spark(1)pcp2xml(1)pcp2zabbix(1)pmcd(1)pminfo(1)pmrep(1)pmGetOptions(3)pmLoadDerivedConfig(3)pmParseUnitsStr(3)pmRegisterDerived(3)pmSpecLocalPMDA(3)LOGARCHIVE(5)pcp.conf(5)pmrep.conf(5)PMNS(5)environ(7)
okay that's the whole page, bestie. Source/version: Performance Co-Pilot / PCP. Page: PCP2XLSX(1). Date? The footer didn't hand us one, so it's giving timeless. πβ¨
π¦ 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
- debian trixie: pcp-export-pcp2xlsx 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-export-pcp2xlsx 6.3.8-1
- ubuntu resolute: pcp-export-pcp2xlsx 7.1.1-1
- Copyright (C) 2015-2021 Marko Myllynen <myllynen@redhat.com>
- Copyright (C) 2016-2018 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms