Trivial typo

Change-Id: If77c9afd493a2a91a853a3826d7465f21d81d343
Insertion in HBase should be fixed

* All data inserted to HBase should be String or Unicode
* Data stored in HBase is flatten

Fixes bug 1240474

Change-Id: Ic36f5460275de3c829a7b27932bde284d71bd806
Use DEFAULT section for dispatcher in doc

Section of dispatcher is moved to DEFAULT in Icehouse, it is in
collector section in Havana but already deprecated. The
doc/source/install/manual.rst still put it in collector section
which seems not good.

Change-Id: I2c5c16c2ffe0dabd19966fc79ad88e418a43a6fd
Closes-Bug: #1269521
Fix to handle null threshold_rule values

check if threshold_rule and combination_rule values
are None and raise the right error in the validation
method instead of propagating it further causing
unhandled exceptions.

fixes bug #1238453

Change-Id: I70a397c89d974e489fd0ccc4ab28d73aed51443f
Implement the /v2/samples/<sample-id> API

This is a simple implementation of the new sample endpoint in the API.
It provides raw accesses to the samples collected by Ceilometer, without
imposing any kind of filtering on the meter name.

The patch is about retreiving only one sample with the id.

The fields are also correctly named this time.

Change-Id: Ifdd7f024b066407cd42ec0572385f97acd312125
Blueprint: sample-api
Remove dependencies on pep8, pyflakes and flake8

They should be determined by the hacking dependency
implicitely.

Change-Id: Ie61a97d5ed26bb8cab04df686a4a2d1df9976f1d
Update oslo

This updates Oslo to the latest commit
997ab2776c9cad033234e28a92fb7bc0ef5bc4c0

It removes the test_service test file, as the behavior of restarting on
SIGHUP is dependent of openstack.common.service which has changed
recently, is already tested as part of oslo.incubator's tests.

Change-Id: I389c690f4febe9c69c1e2c39cd16961635469c75
Name and unit mapping for rate_of_change transformer

Precursor-to: BP rates-derived-from-cumulative

Adds support for regex-based name and unit mapping to the
rate_of_change transformer. Regular expression back-references
are key to simplifying potentially repetitive config.

This avoids a explosion of pipelines to apply conversions to
classes of similar meters. For example to allow the following
sample derivations:

  * disk.read.requests (request) -> disk.read.requests.rate (request/s)
  * disk.write.requests (request) -> disk.write.requests.rate (request/s)
  * disk.read.bytes (B) -> disk.read.bytes.rate (B/s)
  * disk.write.bytes (B) -> disk.write.bytes.rate (B/s)

to be mapped via a single transformer config:

    transformers:
        - name: "rate_of_change"
          parameters:
              source:
                  map_from:
                      name: "disk\\.(read|write)\\.(bytes|requests)"
                      unit: "(B|request)"
              target:
                  map_to:
                      name: "disk.\\1.\\2.rate"
                      unit: "\\1/s"
                  type: "gauge"

Change-Id: I94b6bfbef538a8b067c3c5ff65066505a199bc5a
Add new rate-based disk and network pipelines

Addresses: BP rates-derived-from-cumulative

Add new pipeline config to derive rate-based gauge meters
from the current set of cumulative disk and network meters
gathered by the compute agent.

The latter form of meter is not suitable for alarming
against a static threshold, whereas rate-based meters would
allow for example autoscaling actions to be driven off the
observed per-second rates of I/O.

Change-Id: I5764797d4eebb129b66a1524d47c38282c6ef095
Return trait type from Event api

fixes bug 1268032

Change-Id: I6949c1cdeab4d3b1916d90c02e12da79bda38e35
Merge "Remove dependencies on pep8, pyflakes and flake8"
assertTrue(isinstance) replace by assertIsInstance

some of tests use different method of assertTrue(isinstance(A, B))
or assertEqual(type(A), B). The correct way is to use
assertIsInstance(A, B) provided by testtools

Change-Id: I7072fef7fe5f76e526fc0ccca7a4894accaae80f
Closes-Bug: #1268480
Improve consistency of help strings

Fixes include rework of text, missing or extra spaces, wrong
capitalization and no sentence style capitalization.

Co-Authored-By: Diane Fleming <diane.fleming@rackspace.com>
Change-Id: I480a8f1816b0698a10165318fe25b4f58e8d2700
Added resources support in pollster's interface

1. Change the pollster's interface to support resources:
- Added optional parameter 'resources' to the method get_samples. It
  specifies a list of the endpoints from which the pollster would get
  data.

2. Change the PollingTask to record the resources for each pollster.

3. Pass the resources recorded in PollingTask to the pollsters in
central agent.

This patch only changes the interface of pollsters and PollingTask in
central agent. The existing central agent's pollsters still ignore the
resources passed in by the PollingTask.

Implements: blueprint support-resources-pipeline-item
Change-Id: Ic7a83c63ea291d0527004113bc8d8bb09311d14f
Exit expirer earlier if db-ttl is disabled

Now, the ceilometer-expirer exit without doing the backend db request if
the db-ttl is disabled.

Fixes bug #1270760

Change-Id: I49580be14cd932317ff30070aeec391ef456712e
use six.move.xrange replace xrange

in python3.x, there is no method named xrange(),
it has replaced by range(),which is equal to xrange()
in python2.x. so we must fix this issue.
we use six moduleto fix this issue.

Closes-Bug: #1268439
Change-Id: I7aa8fe80155710cd639721d4b3d5bd9b4219e27d
Convert alarm timestamp to PrecisionTimestamp

Before the timestamps for alarm are stored in a datetime
In mysql, datetimes have only second precision, and the datetimes are
rounded.

This patch, change the Datetime by the PrecisionTimestamp Column Type, like
the sample and the event timestamps that demand the same precision.

Change-Id: Iad10c621b276fc40b9965d01bc460bcc834b473a
Set the SQL Float precision

By default mysql use a precision of 23 to store a Float and
sqlite/postgresql use 53.

The patch set the precision of Float to 53 to force all sql backends to
use the same double precision.

Change-Id: I36680ed180999e401e45428af068fd32126247da
StringIO compatibility for python3

StringIO can be replaced with six.moves.StringIO which can provide
compatibility for Python 2 and 3. So does cStringIO.

Change-Id: Ieed1e97f1832e56717bc905114eb73fd6c4c4d04
Fix the Alarm documentation of Web API V2

Correct the Alarm example on the API documentation to contain a
valid Alarm sample and complete the Note section with information
about the connection between the type and rules fields of the
Alarm.

Fixes bug #1245362

Change-Id: Id7209d3f7a7ab29a50bdb1dfbe90937b1c7c6c8d