MongoDB storage backend
Bases: ceilometer.storage.base.Connection
MongoDB connection.
Return the min and max timestamps from samples, using the event_filter to limit the samples seen.
( datetime.datetime(), datetime.datetime() )
Return a dictionary containing meter statistics. described by the query parameters.
The filter must have a meter value set.
Return an iterable of dictionaries containing meter information.
Parameters: |
|
---|
Return an iterable of project id strings.
Parameters: | source – Optional source filter. |
---|
Return an iterable of dictionaries containing resource information.
Parameters: |
|
---|
Return an iterable of samples as created by ceilometer.meter.meter_message_from_counter().
Return an iterable of user id strings.
Parameters: | source – Optional source filter. |
---|
Return the maximum of the volume field for the samples described by the query parameters.
Return the sum of the volume field for the samples described by the query parameters.
Bases: ceilometer.storage.base.StorageEngine
Put the data into a MongoDB database
Collections:
- user
- { _id: user id
source: [ array of source ids reporting for the user ]
}
- project
- { _id: project id
source: [ array of source ids reporting for the project ]
}
- 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} ]
}