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:
7
setup.py
7
setup.py
@@ -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
|
||||
"""),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user