Common code for working with ceph object stores
-
class
ceilometer.objectstore.rgw.
ContainersObjectsPollster
(conf)[source]
Bases: ceilometer.objectstore.rgw._Base
Get info about object counts in a container using RGW Admin APIs.
-
get_samples
(manager, cache, resources)[source]
Return a sequence of Counter instances from polling the resources.
Parameters: |
- manager – The service manager class invoking the plugin.
- cache – A dictionary to allow pollsters to pass data
between themselves when recomputing it would be
expensive (e.g., asking another service for a
list of objects).
- resources – A list of resources the pollster will get data
from. It’s up to the specific pollster to decide
how to use it. It is usually supplied by a discovery,
see
default_discovery for more information.
|
Bases: ceilometer.objectstore.rgw._Base
Get info about object sizes in a container using RGW Admin APIs.
Return a sequence of Counter instances from polling the resources.
Parameters: |
- manager – The service manager class invoking the plugin.
- cache – A dictionary to allow pollsters to pass data
between themselves when recomputing it would be
expensive (e.g., asking another service for a
list of objects).
- resources – A list of resources the pollster will get data
from. It’s up to the specific pollster to decide
how to use it. It is usually supplied by a discovery,
see
default_discovery for more information.
|
-
class
ceilometer.objectstore.rgw.
ObjectsContainersPollster
(conf)[source]
Bases: ceilometer.objectstore.rgw._Base
-
get_samples
(manager, cache, resources)[source]
Return a sequence of Counter instances from polling the resources.
Parameters: |
- manager – The service manager class invoking the plugin.
- cache – A dictionary to allow pollsters to pass data
between themselves when recomputing it would be
expensive (e.g., asking another service for a
list of objects).
- resources – A list of resources the pollster will get data
from. It’s up to the specific pollster to decide
how to use it. It is usually supplied by a discovery,
see
default_discovery for more information.
|
-
class
ceilometer.objectstore.rgw.
ObjectsPollster
(conf)[source]
Bases: ceilometer.objectstore.rgw._Base
Iterate over all accounts, using keystone.
-
get_samples
(manager, cache, resources)[source]
Return a sequence of Counter instances from polling the resources.
Parameters: |
- manager – The service manager class invoking the plugin.
- cache – A dictionary to allow pollsters to pass data
between themselves when recomputing it would be
expensive (e.g., asking another service for a
list of objects).
- resources – A list of resources the pollster will get data
from. It’s up to the specific pollster to decide
how to use it. It is usually supplied by a discovery,
see
default_discovery for more information.
|
-
class
ceilometer.objectstore.rgw.
ObjectsSizePollster
(conf)[source]
Bases: ceilometer.objectstore.rgw._Base
Iterate over all accounts, using keystone.
-
get_samples
(manager, cache, resources)[source]
Return a sequence of Counter instances from polling the resources.
Parameters: |
- manager – The service manager class invoking the plugin.
- cache – A dictionary to allow pollsters to pass data
between themselves when recomputing it would be
expensive (e.g., asking another service for a
list of objects).
- resources – A list of resources the pollster will get data
from. It’s up to the specific pollster to decide
how to use it. It is usually supplied by a discovery,
see
default_discovery for more information.
|
-
class
ceilometer.objectstore.rgw.
UsagePollster
(conf)[source]
Bases: ceilometer.objectstore.rgw._Base
-
METHOD
= 'usage'
-
get_samples
(manager, cache, resources)[source]
Return a sequence of Counter instances from polling the resources.
Parameters: |
- manager – The service manager class invoking the plugin.
- cache – A dictionary to allow pollsters to pass data
between themselves when recomputing it would be
expensive (e.g., asking another service for a
list of objects).
- resources – A list of resources the pollster will get data
from. It’s up to the specific pollster to decide
how to use it. It is usually supplied by a discovery,
see
default_discovery for more information.
|