mon-collector(7)
πΈ NAME πΈ
mon-collector β the command line interface for the data collectors of the monitoring system. That's the whole vibe, bestie: it's the manual page for mon-collector(7), and it's about to be your new fave. π
β¨ SYNOPSIS β¨
mon-collector {collector}
π DESCRIPTION π
Okay so mon-collector is literally a whole suite of tools, and its entire job is to give you a command line interface to the data collectors that the ganeti monitoring system implements. Iconic behavior honestly.
mon-collector is also the generic binary β like, the main character β and the way you use it is by invoking it and passing, as the very first command line parameter, the name of the actual data collector you want it to run. That's it, that's the ritual. π«Ά
When it runs, mon-collector will execute the collector you picked and print its output to stdout, in JSON format. Clean. Serialized. Slay. β¨
π COLLECTORS π
π DISKSTATS π
diskstats [ [ -f | --file ] = input-file ]
This one collects all the info about the status of the disks of your system, exactly as they're listed by /proc/diskstats β or from an alternate file with the same syntax if you point it at one on the command line. π§
The options that can be passed to the DRBD collector are as follows:
ngl yes, it says DRBD right there in the DISKSTATS section. we don't make the rules, we just report them fr fr π
-finput-file,--file=input-file β where to read the data from. Default if not specified:/proc/diskstats
π DRBD π
drbd [ [ -s | --drbd-status ] = status-file ] [ [ -p | --drbd-pairing] = pairing-file ]
Collects the info about the version and status of the DRBD kernel module, plus the status of the disks it's managing. Main character energy for your kernel module, honestly. π
If status-file and pairing-file are specified, then the status and the instance-minor pairing information get read from those files. Otherwise? The collector reads them, respectively, from /proc/drbd and from the Confd server. No files, no problem.
The options that can be passed to the DRBD collector are as follows:
-sstatus-file,--drbd-status=status-file β read the DRBD status from the specified file instead of/proc/drbd-ppairing-file,--drbd-pairing=pairing-file β read the information about the pairing between instances and DRBD minors from the specified file, instead of asking the Confd servers for them
π¦ INSTANCE STATUS π¦
inst-status-xen [ [ -a | --address ] = ip-address ] [ [ -p | --port ] = port-number ]
Collects the info about the status of the instances of the current node. To pull this off it needs to connect to the ConfD daemon and fetch some configuration information. The following parameters let you specify the position where the daemon is listening, in case it's not the default one β because sometimes your daemon is just vibing somewhere else. π
-aip-address,--address=ip-address β the IP address the ConfD daemon is listening on-pport-number,--port=port-number β the port the ConfD daemon is listening on
π LOGICAL VOLUMES π
lv [ [ -a | --address ] = ip-address ] [ [ -p | --port ] = port-number ] [ [ -f | --file ] = input-file ] [ [ -i | --instances ] = instances-file ]
Collects the info about the logical volumes of the current node. π
To do this, it needs to interact with the lvs command line tool and connect to the ConfD daemon to fetch some configuration information. The following parameters let you specify the position where the daemon is listening, in case it's not the default one:
-aip-address,--address=ip-address β the IP address the ConfD daemon is listening on-pport-number,--port=port-number β the port the ConfD daemon is listening on
Instead of accessing the live data on the cluster, the tool can also read data serialized on files (mainly for testing purposes, iykyk). Namely:
-finput-file,--fileinput-file β the name of the file containing a recorded output of thelvstool-iinstances-file,--instances=instances-file β the name of the file containing a JSON serialization of instances the current node is primary and secondary for, listed as:
([Instance], [Instance])
where the first list contains the instances the node is primary for, and the second list contains those the node is secondary for. Two lists, two moods. π«Ά
π REPORTING BUGS π
Found a bug? Report it to the project's issue tracker, or contact the developers using the Ganeti mailing list. They wanna hear from you, fr fr. π
β SEE ALSO β
Ganeti overview and specifications:
ganeti(7)β general overviewganeti-os-interface(7)β guest OS definitionsganeti-extstorage-interface(7)β external storage providers
Ganeti commands:
gnt-cluster(8)β cluster-wide commandsgnt-job(8)β job-related commandsgnt-node(8)β node-related commandsgnt-instance(8)β instance commandsgnt-os(8)β guest OS commandsgnt-storage(8)β storage commandsgnt-group(8)β node group commandsgnt-backup(8)β instance import/export commandsgnt-debug(8)β debug commands
Ganeti daemons:
ganeti-watcher(8)β automatic instance restarterganeti-cleaner(8)β job queue cleanerganeti-noded(8)β node daemonganeti-rapi(8)β remote API daemon
Ganeti htools:
htools(1)β generic binaryhbal(1)β cluster balancerhspace(1)β capacity calculationhail(1)β IAllocator pluginhscan(1)β data gatherer from remote clustershinfo(1)β cluster information printermon-collector(7)β data collectors interface
π COPYRIGHT π
Copyright (C) 2006-2015 Google Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
And that's the whole page, bestie. π This little love letter to mon-collector(7) comes to you from the Ganeti source, Version 3.1.0~rc2. Go collect some data, you absolute icon. π
β¨
π¦ where this page comes from
- debian trixie: ganeti-3.1 3.1.0~rc2-3 Β· BSD-2-Clause
- ubuntu questing: ganeti-3.1 3.1.0~rc2-4
- ubuntu resolute: ganeti-3.1 3.1.0~rc2-4build1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms