conkw documentation - OshiGrabber

This is the system grabber using the OSHI API. This API is built on top of JNA and can drill down pretty deep in the host system. It should be noted that it is much more expensive to use than ProcGrabber, but it works on non-linux systems.

This documentation will not drill down on OSHI and its system representation. For more details on that, please refer to the OSHI documentation.

Use cases

Configuration

{
  "implementation":"net.pieroxy.conkw.webapp.grabbers.oshi.OshiGrabber",
  "name":"oshi-processes",
  "parameters": {
    "toExtract":["processes"],
    "detailedDataDelay":"5s",
    "staticDataDelay":"86400"
  }
}

The default configuration includes three of these grabbers, one configured for processes, one for services and one for the rest. Note how having three instances allows to benefit from the whole range of metrics while only consuming resources for the ones you actually have a dashboard open.

Possible extractions

sensors

Metrics:

memory

Metrics, in bytes:

physicalmemory

Metrics:

For each module number i (starting at zero):

virtualmemory

Metrics:

computer

Metrics:

baseboard

Metrics:

firmware

Metrics:

cpu

Metrics:

cpubycore

Metrics:

For each core i :

cpuident

Metrics:

displays

Metrics:

For each display i (from 0 to num.displays_count-1):

disksio

Metrics:

For each one of the disks d :

disksinfos

Metrics:

For each one of the disks d :

graphicscards

Metrics:

For each one of those graphics card i, starting at zero:

nics

Metrics:

For each one of those nics i, starting at zero:

netbw

Metrics:

For each one of those interfaces i, starting at zero:

battery

Metrics are extracted for the first battery only:

psus

Metrics:

For each one PSU i :

soundcards

Metrics:

For each one soundcard i :

usb

List all USB devices in the system. Metrics:

For each one device i :

os

Metrics:

filestores

Metrics:

For each filestore i :

tcpv4

Metrics:

tcpv6

Metrics:

udpv4

Metrics:

udpv6

Metrics:

sessions

Metrics:

For each session i :

shortsessions

A summarized view of the sessions by user. Metrics:

For each item i :

netp

The network parameters. Metrics:

processes

Note This extraction is particularly expensive on the host system. You may not want to leave it running for long periods of time.

Metrics:

For each process p:

services

Note This extraction is particularly expensive on the host system. You may not want to leave it running for long periods of time.

Metrics:

For each service s :