The ceilometer.hardware.pollsters.generic Module

The ceilometer.hardware.pollsters.generic Module

class ceilometer.hardware.pollsters.generic.GenericHardwareDeclarativePollster(conf)[source]

Bases: ceilometer.polling.plugin_base.PollsterBase

CACHE_KEY = 'hardware.generic'
classmethod build_pollsters(conf)[source]
default_discovery
generate_samples(host_url, data)[source]

Generate a list of Sample from the data returned by inspector

Parameters:
  • host_url – host url of the endpoint
  • data – list of data returned by the corresponding inspector
get_samples(manager, cache, resources=None)[source]

Return an iterable of Sample instances from polling the resources.

Parameters:
  • manager – The service manager invoking the plugin
  • cache – A dictionary for passing data between plugins
  • resources – end point to poll data from
mapping = None
class ceilometer.hardware.pollsters.generic.MeterDefinition(definition_cfg)[source]

Bases: object

required_fields = ['name', 'unit', 'type']
ceilometer.hardware.pollsters.generic.load_definition(config_def)[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.