Paul Cuzner [Mon, 26 Jun 2017 05:12:23 +0000 (17:12 +1200)]
mon: updated for logging and additional metrics collected for rbd and osd hosts
collector class now scans the cluster to determine the count of RBDs. Each monitor
will pick a discrete set of pools to scan, so the overall load is shared across monitors.
In addition, since the osd tree command is used to determine the up/down state of
the OSDs, the same output is used to determine the number of osd hosts in the
configuration. Prior to this change the determination was inferred through a
graphite query.
Paul Cuzner [Mon, 26 Jun 2017 05:07:50 +0000 (17:07 +1200)]
cephmetrics: Use a default value type for graphite, and assign default logging
Before this change, if a variable was defined in a class but NOT defined in it's attributes
the collector would fail. With this change a default of gauge is assigned.
In addition, a default logging level is set for all the collectors, if not specified by LogLevel
in the collectd.conf plugin