trait SigarProvider extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- SigarProvider
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def extractFolder: String
Library extract location.
Concrete Value Members
- 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.
- def isNativeLoaded: Boolean
Verify if sigar native library is loaded and operational.
- def provisionSigarLibrary(): Unit
Extract and load sigar native library.
- def verifiedSigarInstance: SigarProxy
Create sigar and verify it works.
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 theclasspath
and sigar native library for the o/s on thejava.library.path
User is required to manage both project dependency and library deployment manually.