Statistics
| Branch: | Tag: | Revision:

root / src / Ganeti / DataCollectors @ b9202225

# Date Author Comment
74b3f734 01/16/2014 05:11 pm Petr Pudlak

Use ClockTime instead of Double in fields in Objects.hs

This affects "mtime" and "ctime" fields in all data types.

This also forces explicit declaration of how the fields are serialized
in Query.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

982dc0e0 10/02/2013 09:46 am Klaus Aehlig

Merge branch 'stable-2.9' into master

  • stable-2.9
    Version bump for 2.9.0 rc1
    Update NEWS for 2.9.0 rc1
    configure: check for hslogger
    Document hslogger dependency in NEWS
    Update INSTALL: hslogger is mandatory
    Update installation instruction for Debian...
e5fe8978 09/30/2013 03:20 pm Spyros Trigazis

Implement readJSON functions for DC Types

Implement readJSON functions for DCCategory, DCVersion and
DCKind in Data Collectors's Types to be parsable from a JSON
formatted file. Also, implement a utility function to
capitalize the first character of a string....

c32c4e4d 09/30/2013 03:20 pm Spyros Trigazis

Fetch data from MonD to HTools

Contact all MonDs from HTools to fetch data from its Data
Collectors (only CPUload Data Collector is queried at the
moment). This information is available to all HTools with the
--mond option and can be ignored if the --ignore-dynu option is...

eebc8ab2 09/27/2013 01:47 pm Michele Tartara

Make the inst-status-xen collector more resilient

The data collectors should be able to provide as much information as possible
even when the system is badly degraded. This patch modifies the instance status
collector for xen so that it can keep providing as much data as possible, even...

8e6ef316 09/19/2013 06:15 pm Jose A. Lopes

Move data types from 'Objects' to 'Types'

Move several Haskell data types from 'Ganeti.Objects' to
'Ganeti.Types' in order to be able to generate constants while
avoiding module circularity.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

798582cf 09/13/2013 11:46 am Spyros Trigazis

Make CPUload Data Collector aware of clock ticks

Modify CPUload data collector to get the number of clock ticks
per second from Posix.Unistd. Since CPUload collector converts
clock ticks (jiffies) to seconds and the clock ticks to seconds
ratio varies between linux distributions, it must be read from...

0c5f1b13 09/12/2013 03:23 pm Thomas Thrainer

Merge branch 'stable-2.9' into master

  • stable-2.9
    Fix bridging in net-common
    Sync build_chroot with buildbot slack role
    Auto-upgrade of disks' config wrt LD-renaming
    Fix tests regarding DISK_LD_DEFAULTS
    Fixing renaming of DISK_LD_DEFAULTS
    Replace LD_* constants with DT_* constants...
f148fe23 08/27/2013 03:04 pm Klaus Aehlig

Merge branch 'stable-2.8' into stable-2.9

  • stable-2.8
    Add function to unwrap Results logging failures
    Make the DRBD collector more failure-resilient
    Prepare GetLinuxNodeInfo for testing
    Add unit test for GetLinuxNodeInfo
    NEWS update and version bump for 2.8 rc2...
b1633ed9 08/21/2013 06:19 pm Michele Tartara

Make the DRBD collector more failure-resilient

If information about instances is not available, just log the error and
continue without it.

Signed-off-by: Michele Tartara <>
Reviewed-by: Klaus Aehlig <>

2da679f7 08/05/2013 11:59 am Spyros Trigazis

Add CPUload collector

Introduce CPUload data collector as described in the corresponding
design document. Add two data types in Datacollectors's Types.

Signed-off-by: Spyros Trigazis <>
Signed-off-by: Michele Tartara <>...

820ca72d 07/04/2013 08:04 pm Michele Tartara

Include "instance" information in LV data collector

This commit enables the logical volume data collector to get information about
the instances and to link it to the information about logical volumes.

The list of parameters accepted by the collector is expanded to allow proper...

53753d20 07/04/2013 08:03 pm Michele Tartara

Add option for loading serialized instances

Monitoring CLI tools might have to load serialized lists of instances
(mainly for testing reasons). This patch adds an option to allow that.

Signed-off-by: Michele Tartara <>
Reviewed-by: Klaus Aehlig <>

f22b987a 07/04/2013 08:03 pm Michele Tartara

Factor out lv info gathering function

The buildJsonReport function will soon have to perform the coupling of
instance data with LVInfo data. In preparation for that, in order to make
it more readable, the instructions for obtaining LVInfos are factored out...

9611c32e 07/04/2013 08:02 pm Michele Tartara

Factor out the getInstances function

The getInstances function can be useful in general, but is defined inside
the InstStatus data collector. This commit takes it out and adds it to
a proper (newly created) library.

Signed-off-by: Michele Tartara <>...

f5d84060 07/01/2013 04:42 pm Michele Tartara

Prevent LV parser compile error

The LV parser is not compiled correctly by more recent versions of GHC
because of more strict checks.

lvCommand is a surely non-empty list, but the compiler still refuses it
asking for explicitly management of the empty list case....

1a9d864c 07/01/2013 02:35 pm Michele Tartara

Add LV data collector

This commit adds the LV data collector.

Also, the lvCommand function was not providing the correct value as expected by
the readProcess function, so it was fixed.

Signed-off-by: Michele Tartara <>
Reviewed-by: Helga Velroyen <>

c5f6cba2 06/17/2013 08:32 pm Helga Velroyen

Rename directory 'Block' to 'Storage'

This patch renames the 'Block' directory to 'Storage' in
the Haskell code base. The same rename was done in the
python code base earlier this quarter. We generalize the
name, because we needed a place for general storage...

1a99d6a2 06/03/2013 06:10 pm Michele Tartara

Add diskstats data collector

Add a new data collector responsible for gathering disk performance
statistics.

Signed-off-by: Michele Tartara <>
Reviewed-by: Klaus Aehlig <>

67ebc173 06/03/2013 06:09 pm Michele Tartara

Add a CLI parameter for input files

For many data collectors it is useful (especially for testing) to have to
possibility to specify an input file.

This commit adds a generic option for doing that.

Signed-off-by: Michele Tartara <>
Reviewed-by: Klaus Aehlig <>

6ab6b19a 05/13/2013 04:20 pm Michele Tartara

Use dcName in mon-collector

Instead of manually specify the name of the data collectors in mon-collector,
just use the dcName field each of them exports.

Signed-off-by: Michele Tartara <>
Reviewed-by: Klaus Aehlig <>

dd69cd3c 05/13/2013 04:20 pm Michele Tartara

Factor out the mergeStatuses function

It will be used by multiple data collectors, not only the DRBD collector.

Signed-off-by: Michele Tartara <>
Reviewed-by: Klaus Aehlig <>

79731e21 05/13/2013 04:20 pm Michele Tartara

Add global status field to the instance status collector

The global status is computed from the statuses of the single instances.

The output json format is adapted to include this piece of information, as
prescribed by the design document.

Signed-off-by: Michele Tartara <>...

e8b46463 05/13/2013 04:20 pm Michele Tartara

Export the Instance Status collector report

It will need to be accessed by the monitoring daemon.

Signed-off-by: Michele Tartara <>
Reviewed-by: Klaus Aehlig <>

d7e9323b 05/13/2013 04:20 pm Michele Tartara

Add the core of the instance status collector

Add the Xen instance status data collector with only its core features.
The next commits will add more reporting functionalities.

The access to the collector is made possible through the mon-collector
tool.
...

d4de2ea8 05/13/2013 04:20 pm Michele Tartara

Export the actual instance state

Compute the actual state of the instance and export it.

Signed-off-by: Michele Tartara <>
Reviewed-by: Klaus Aehlig <>

fc4be2bf 05/13/2013 04:20 pm Michele Tartara

Determine status of one instance

Added function for determining whether the status of an instance is ok, and to
represent this information in the corresponding field in the report.

Signed-off-by: Michele Tartara <>
Reviewed-by: Klaus Aehlig <>

17ae9cdb 05/13/2013 04:20 pm Michele Tartara

Include the reason trail in the instance collector output

Fetch the reason trail from file, failing gracefully if it is not found, and
include it in the output of the instance status data collector.

Signed-off-by: Michele Tartara <>
Reviewed-by: Klaus Aehlig <>

7660aaf3 05/13/2013 04:20 pm Michele Tartara

Export Instance Status collector information

Name, version, format version, category and kind of the Instance Status data
collector are now exported.

Signed-off-by: Michele Tartara <>
Reviewed-by: Klaus Aehlig <>

4fe04580 05/13/2013 04:20 pm Michele Tartara

Factor out function for building report

Instead of building the report as part of the "Main" function, have it
built by its own dedicated function, so that it will be able to export it
directly to the monitoring daemon when needed.

Signed-off-by: Michele Tartara <>...

75706f3a 04/30/2013 10:56 am Michele Tartara

Export the full report from DRBD data collector

Export the full report instead of just the data from the DRBD data collector.

Signed-off-by: Michele Tartara <>
Reviewed-by: Helga Velroyen <>

a5ec6d88 04/30/2013 10:55 am Michele Tartara

Update JSON serialization for "category"

Change the JSON serialization for the "category" field of data collectors,
in accordance to the latest version of the design document.

Signed-off-by: Michele Tartara <>
Reviewed-by: Helga Velroyen <>

2d1c753d 03/28/2013 03:13 pm Michele Tartara

Add status information to the DRBD data collector report

Add status information as required by the design document.

Signed-off-by: Michele Tartara <>
Reviewed-by: Bernardo Dal Seno <>

8c5419ee 03/28/2013 03:13 pm Michele Tartara

Export the data collected by DRBD in JSON format

Write an intermediate function computing the JSON data before adding them
to the DCReport.

Directly export the data computed by that function (with default parameters)
allowing them to be used (in the future) by the monitoring agent....

82437b28 03/28/2013 03:13 pm Michele Tartara

Add DCStatus data type for the data collectors

Also adds the DCStatusCode, part of DCStatus, and the addStatus
utility function for adding the "status" field to an already existing
JSValue.

The design document is updated to have the status codes sorted by increasing...

54c7dff7 03/28/2013 03:13 pm Michele Tartara

Add Kind data type for data collectors

Also, add it to the DRBD data collector, and export it from there.

Signed-off-by: Michele Tartara <>
Reviewed-by: Bernardo Dal Seno <>

f0e4b2a4 03/28/2013 03:13 pm Michele Tartara

Add data type for data collector category

Also, update the DRBD data collector to use and export it.

Signed-off-by: Michele Tartara <>
Reviewed-by: Bernardo Dal Seno <>

834dc290 03/28/2013 03:13 pm Michele Tartara

Export the dcVersionInformation for the Drbd collector

Also, update the JSON output (and the design document) so that it is not
in camelcase anymore. This is part of a bigger effort to remove camelcase
from the exposed JSON.

Signed-off-by: Michele Tartara <>...

a895fa19 03/28/2013 03:12 pm Michele Tartara

Add data collector version data type

Define the new data type and update the DRBD data collector to use it.

Signed-off-by: Michele Tartara <>
Reviewed-by: Bernardo Dal Seno <>

7a171e3f 03/28/2013 03:12 pm Michele Tartara

Fix comment line position in DRBD data collector

Signed-off-by: Michele Tartara <>
Reviewed-by: Bernardo Dal Seno <>

ddceb4c5 03/28/2013 03:12 pm Michele Tartara

Export dcName information of Drbd data collector

Signed-off-by: Michele Tartara <>
Reviewed-by: Bernardo Dal Seno <>

7dc27988 02/18/2013 05:35 pm Michele Tartara

Make Confd client usable for testing

Allow the Confd client to be able to connect to an arbitrary server
instead of just the real one running on a cluster.

This is meant to be used for testing.

If a data collector using the Confd client is tested with shelltest, it will...

e71c47d3 01/16/2013 03:56 pm Michele Tartara

Integrate DRBD with the report generation infrastructure

With this commit, the DRBD data collector does not only print the data
it extracts, but includes them in the proper JSON structure common to
all the data collectors, as prescribed by the design document....

13d3acab 01/16/2013 03:56 pm Michele Tartara

Add reporting infrastructure for data collectors

This commit adds the part of the JSON report generation code that will be
common to all the data collectors, according to the format specified in the
design document.

Signed-off-by: Michele Tartara <>...

d78970ba 01/08/2013 06:16 pm Michele Tartara

Support instance-minor pairing in the DRBD collector

This commits enables the DRBD data collector to use the Confd client to
gather information about the pairing between DRBD minors and instances.

For testing purposes, the DRBD data collector now requires either zero...

eb62691c 01/08/2013 06:16 pm Michele Tartara

Support integrating instance information in the DRBD parser

This commit modifies the DRBD parser and its data structures to include
information about the instance a DRBD minor belongs to.

Test files have been updated as well, to support the new field in the data...

3add7574 12/24/2012 11:38 pm Iustin Pop

Rename htools/ to src/

Per offline discussions, this is the first patch of the
renames. Tested with "make distcheck", seems to work fine.

The only change outside of the renaming is a bit of simplification in
the .gitignore rules; otherwise, simply s/htools/src/....