OpenStack Telemetry (Ceilometer)
Go to file
Igor Degtiarov f379b96dd2 [MongoDB] Fix bug with 'bad' chars in metadatas keys
MongoDB has two restrictions on fields names, they cannot contain '.' and
start with '$'. In resource_metadata field we can get any data, so it could
be dict with any keys, and if some key contain i.e. dots sample with this
metadata wouldn't be stored in MongoDB.

To protect samples from missing this patch propose to check metadata
for occurrence of dots and '$' in keys if metadata is dict, and to transform
dict with dots before storing it in MongoDB. Transformation means that
we make dict more nested and new node appears where there is dot in dict
key.

It means that if we get metadata as a dict {'a.b.c': v} before storing in
MongoDB it would be transform in {'a': {'b': {'c': v}}}.

Closes-Bug: 1246264
Change-Id: I279ae67cd24d4dadd7d7e58007e7c5c297d91772
2014-12-01 15:51:25 +02:00
bin Remove (c) and remove unnecessary encoding lines 2014-05-31 13:02:21 +02:00
ceilometer [MongoDB] Fix bug with 'bad' chars in metadatas keys 2014-12-01 15:51:25 +02:00
doc Merge "Add bandwidth to measurements" 2014-11-13 10:33:54 +00:00
etc Add per device rate metrics for instances 2014-10-30 23:14:59 +08:00
nova_tests Switch to oslo.utils 2014-08-22 14:52:13 +02:00
tools Enable pep8 on ./tools directory 2014-11-25 15:52:40 +01:00
.coveragerc test code should be excluded from test coverage summary 2013-12-11 11:40:51 -05:00
.gitignore Adds pylint check for critical error in new patches 2014-10-07 17:27:30 +03:00
.gitreview Update .gitreview for openstack. 2012-11-11 19:13:08 +00:00
.mailmap add mailmap to avoid dup of authors 2014-10-09 10:31:23 +03:00
.testr.conf Eliminate unnecessary search for test cases 2014-09-16 14:21:37 +08:00
CONTRIBUTING.rst Fix the section name in CONTRIBUTING.rst 2014-07-01 14:56:49 +08:00
LICENSE include a copy of the ASL 2.0 2013-03-15 14:25:48 +00:00
MAINTAINERS Fix some spelling mistakes and a incorrect url 2014-03-06 11:28:50 +08:00
README.rst Rename README.md to README.rst 2013-07-14 21:09:38 +02:00
ReleaseNotes Update documentation URL 2012-12-05 10:22:43 +01:00
babel.cfg Ground work for transifex-ify ceilometer. 2012-12-18 10:14:03 +08:00
functions.sh Run unit tests against MySQL 2014-10-01 10:26:27 +02:00
openstack-common.conf Remove module not really used by Ceilometer 2014-11-17 14:42:06 +01:00
pylintrc Adds pylint check for critical error in new patches 2014-10-07 17:27:30 +03:00
requirements-py3.txt Updated from global requirements 2014-11-23 09:33:51 +00:00
requirements.txt Updated from global requirements 2014-11-23 09:33:51 +00:00
setup-test-env-mongodb.sh Run unit tests against MySQL 2014-10-01 10:26:27 +02:00
setup-test-env-mysql.sh Creates one database per sql test 2014-10-07 16:40:59 +02:00
setup-test-env-postgresql.sh Use 'pg_ctl' utility to start and stop database 2014-11-07 11:26:51 +01:00
setup.cfg Merge "Remove Python 2.6 classifier" 2014-11-26 00:49:53 +00:00
setup.py Updated from global requirements 2014-05-20 12:59:42 -04:00
test-requirements-py3.txt Updated from global requirements 2014-11-23 09:33:51 +00:00
test-requirements.txt Updated from global requirements 2014-11-23 09:33:51 +00:00
tox.ini Merge "Remove Python 2.6 classifier" 2014-11-26 00:49:53 +00:00

README.rst

ceilometer

See the ReleaseNotes document and the project home for more info.

http://launchpad.net/ceilometer