embedded Agent
Builds an EmbeddedAgentConfig in a block whose receiver is its builder:
val agent =
embeddedAgent {
name = "my-app"
proxy = "proxy.example.com:50051"
scrapeSelf(path = "my_app_metrics", port = 8080)
}
agent.start()Content copied to clipboard