Adds doc string to query validate functions in V2 API

Rename is_timestamp_valid parameter to allow_timestamps and add
doc string to _validate_query and _validate_timestamp_fields
functions, related to the bugfix of bug 1280975.

Change-Id: I7c8564ce88d048e5b7d6d1e3c7109c5cb08e48f3
Fix typo

ceiloemter --> ceilometer

Change-Id: I0dd575606bb258888e60d5a743c20d67315c8882
Ensure user metadata mapped for instance notifications

Fixes bug 1284073

For pollster-originated samples related to instances, we apply a
mapping to the user metadata so as to ensure that there are no
embedded periods in metadata keys and also to exclude any metadata
not matching the configured reserved namespace.

Now this logic is also applied to user metadata for samples derived
from instance-related notifications in order to avoid failures when
persisting these data in mongodb.

Change-Id: I77eab59023fa23c5879b05c948bd4cb1db7fa177
Skip central agent interval_task when keystone fails

There is a chance when ceilometer-agent-central try to trigger interval_task
but keystone is not available, then an exception is raised but not caught, the
outside oslo.loopingcall will stop calling the task function, finally leading
to the agent-central service is no longer available forever, even the keystone
is available again.

We can skip the particular interval_task when keystone is not available.

Change-Id: I0849cafadac8fb8a7670aaa4cc76dc708bdb25a1
Closes-Bug: #1287613
Fix some spelling mistakes and a incorrect url

Change-Id: Id122cd98d133496e423847274d7abdbfd54262af
Rename id to alarm_id of Alarm in SqlAlchemy

This change makes the schema more consistent.

It also fixes a bug preventig querying alarm_id
on /v2/query/alarms API.

Closes-Bug: #1282667

Change-Id: Id4d67fa5ee679fe1c8d86b8575a99bfb89e384fa
Merge "Adds doc string to query validate functions in V2 API"
Enable monkeypatch for select module

When we use ceilometer with kombu (rabbitmq), sometimes when the server
is gone and ceilometer tries to reconnect to it, the connection can hang.

This is because, ceilometer monkeypatch only socket and not select, or
when kombu detect monkeypatching on the socket module, it assume the
select is monkeypatched too and use the real select.select on a eventlet
socket, and hang.

Ceilometer must enable monkeypatch for select too.

Change-Id: Ib41dcde6e5f32755ababf9227827aa8368399c9a
Closes-bug: 1288844
Merge "Ensure user metadata mapped for instance notifications"
Set storage engine for the trait_type table

Not setting the storage engine for this table can cause problems in
those MySQL installations whose default storage engine is not InnoDB.

Change-Id: Ifd0ed0ce7698eb840da87e3f393cd223dcfd36e1
Closes-Bug: #1288894
Fixes Hyper-V Inspector network metrics values

The Hyper-V inspector is currently returning the wrong metric values. The
current values are the aggregated ones, which is not correct in scenarios
in which instances have more than one nic.
Furthermore, values were taken from the
Msvm_EthernetPortAllocationSettingData, instead of
Msvm_EthernetSwitchPortAclSettingData.

Change-Id: I669ff52a1be2ee56bf69aa3b680ab42fdcaf1cb7
Closes-bug: #1289014
Merge "Enable monkeypatch for select module"
Fix broken statistics in sqlalchemy

When querying the samples for statistics calculations,
the filtering is done without joining the Sample table.
This patch fixes this.

Closes-Bug: #1289325
Change-Id: I45edc974a6c054d27ac33d5287f760bcff08cf91
VMware vSphere support: Memory Usage

1) Added vSphere Hypervisor inspector.
2) Implemented memory usage pollster to generate memory usage samples
for vSphere VMs.

Change-Id: I2aab2fdbc9d0ff4ccf8553bac19c44e463e6595a
Implements: blueprint vmware-vcenter-server
VMware vSphere: Changes for cpu_util

Added a pollster to poll CPU_Util from VMware Vsphere inspector.

Change-Id: Ibbfce0dd2ef5175f84a9b901a4653da8dca9c8b2
Implements: blueprint vmware-vcenter-server
Changes for networking metrics support for vSphere

Added pollsters to poll network bytes transferred rates from VMware
Vsphere inspector.

Change-Id: Icea673381cc3cdc5e177db23846d301eb398f53e
Implements: blueprint vmware-vcenter-server
Fix updating alarm can specify existing alarm name

when creating an alarm, we cannot specify an existing name of the
project. but when updating an alarm, we can specify an existing name.

Change-Id: Ia24347ee647e7755b50d0d5d2ff033f4c5cbeb19
Closes-bug: #1288155
VMware vSphere support: Disk rates

1) Implemented pollsters for following disk rate counters
   - disk.read.bytes.rate
   - disk.read.requests.rate
   - disk.write.bytes.rate
   - disk.write.requests.rate

2) Extended the 'virt.inspector' to return the disk rate stats via
'inspect_disk_rates()'. As of now only vmware.inspector implements this
method.

3) Wrote test cases for the newly added disk rate pollsters and
inspect_disk_rates().

Change-Id: I1089b708ae3b651c95013129dbc0129b419d2b62
Implements: blueprint vmware-vcenter-server
Add user-supplied arguments in log_handler

When using PublishErrorsHandler, it will missing user-supplied
arguments. For example, do LOG.info("blabla %s", "foo"),
the payload only contains "blabla %s", but we expect it like
"blabla foo". this bug has been fixed in oslo, just syncs it to
ceilometer.
Sync from Oslo, change-id: I91289cc4a60f5dab89bca852e6f52b4b83831e47

Change-Id: Ic2773035f6899e1ba7ec2813f79bd271dfa36b97
Implements monitoring-network-from-opendaylight

This feture is driver of the monitoring-network that collects network
info from OpenDayLight via Statistics REST API, Toporogy REST API and
Switch Manager REST API.

Implements: blueprint monitoring-network-from-opendaylight

Change-Id: Id209a05dfc83500c4aaabdece7e44241853e07dc