MongoDB storage backend
Bases: ceilometer.storage.pymongo_base.Connection
Put the data into a MongoDB database
Collections:
- meter
- the raw incoming data
- resource
- the metadata for resources
- { _id: uuid of resource,
metadata: metadata dictionaries
user_id: uuid
project_id: uuid
meter: [ array of {counter_name: string, counter_type: string,
counter_unit: string} ]
}
Clear expired data from the backend storage system.
Clearing occurs with native MongoDB time-to-live feature.
Return an iterable of models.Statistics instance.
Items are containing meter statistics described by the query parameters. The filter must have a meter value set.
Return an iterable of models.Resource instances
Parameters: |
|
---|
Write the data to the backend storage system.
Parameters: | data – a dictionary such as returned by ceilometer.meter.meter_message_from_counter |
---|
Update or create time_to_live indexes.
Parameters: |
|
---|