GithubHelp home page GithubHelp logo

scope-iowait's Introduction

Scope IOWait Plugin

The Scope IOWait plugin is a GO application that uses iostat to provide host-level CPU IO wait or idle metrics in the Weave Scope UI.

Scope IOWait Plugin screenshot

How to Run Scope IOWait Plugin

The Scope IOWait plugin can be executed stand alone. It will respond to GET /report request on the /var/run/scope/plugins/iowait/iowait.sock in a JSON format. If the running plugin has been registered by Scope, you will see it in the list of PLUGINS in the bottom right of the UI (see the red rectangle in the above figure). The measured value is shown in the STATUS section (see the circle in the above figure).

Using a pre-built Docker image

If you want to make sure of running the latest available version of the plugin, you pull the image from docker hub.

docker pull weaveworksplugins/scope-iowait:latest

To run the Scope IOWait plugin you just need to run the following command.

docker run --rm -ti \
	--net=host \
	-v /var/run/scope/plugins:/var/run/scope/plugins \
	--name weaveworksplugins-scope-iowait weaveworksplugins/scope-iowait:latest

Kubernetes

If you want to use the Scope IOWait plugin in an already set up Kubernetes cluster with Weave Scope running on it, you just need to run:

kubectl apply -f https://github.com/weaveworks-plugins/scope-iowait/tree/master/deployments/k8s-iowait.yaml

Recompiling an image

git clone [email protected]:weaveworks-plugins/scope-iowait.git
cd scope-iowait; make;

How to use Scope IOWait Plugin

The plugin can show in the UI 2 metrics collected by iostat:

  • Idle: show the percentage of time that the CPU or CPUs were idle and the system did not have an outstanding disk I/O request. This metrics is shown by the default.
  • IO Wait: Show the percentage of time that the CPU or CPUs were idle during which the system had an outstanding disk I/O request.

To switch between metrics you can use the controls. The clock icon (see green box in the above figure) switches to IO Wait metric and the gears icon switches to idle metric.

scope-iowait's People

Watchers

James Cloos avatar elricwin avatar  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.