author | Bruno Prémont <bonbons@linux-vserver.org> | |
Mon, 20 Apr 2009 20:37:42 +0000 (22:37 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Thu, 23 Apr 2009 09:44:03 +0000 (11:44 +0200) | ||
commit | d1e62aa4497458ed86d20f5ef1b6c00d50596da0 | |
tree | ffa75727bb513c6ca94f14fca33fec619ed85d43 | tree | snapshot |
parent | ce91f8a73ea8ad8f260a849b9c2236cc37f82fa5 | commit | diff |
php-collection: add basic support for meta-selections
Add support for new meta selections allowing addition of graphs
with wildcard behavior.
This adds support for @all selection which matches any values
for the given identifier part.
In addition those types for which meta graphs exist now also list the
individual type instances in addition to the meta graph key for separate
graphing.
In order to support such new groups the lookup code has been refactored
to use a single scanning function which recursively traveses the
collectd RRD output directory for hosts, plugins, types and passing the
discovered data to callback functions for use. The callbacks returns
true to indicate traversal should continue on to next depth level and
false to tell it to continue with next element.
e.g. true on a host means it should look for plugins for given host,
false to continue with next host.
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Add support for new meta selections allowing addition of graphs
with wildcard behavior.
This adds support for @all selection which matches any values
for the given identifier part.
In addition those types for which meta graphs exist now also list the
individual type instances in addition to the meta graph key for separate
graphing.
In order to support such new groups the lookup code has been refactored
to use a single scanning function which recursively traveses the
collectd RRD output directory for hosts, plugins, types and passing the
discovered data to callback functions for use. The callbacks returns
true to indicate traversal should continue on to next depth level and
false to tell it to continue with next element.
e.g. true on a host means it should look for plugins for given host,
false to continue with next host.
Signed-off-by: Florian Forster <octo@huhu.verplant.org>