PMSERIES_IMPORT(1)
β¨ PMSERIES_IMPORT β¨
okay so bestie, welcome to pmseries_import(1) β that's section 1 of the General Commands Manual, so you know it's a real one π
πΈ NAME πΈ
pmseries_import β import PCP archive files so you can do historical time series querying later π¦
π SYNOPSIS π
$PCP_BINADM_DIR/pmseries_import [-h] [--archives path] [--json file]
[--import-timeout time] [--noop] [--poll-interval delta] [-p port] [-Z
TZ]
π DESCRIPTION π
So like, here's the vibe: pmseries_import keeps an eye on a given path full of PCP archives, and when it spots them it automatically loads their contents into a key server (think Valkey or Redis π). And once they're in there? Chef's kiss. That data is now suitable for fast time series querying using the pmseries(1) language β which you get via the command line tool and the PCP REST API services of pmproxy(1). slay.
Not me checking the archives directory every 10 secondsβ¦ literally that's the whole technique. pmseries_import uses a simple polling approach, scanning the archives directory for new archive files every 10 seconds. periodt. β°
This utility is most commonly used inside a container that's giving automated Grafana dashboard setup for arbitrary PCP archives β¨. That whole approach hands you an environment containing a systemd(1) server to enable this archive monitoring utility, plus a pre-configured grafana-server(1), valkey-server(1), and pmproxy(1) REST API services. it's giving infrastructure. π«Ά
β OPTIONS β
--archives=pathβ lets you point at a different path to poll for new PCP archives. the default value is/archivesπ--jsonfile=fileβ names an alternate JSON format file that gets updated whenever the time window boundaries are seen to have changed. heads up bestie, this file must contain JSON content, and that content includes a JSON map named"time"with"start"and"end"fields β that's where the string timestamps will be written. the default value is/usr/local/var/lib/grafana/dashboards/pcp-archive-analysis.jsonπ-h,--helpβ displays the command usage message and then exits. classic. no notes. π--import-timeout=timeoutβ pick a number of seconds to allow for any individual archive import to complete, via thepmseries loadcommand for that archive. the default timeout value is 600 seconds (5 minutes) β³--noopβ skips all write operations (for debugging or testing purposes, iykyk), reporting only diagnostic messages instead. nothing gets written, she's just talking πΈ--poll-interval=deltaβ how often the archive directory gets scanned. the default delta is once every 10 seconds π-pport,--port=port β an optional port on whichpmseriesshould connect to the key server. the default port is **6379 π- *
-Z*TZ,--timezone=TZ β an optional TZ value indicating the timezone to whichpmseriesshould convert all archive timestamps when it sends values to the key server π
π¦ SEE ALSO π¦
grafana-server(1), systemd(1), valkey-server(1), pmproxy(1) and pmseries(1). go read them, they're iconic π
ok that's the whole page, you ate it, no cap π β¨
and that's a wrap, bestie β brought to you by Performance Co-Pilot (PCP) π she's iconic, she's everything, mwah π
π¦ 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-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 resolute: pcp 7.1.1-1
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2025 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms