Add MongoDB engine.

This change implements the first storage backend for
ceilometer using MongoDB and makes it the default
(instead of 'log').

- require pymongo and ming for tests
- clean up entry point registration using textwrap
- sketch in a simple data dump tool (tools/show_data.py)

Change-Id: I0e3763749e88a71bc57b263ea79fff8d065c03ce
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
This commit is contained in:
Doug Hellmann
2012-06-29 15:17:06 -04:00
parent 022ecffe56
commit 4ee4a6895f
8 changed files with 836 additions and 5 deletions

View File

@@ -17,6 +17,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import textwrap
import setuptools
setuptools.setup(
@@ -31,7 +33,7 @@ setuptools.setup(
test_suite='nose.collector',
scripts=['bin/ceilometer-agent', 'bin/ceilometer-collector'],
py_modules=[],
entry_points="""
entry_points=textwrap.dedent("""
[ceilometer.collector.compute]
instance = ceilometer.compute.notifications:InstanceNotifications
@@ -42,5 +44,6 @@ setuptools.setup(
[ceilometer.storage]
log = ceilometer.storage.impl_log:LogStorage
""",
mongodb = ceilometer.storage.impl_mongodb:MongoDBStorage
"""),
)