GANGLIA2PCP(1)

πŸ¦‹ GANGLIA2PCP(1) πŸ¦‹

General Commands Manual, bestie β€” Performance Co-Pilot edition. Pull up a chair, we're translating ganglia into PCP and it's gonna be so good. ✨


🌸 NAME 🌸

ganglia2pcp β€” import ganglia data and create a PCP archive


πŸŽ€ SYNOPSIS πŸŽ€

ganglia2pcp [-D debug] [-d outdir] [-e end] [-f outfile] [-h hostname]
[-s start] [-V version] [-Z timezone] input_dir

πŸ’… DESCRIPTION πŸ’…

okay so. ganglia2pcp is literally built to read a whole set of ganglia files that are chillin' in the rrd format and translate them into a Performance Co-Pilot (PCP) archive, with the basename outfile. that's the whole vibe. 🫢

The intent of this converter is to take all of the rrd files it finds in the input_dir and generate a single pcp archive file. The mapping of ganglia metrics to pcp metrics is defined internally β€” it's giving iykyk, the mapping lives inside, you don't gotta worry about it. πŸ’–

The resultant PCP achive may be used with all the PCP client tools to graph subsets of the data using pmchart(1), perform data reduction and reporting, filter with the PCP inference engine pmie(1), etc. so many options, we love a multi-hyphenate. πŸ”₯

A series of physical files will be created with the prefix outfile. These are:

  • outfile.0 β€” the performance data
  • outfile.meta β€” the metadata that describes the performance data
  • outfile.index β€” a temporal index to improve efficiency of replay operations for the archive
⚠️ if any of these files exists already, then sar2pcp will not overwrite them and will exit with an error message of the form:
__pmLogNewFile: ``blah.0'' already exists, not over-written

(and no, that's not a typo on my end β€” the page really does say sar2pcp there, it's iconic behavior, we move πŸ’€)

ganglia2pcp is a Perl script that uses the PCP::LogImport Perl wrapper around the PCP libpcp_import library, and as such could be used as an example to develop new tools to import other types of performance data and create PCP archives. main character energy fr fr. The RRDs Perl wrapper is used to parse the raw rrd format files. 🌈


✨ OPTIONS ✨

The available command line options are:

  • -d outdir β€” The outdir argument specifies a output to write to. The default is the current directory.
  • -e end β€” The end argument specifies a end time in a format understood by str2time. The default start time is current time. πŸ™ˆ (yes bestie, the page says start time here, we report the lore exactly as it is)
  • -f outfile β€” The outfile argument specifies a output file name. The default name is in the standard pmlogger format based on the start time, e.g., 20150201.00.10.
  • -h hostname β€” The hostname argument specifies a hostname to write to the archive. The default is taken from the directory name that the rrd files reside in.
  • -s start β€” The start argument specifies a start time in a format understood by str2time. The default start time is 24 prior to current time.
  • -V version β€” The -V option specifies the version for the output PCP archive. By default the archive version $PCP_ARCHIVE_VERSION (set to 3 in current PCP releases) is used, and the only values currently supported for version are 2 or 3.
  • -Z timezone β€” The timezone argument sets the source timezone in the PCP archive (the default is to use the local timezone). The timezone must have the format +HHMM (for hours and minutes East of UTC) or -HHMM (for hours and minutes West of UTC) or UTC.
🚨 Note in particular that neither the zoneinfo (aka Olson) format, e.g. Europe/Paris, nor the Posix TZ format, e.g. EST+5 is allowed.

Example:

timezone=``+1100''

🧚 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). πŸŽ€


πŸ’€ DEBUGGING OPTIONS πŸ’€

The -D or --debug option enables the output of additional diagnostics on stderr to help triage problems, although the information is sometimes cryptic and primarily intended to provide guidance for developers rather than for end-users. ngl, it's giving "for the devs, not for the girlies". 😭

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.

Debugging options specific to ganglia2pcp are as follows:

  • appl0 β€” setup and metrics discovery
  • appl1 β€” metric-value generation

πŸ‘‘ SEE ALSO πŸ‘‘

pmie(1), pmchart(1), pmlogger(1), pmlogextract(1), pmlogsummary(1), Date::Parse(3pm), Date::Format(3pm), PCP::LogImport(3pm), RRDs(3pm) and LOGIMPORT(3).


and that's the whole page bestie, we ate and left zero crumbs πŸ“βœ¨

this one comes to you from the folks at Performance Co-Pilot (that's the source, the version tag is just PCP), and the page itself is dated... well, it isn't, this footer's only got the manual name GANGLIA2PCP(1) riding along. no cap. πŸ’œ

πŸ“¦ where this page comes from