Package io.prometheus.jmx
Class JavaAgent
- java.lang.Object
-
- io.prometheus.jmx.JavaAgent
-
-
Constructor Summary
Constructors Constructor Description JavaAgent()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidagentmain(String agentArgument, Instrumentation instrumentation)static io.prometheus.jmx.JavaAgent.ConfigparseConfig(String args, String ifc)Parse the Java Agent configuration.static voidpremain(String agentArgument, Instrumentation instrumentation)
-
-
-
Constructor Detail
-
JavaAgent
public JavaAgent()
-
-
Method Detail
-
agentmain
public static void agentmain(String agentArgument, Instrumentation instrumentation) throws Exception
- Throws:
Exception
-
premain
public static void premain(String agentArgument, Instrumentation instrumentation) throws Exception
- Throws:
Exception
-
parseConfig
public static io.prometheus.jmx.JavaAgent.Config parseConfig(String args, String ifc)
Parse the Java Agent configuration. The arguments are typically specified to the JVM as a javaagent as-javaagent:/path/to/agent.jar=<CONFIG>. This method parses the<CONFIG>portion.- Parameters:
args- provided agent argsifc- default bind interface- Returns:
- configuration to use for our application
-
-