The watcher.datasource.gnocchi Module

The watcher.datasource.gnocchi Module

class watcher.datasource.gnocchi.GnocchiHelper(osc=None)[source]

Bases: watcher.datasource.base.DataSourceBase

check_availability()[source]
get_host_airflow(resource_id, period, aggregate, granularity=300)[source]
get_host_cpu_usage(resource_id, period, aggregate, granularity=300)[source]
get_host_inlet_temperature(resource_id, period, aggregate, granularity=300)[source]
get_host_memory_usage(resource_id, period, aggregate, granularity=300)[source]
get_host_outlet_temperature(resource_id, period, aggregate, granularity=300)[source]
get_host_power(resource_id, period, aggregate, granularity=300)[source]
get_instance_cpu_usage(resource_id, period, aggregate, granularity=300)[source]
get_instance_l3_cache_usage(resource_id, period, aggregate, granularity=300)[source]
get_instance_memory_usage(resource_id, period, aggregate, granularity=300)[source]
get_instance_ram_allocated(resource_id, period, aggregate, granularity=300)[source]
get_instance_root_disk_allocated(resource_id, period, aggregate, granularity=300)[source]
list_metrics()[source]

List the user’s meters.

query_retry(f, *args, **kwargs)[source]
statistic_aggregation(resource_id=None, meter_name=None, period=300, granularity=300, dimensions=None, aggregation='mean', group_by='*')[source]

Representing a statistic aggregate by operators

Parameters:
  • resource_id – id of resource to list statistics for.
  • meter_name – meter name of which we want the statistics.
  • period – Period in seconds over which to group samples.
  • granularity – frequency of marking metric point, in seconds.
  • dimensions – dimensions (dict). This param isn’t used in Gnocchi datasource.
  • aggregation – Should be chosen in accordance with policy aggregations.
  • group_by – list of columns to group the metrics to be returned. This param isn’t used in Gnocchi datasource.
Returns:

value of aggregated metric

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.