Package io.prometheus.jmx
Class JavaAgent
java.lang.Object
io.prometheus.jmx.JavaAgent
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidagentmain(String agentArgument, Instrumentation instrumentation) parseConfig(String args, String ifc) Parse the Java Agent configuration.static voidpremain(String agentArgument, Instrumentation instrumentation)
-
Field Details
-
CONFIGURATION_REGEX
- See Also:
-
-
Constructor Details
-
JavaAgent
public JavaAgent()
-
-
Method Details
-
agentmain
public static void agentmain(String agentArgument, Instrumentation instrumentation) throws Exception - Throws:
Exception
-
premain
- Throws:
Exception
-
parseConfig
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
-