scope-iowait

command module
v0.0.0-...-9c04891 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

README

DEPRECATED: 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://raw.githubusercontent.com/weaveworks-plugins/scope-iowait/master/deployments/k8s-iowait.yaml
Recompiling an image
git clone git@github.com: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.

Getting Help

We love hearing from you and encourage you to join our community. For more information on how to get help or get in touch, see Scope's help section.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
tools

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL