DataBot Metric Reference: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 10: Line 10:


==Platform Metrics==
==Platform Metrics==
CPU


* <span id=""></span>CpuUserTime ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuUserTime.java GitHub])
* <span id=""></span>CpuUserTime ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuUserTime.java GitHub])
Line 19: Line 21:
* <span id=""></span>CpuSoftwareInterruptTime ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuSoftwareInterruptTime.java GitHub])
* <span id=""></span>CpuSoftwareInterruptTime ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuSoftwareInterruptTime.java GitHub])
* <span id=""></span>CpuStolenTime ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuStolenTime.java GitHub])
* <span id=""></span>CpuStolenTime ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/CpuStolenTime.java GitHub])
* LoadAverageLastMinute
 
* LoadAverageLastFiveMinutes
Memory
* LoadAverageLastTenMinutes
 
* <span id="PhysicalMemoryTotal">[[Proc-meminfo#MemTotal|PhysicalMemoryTotal]]</span> ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/PhysicalMemoryTotal.java GitHub])
* <span id="PhysicalMemoryTotal">[[Proc-meminfo#MemTotal|PhysicalMemoryTotal]]</span> ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/PhysicalMemoryTotal.java GitHub])
* <span id="PhysicalMemoryFree">[[Proc-meminfo#MemFree|PhysicalMemoryFree]]</span> ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/PhysicalMemoryFree.java GitHub])
* <span id="PhysicalMemoryFree">[[Proc-meminfo#MemFree|PhysicalMemoryFree]]</span> ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/PhysicalMemoryFree.java GitHub])
* <span id="PhysicalMemoryUsed">[[Proc-meminfo#Physical_Memory_Used_by_Processes|PhysicalMemoryUsed]]</span> ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/PhysicalMemoryUsed.java GitHub])
* <span id="PhysicalMemoryUsed">[[Proc-meminfo#Physical_Memory_Used_by_Processes|PhysicalMemoryUsed]]</span> ([https://github.com/NovaOrdis/events-api/blob/master/src/main/java/io/novaordis/events/api/metric/os/mdefs/PhysicalMemoryUsed.java GitHub])
Swap
* SwapTotal
* SwapTotal
* SwapUsed
* SwapUsed
* SwapFree
* SwapFree
Load Average
* LoadAverageLastMinute
* LoadAverageLastFiveMinutes
* LoadAverageLastTenMinutes


==JBoss CLI Metrics==
==JBoss CLI Metrics==

Revision as of 10:00, 10 September 2017

Internal

Metrics

events-api Metric Definitions

events-api Metric Definition

Platform Metrics

CPU

Memory

Swap

  • SwapTotal
  • SwapUsed
  • SwapFree

Load Average

  • LoadAverageLastMinute
  • LoadAverageLastFiveMinutes
  • LoadAverageLastTenMinutes

JBoss CLI Metrics

DataBot can be configured to read CLI metrics from JBoss controllers. The controller is identified by its host, port and username controller components. If none of these are explicitly specified, the localhost:9999 and local authentication are assumed, which means the DataBot process has to be collocated with the JBoss controller on the same host. Support for password externalization will be implemented in the future.

Syntax:

jboss:[[username:password@]host[:port]]/path-element-1/path-element-2/attribute-name

Example:

jboss:/subsystem=infinispan/cache-container=clustered/distributed-cache=web/number-of-entries
jboss:localhost/subsystem=infinispan/cache-container=clustered/distributed-cache=web/number-of-entries
jboss:localhost:9999/subsystem=infinispan/cache-container=clustered/distributed-cache=web/number-of-entries
jboss:test:test123@localhost:9999/subsystem=infinispan/cache-container=clustered/distributed-cache=web/number-of-entries

Types

JBoss CLI attributes are typed, the controller knows and sends the correct type back. DataBot uses the type to build typed Property instances.

Classpath

The JBoss CLI client requires specific libraries added to the DataBot classpath, and instead of shipping those libraries with the installation bundle, DataBot must be configured to detect and use the libraries from a JBoss instance it has access to. In order to enable DataBot to build the classpath fragment, jboss_home must be specified in the configuration file. Example:

...
jboss_home=/usr/jboss
...