Skip to content

Ceilometer Getting Started

woorea edited this page Jul 26, 2012 · 3 revisions

Ceilometer Getting Started

This document explains how to compile and install ceilometer-java

Install from source

Download OpenStack Java SDK

$git clone https://github.com/woorea/openstack-java-sdk
$cd openstack-java-sdk/ceilometer-java
$mvn clean compile assembly:assembly

The commands above will create the following artefacts:

  1. ceilometer-compute-agent-with-jar-dependencies.jar
  2. ceilometer-collector-with-jar-dependencies.jar
  3. ceilometer-api-with-jar-dependencies.jar

Ceilometer Compute Agent

Ceilometer compute agent is should run on each compute node

You can configure the agent parameter under /etc/ceilometer/ceilometer-compute-agent.properties

The following is the default configuration

mq.host=localhost
mq.username=guest
mq.password=guest

mq.ceilometer.exchange_name=metering
mq.ceilometer.routing_key=ceilometer.compute_agent

libvirt.uri=qemu:///system

Ceilometer Collector

Ceilometer collector is should run at least in one box

You can configure the collector parameters under /etc/ceilometer/ceilometer-collector.properties

The following is the default configuration

mq.host=localhost
mq.username=guest
mq.password=guest

mq.metering.exchange_name=metering
mq.metering.routing_key=ceilometer.#
mq.metering.queue_name=ceilometer_collector

mongodb.host=localhost
mongodb.port=27017
#mongodb.username=
#mongodb.password=

Ceilometer API

Ceilometer API should run at least in one box

You can configure the api parameters under /etc/ceilometer/ceilometer-api.properties

The following is the default configuration

mongodb.host=localhost
mongodb.port=27017
#mongodb.username=
#mongodb.password=

Testing with cURL

TODO

Clone this wiki locally