GithubHelp home page GithubHelp logo

watcher-metering-drivers's Introduction

Watcher Metering Drivers

Introduction

Watcher Metering Drivers provides a set of metric-pulling drivers extending the Watcher Metering project which is used to collect system metrics before publishing them to a given store. To sum up, Watcher Metering service is composed by 2 modules:

  • The Agent who collects the desired metrics and sends it to a publisher.
  • The Publisher who gathers measurements from one or more agent and pushes them to the desired store.

Drivers easily extend metrics collecting features of Agent (we use stevedore library for managing plugins).

This project is part of the Watcher project.

Getting started

System requirements

Watcher Metering packages must be installed before installing the drivers. Please follow the installation procedure of the Watcher Metering project first.

Installation

To install this package, just use pip:

# pip install python-watcher_metering_drivers

Activate a driver

Within the your Watcher Metering Agent configuration file /etc/watcher-metering/watcher-metering-agent.conf, add the name of the driver entry point, in the [agent] section, you wish to enable.

As an example, if you wish to acticate both the cpu_user and the disk_free drivers, just edit the aforementioned configuration file like this:

[agent]
driver_names =
   cpu_user,
   disk_free

After updating the configuration file, you have to restart the Watcher Metering Agent.

Driver configuration

List of drivers implemented in this project are the following:
  • cpu_count: number of CPU cores available on host machine
  • cpu_user:percentage of CPU resources allocated to user processes on host machine
  • cpu_idle: percentage of CPU resources not used on host machine
  • disk_total: total disk size of host machine
  • disk_used: used disk size on host machine
  • disk_free: free disk size of host machine
  • memory_total: total memory size on host machine
  • memory_used: used memory size on host machine
  • memory_free: free memory size on host machine
  • instance_cpu_used: percentage of CPU resources used on an instance running on the host machine
  • swap_total: total memory swap size on host machine
  • swap_used: used memory swap size on host machine
  • swap_free: free memory swap size on host machine

Each driver can be also configurable by adding a dedicated section named [[metrics_driver.driver_name] in a configuration file loaded by the Watcher Metering Agent. Such a file is self documented, so you will find in it all driver configuration documentation.

You will find a sample by editing the file etc/watcher-metering-drivers/watcher-metering-drivers.conf.sample

watcher-metering-drivers's People

Contributors

davidtardivel avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

superleo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.