GithubHelp home page GithubHelp logo

isabella232 / snap-plugin-collector-load Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intelsdi-x/snap-plugin-collector-load

0.0 0.0 0.0 73 KB

Collects Linux load average from /proc/loadavg

Home Page: http://snap-telemetry.io/

License: Apache License 2.0

Shell 36.17% Ruby 18.64% Python 11.66% Go 31.28% Makefile 2.24%

snap-plugin-collector-load's Introduction

DISCONTINUATION OF PROJECT

This project will no longer be maintained by Intel. Intel will not provide or guarantee development of or support for this project, including but not limited to, maintenance, bug fixes, new releases or updates. Patches to this project are no longer accepted by Intel. If you have an ongoing need to use this project, are interested in independently developing it, or would like to maintain patches for the community, please create your own fork of the project.

Snap collector plugin - load

This plugin collects metrics from /proc/loadavg kernel interface about load average figures giving the number of jobs in the run queue (state R) or waiting for disk I/O (state D) averaged over 1, 5, and 15 minutes.

It's used in the Snap framework.

  1. Getting Started
  1. Documentation
  1. Community Support
  2. Contributing
  3. License
  4. Acknowledgements

Getting Started

System Requirements

Operating systems

All OSs currently supported by Snap:

  • Linux/amd64

Installation

Download the plugin binary:

You can get the pre-built binaries for your OS and architecture from the plugin's GitHub Releases page. Download the plugin from the latest release and load it into snapteld (/opt/snap/plugins is the default location for Snap packages).

To build the plugin binary:

Fork https://github.com/intelsdi-x/snap-plugin-collector-load

Clone repo into $GOPATH/src/github.com/intelsdi-x/:

$ git clone https://github.com/<yourGithubID>/snap-plugin-collector-load.git

Build the Snap load plugin by running make within the cloned repo:

$ make

This builds the plugin in ./build/

Configuration and Usage

Plugin may be additionally configured with path to /proc/loadavg file. It may be useful for running plugin in Docker container. Example configuration provided in Examples In case configuration is not provided in task manifest, plugin will use default path /proc/loadavg

Documentation

Collected Metrics

This plugin has the ability to gather the following metrics:

Namespace Description (optional)
/intel/procfs/load/min1 number of jobs in the run queue (state R) or waiting for disk I/O (state D) averaged over 1 minute
/intel/procfs/load/min5 number of jobs in the run queue (state R) or waiting for disk I/O (state D) averaged over 5 minutes
/intel/procfs/load/min15 number of jobs in the run queue (state R) or waiting for disk I/O (state D) averaged over 15 minutes
/intel/procfs/load/min1_rel number of jobs in the run queue (state R) or waiting for disk I/O (state D) averaged over 1 minute per core
/intel/procfs/load/min5_rel number of jobs in the run queue (state R) or waiting for disk I/O (state D) averaged over 5 minutes per core
/intel/procfs/load/min15_rel number of jobs in the run queue (state R) or waiting for disk I/O (state D) averaged over 15 minutes per core
/intel/procfs/load/runnable_scheduling The number of currently runnable kernel scheduling entities (processes, threads).
/intel/procfs/load/existing_scheduling The number of kernel scheduling entities that currently exist on the system

Examples

Example of running Snap load collector and writing data to file.

In terminal go to examples/tasks directory and execute run-mock-load.sh:

$ cd examples/tasks && ./run-mock-load.sh

Script will start docker container in which it will download load collector, passthru processor and file publisher. Then it will start Snap daemon, load all plugins and start example task.

Type snaptel task list to get the list of active tasks

$ snaptel task list
ID                                       NAME                                            STATE           HIT     MISS    FAIL    CREATED                 LAST FAILURE
95b9fd8b-42d8-4836-be08-3865ba1f7926     Task-95b9fd8b-42d8-4836-be08-3865ba1f7926       Running         146     0       0       11:44AM 11-17-2016

See realtime output from snaptel task watch <task_id> (CTRL+C to exit)

$ snaptel task watch 95b9fd8b-42d8-4836-be08-3865ba1f7926
Watching Task (95b9fd8b-42d8-4836-be08-3865ba1f7926):
NAMESPACE                                DATA    TIMESTAMP
^Cntel/procfs/load/min1                  0.38    2016-11-17 11:47:45.801133834 +0000 UTC
/intel/procfs/load/min15                 0.43    2016-11-17 11:47:45.801146089 +0000 UTC
/intel/procfs/load/runnable_scheduling   1       2016-11-17 11:47:45.801163284 +0000 UTC

Stop task:

$ snaptel task stop 02dd7ff4-8106-47e9-8b86-70067cd0a850
Task stopped:
ID: 02dd7ff4-8106-47e9-8b86-70067cd0a850

Type 'exit' when your done

Roadmap

There isn't a current roadmap for this plugin, but it is in active development. As we launch this plugin, we do not have any outstanding requirements for the next release. If you have a feature request, please add it as an issue and/or submit a pull request.

Community Support

This repository is one of many plugins in Snap, a powerful telemetry framework. See the full project at http://github.com/intelsdi-x/snap.

To reach out to other users, head to the main framework.

Contributing

We love contributions!

There's more than one way to give back, from examples to blogs to code updates. See our recommended process in CONTRIBUTING.md.

License

Snap, along with this plugin, is an Open Source software released under the Apache 2.0 License.

Acknowledgements

snap-plugin-collector-load's People

Contributors

andrzej-k avatar geauxvirtual avatar katarzyna-z avatar kindermoumoute avatar lmroz avatar marcin-krolik avatar mkleina avatar nanliu avatar nguyenddn avatar taotod avatar yajuan-shi avatar zhengqingyuan avatar

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.