trait SigarProvider extends AnyRef

Provide sigar instance as SigarProxy.

User can provision sigar classes and native library in one of the following ways:

1) Use Kamon sigar-loader as a project dependency for the user project. Metrics extension will extract and load sigar library on demand with help of Kamon sigar provisioner.

2) Use Kamon sigar-loader as java agent: java -javaagent:/path/to/sigar-loader.jar Kamon sigar loader agent will extract and load sigar library during JVM start.

3) Place sigar.jar on the classpath and sigar native library for the o/s on the java.library.path User is required to manage both project dependency and library deployment manually.

Source
Provision.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SigarProvider
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def extractFolder: String

    Library extract location.

Concrete Value Members

  1. def createSigarInstance: SigarProxy

    Create sigar instance with 2-phase sigar library loading.

    Create sigar instance with 2-phase sigar library loading. 1) Assume that library is already provisioned. 2) Attempt to provision library via sigar-loader.

  2. def isNativeLoaded: Boolean

    Verify if sigar native library is loaded and operational.

  3. def provisionSigarLibrary(): Unit

    Extract and load sigar native library.

  4. def verifiedSigarInstance: SigarProxy

    Create sigar and verify it works.