Make the instance counters use the same type

The version of the counter emitted by the pollster in the
compute agent and the version produced by the notification
handler use a different "type" value. Make them both
gauge.

Change-Id: I40c21b458c2e3bf945b08bbed1ae962c20b15795
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Set version 0.1

Update the version number in setup.py to the first release number
in preparation for the release.

Change-Id: Ic16da1041ed92fb2a7ed5b30f5f5f80adc28bd78
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Initialize the control_exchange setting

The definition of the control_exchange option
was commented out in openstack.common.rpc because
each application needs to set its own default.
Adding the value here puts ceilometer on the
"ceilometer" exchange, just as the other OpenStack
projects are on their own project-specific exchange.

Change-Id: If420422f0c65f6c579827c59504c936bc7c926a8
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Fix the configuration for the nova notifier

The global config object inside the ceilometer copy
of openstack.common.cfg was not being configured,
which meant the RPC code in openstack.common.rpc
was not set up. That lead to an infinite loop
when the notifier was invoked, since it tried
to connect to the message bus over and over and over.
This change forces the configuration object to be
loaded from the ceilometer agent configuration file,
assumed to be in /etc/ceilometer/ceilometer-agent.conf.

It also changes the notifier to do that initialization
the first time it is used, rather than when the module
is imported. This prevents the tests from loading the
module and initializing the config object, causing
exceptions in any subsequent code that tries to add
new configuration options.

Also folded into this changeset is a fix to use
the right db method to load the instance. Notification
messages contain the UUID of the object, not the
numerical key from the id column of the table. Therefore,
we need to use db.instance_get_by_uuid() instead of
db.instance_get().

Change-Id: I45719ab879ae6163329b6a886dee3e82ed4bc260
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
Merge "Make the instance counters use the same type"
Prime counter table

Document the list of counters which are currently implemented.
Specify meter type, volume and resource in the table

Addresses bug #1030120

Change-Id: Id2e454144194a1a33534e6e74f60b4f8a5fd3e6f
Merge "Initialize the control_exchange setting"
Merge "Fix the configuration for the nova notifier"
Move net function in class method and fix instance id

The instance id copied is not the UUID, so it's useless because it does not
help to associate network with instances.

Also, move make_vnic_counter function into a class method since it's not
used anywhere else.

This fixes bug #1063693

Change-Id: I31366d0edaf1f2768a9b7fe349faae2cc5c99e3e
Signed-off-by: Julien Danjou <julien@danjou.info>
Merge "Prime counter table"
network: do not emit counter on exists event, fix resource id

We only emit resource counters like "network.create" when the event is not
something like "network.exists", and we now emit it on the resource itself,
not on 'network'.

This fixes bug #1062949

Change-Id: Id36bc3818107bf7b806096b7aee670d7b18215a4
Signed-off-by: Julien Danjou <julien@danjou.info>
Add documentation for configuration options

Solves bug Bug #1021439

Change-Id: Icf9cea5bf5285923a0442386f788660bca918409
Merge "Move net function in class method and fix instance id"
Merge "Add documentation for configuration options"
Add general options

Add general openstack-common options to the documentation.

Fixes Bug #1063709

Add missing references and fix formatting in folsom.rst.

Change-Id: Idccc32db021e85c70e9d377c8988e94d8a84b5d0
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>