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.5.tar.gz (88.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_watcher_metering-0.19.5-py2.py3-none-any.whl (63.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file python-watcher_metering-0.19.5.tar.gz.

File metadata

File hashes

Hashes for python-watcher_metering-0.19.5.tar.gz
Algorithm Hash digest
SHA256 e68d99d902b4dfc14cc2307328ad88a0ca2f0c90ccb257177060395aeb22c99a
MD5 4d2893409c4094be8d9bf30d0e7a2436
BLAKE2b-256 f3e689b78663562758299815c68f717ae9a59af2f2f357a4e0f0ff15ab7b1bf1

See more details on using hashes here.

File details

Details for the file python_watcher_metering-0.19.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for python_watcher_metering-0.19.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 839003dfd9fe04879fd4731f3ff9dc7d981999507bfe4e305b6d9659cd7d21e1
MD5 f010b5a21266d3b6a0d49d2cd7f936c7
BLAKE2b-256 6dc819660158f04b7b871bef0b49056ba352ab20e785b1668f0949d03135e47c

See more details on using hashes here.

Supported by

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