Companion

Functions

Link copied to clipboard

JVM entry point for the standalone Agent process.

Link copied to clipboard
fun startAsyncAgent(config: Config, logBanner: Boolean = true): EmbeddedAgentInfo

Starts an Agent from a config built in memory, on a background thread, and returns once it has started, as the startAsyncAgent that takes a config file does. A host that holds the agent's settings itself, such as a token, a trusted certificate (agent.tls.trustCertCollectionPem), or credentials in a scrape URL, passes them here without writing a config file that would hold them on disk.

fun startAsyncAgent(configFilename: String, exitOnMissingConfig: Boolean, logBanner: Boolean = true): EmbeddedAgentInfo

Starts an Agent on a background thread and returns once it has started, suitable for embedding inside another JVM application.

Link copied to clipboard
fun startSyncAgent(args: Array<String>, exitOnMissingConfig: Boolean)

Starts an Agent and returns once it is running.