PMSEARCH(1)
π pmsearch β the manual, but make it make sense
okay bestie, welcome to pmsearch, from the General Commands Manual section (that's the manual name, iykyk). it's a search tool for metrics, instances and instance domains, and honestly? it's giving β¨ find anything β¨. let's go.
πΈ NAME πΈ
pmsearch β help text and names search for metrics, instances and instance domains
π¦ SYNOPSIS π¦
pmsearch [-CdinqsStTV?] [-c config] [-D debug] [-N number] [-O offset]
[query | indom]
β¨ DESCRIPTION β¨
okay so pmsearch does full text search queries to find metrics, using names and help text from metrics, instance domains and instances. literally just type words, get metrics. iconic.
it uses a local SQLite FTS5 full-text search index. no cap. a base index gets built at package install time, and it contains help text for all PCP metrics from the source tree. then, every night, pmsearch_daily(1) copies that base index and extends it with instance names (disk devices, network interfaces, etc.) from the running system. so it stays fresh π«Ά
and the best part? no external services (such as Redis or Valkey) are required. zero. none. we're self-sufficient, periodt.
π OPTIONS π
-c config,--config=configβ pick which config file to use.-C,--no-colourβ no highlighting in results text. for the monochrome girlies π€-d,--docidβ report the document ID of each search result.-i,--infoβ report search index metrics (that's the document count).-n,--indomβ do an instance domain related entities search.-N N,--number=Nβ return N, search results at most. (yes, that's how the manpage says it, we keep it π )-O N,--offset=Nβ paginated results from given offset.-q,--queryβ do a general text search (this is the default, so if you do nothing, you're doing this).-s,--suggestβ do a name suggestion search.-S,--scoreβ report score (rank) of each result.-T,--totalβ report total number of search results.-t,--timesβ report elapsed search execution time. β±οΈ-V,--versionβ display version number and exit.-?,--helpβ display usage message and exit.
π₯ EXAMPLES π₯
look at her go:
$ pmsearch kernel idle
Type: metric
Name: kernel.all.cpu.idle
One line: total idle CPU time from /proc/stat for all CPUs
Type: metric
Name: kernel.all.idletime
One line: time the current kernel has been idle since boot
Type: metric
Name: kernel.percpu.cpu.idle
InDom: 60.0
One line: percpu idle CPU time metric from /proc/stat
ate and left no crumbs fr fr π
π FILES π
$PCP_VAR_DIR/lib/pmsearch.indexβ the nightly search index (a SQLite FTS5 database), rebuilt bypmsearch_daily(1). this is a copy of the base index extended with runtime instance data. the glow-up version β¨$PCP_SHARE_DIR/lib/pmsearch.indexβ the build-time base index containing all metrics from the PCP source tree. used as a fallback when the nightly index is not yet available. the understudy, but make it useful π
π§ 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).
π DEBUGGING OPTIONS π
the -D or --debug option enables the output of additional diagnostics on stderr to help triage problems β although ngl, the information is sometimes cryptic and primarily intended to provide guidance for developers rather than for end-users. it's giving insider info π
debug is a comma separated list of debugging options; use pmdbg(1) with the -l option to obtain a list of the available debugging options and their meaning.
π SEE ALSO π
PCPIntro(1), pmsearch_daily(1), pmproxy(1), pmlogger(1) and pmlogger_daily(1).
and that's the whole page bestie π«Ά this one came to you straight from Performance Co-Pilot (that's PCP, the source/version), and we're signing off on PMSEARCH(1). go search something slay. π β¨
π¦ 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
- 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.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- Copyright (c) 2020,2024,2026 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms