Skip to main content

Metering library for Watcher

Project description

Introduction

Watcher Metering collects system metrics and publishes them to a store. To do so, it is composed of two elements:

  • The Agent who collects the desired metrics and sends it to a publisher. The Agent is meant to run on each monitored host (container, VM, …)

  • The Publisher who gathers measurements from one or more agent and pushes them to the desired store. The currently supported stores are Riemann (for CEP) and Ceilometer.

This project is part of the Watcher project.

For more information on Watcher, you can also refer to its OpenStack wiki page.

Getting started

Installing Requirements Linux Ubuntu

Linux Debian Procedure should work on Ubuntu and similar distributions:

You need to install the following packages:

$ sudo apt-get update
$ sudo apt-get install build-essential python-dev autoconf libtool unzip wget

Moreover, this package uses nanomsg and nanoconfig as socket library. As no official Debian nor RedHat package has been released yet, these two have to be compiled from the sources.

Installing nanomsg

$ wget https://github.com/nanomsg/nanomsg/archive/0.6-beta.zip
$ unzip 0.6-beta.zip
$ cd nanomsg-0.6-beta
$ ./autogen.sh
$ ./configure
$ make -j8
$ sudo make install
$ sudo ldconfig /usr/local/lib

Please also refer the instructions available on their README files.

Installing nanoconfig

$ wget https://github.com/nanomsg/nanoconfig/archive/master.zip
$ unzip master.zip
$ cd nanomsg-master
$ cmake .
$ make
$ sudo make install
$ sudo ldconfig /usr/local/lib

Please also refer the instructions available on their README files.

Configuration

Agent

The Agent configuration file sample, which is located at $(PROJECT_DIR)/etc/watcher-metering/agent.conf (where PROJECT_DIR is the root folder of this project) contains all the explanations for each of its field. Please refer to these notes to fully understand the role of each one of them.

To run the agent you can use the following command:

$ watcher-metering-agent --config-file=/etc/watcher-metering/agent.conf

Or even:

$ watcher-metering-agent --config-dir=/etc/watcher-metering

This alternative will automatically take into account any other file containing some configuration related to the agent (useful for dynamically including third-party driver configuration).

But if you want to learn more about all the options this command provides you can still use the following to access its documentation:

$ watcher-metering-agent --help

Publisher

The Publisher configuration file (located at /etc/watcher-metering/publisher.conf) contains all the explanations for each of its field. Please refer to these notes to fully understand the role of each one of them.

To run the publisher you can use the following command:

$ watcher-metering-publisher \
    --config-file=/etc/watcher-metering/publisher.conf

Or even:

$ watcher-metering-publisher --config-dir=/etc/watcher-metering

This alternative will automatically take into account any other file containing some configuration related to the publisher (useful for dynamically including third-party driver configuration).

But if you want to learn more about all the options this command provides you can still use the following to access its documentation:

$ watcher-metering-publisher --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-watcher_metering-0.19.8.0b0.tar.gz (88.8 kB view hashes)

Uploaded Source

Built Distribution

python_watcher_metering-0.19.8.0b0-py2.py3-none-any.whl (63.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page