DISCONTINUATION OF PROJECT.
This project will no longer be maintained by Intel.
This project has been identified as having known security escapes.
Intel has ceased development and contributions including, but not limited to, maintenance, bug fixes, new releases, or updates, to this project.
Intel no longer accepts patches to this 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.
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.
All OSs currently supported by Snap:
- Linux/amd64
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).
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/
- Set up the Snap framework
- Load the plugin and create a task, see example in Examples.
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
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 |
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
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.
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.
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.
Snap, along with this plugin, is an Open Source software released under the Apache 2.0 License.
- Author: Marcin Krolik