-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Hello! We've some requirements to expose metrics in an TLS endpoint. Simple HttpServer added this constructor in 0.7.0 to allow https server to be passed.
If we add conf to specify keystore and other related configs, we can create an HttpsServer in JavaAgent.
I've made it work here - senthilkumarkj#1
However, I'm not sure what's the best way to add the new configs for the server. Currently server related conf (host and port) are part of options itself.
I've a couple of proposals.
- Add the new configs (such as TLSEnabled, Keystore path, password etc) in the same config file separated by yaml directive
---
and config names prefixed with "server" like
---
serverTLSEnabled: true
serverKeyStorePath: <path>
serverKeyStorePassword: secret
But the problem is config file is parsed in collector only. We may need to parse the same file twice one in agent and one in collector.
- Add a new server config file. This is what I've done in my CL. But I need to make sure if the server config isn't given, agent should still work and shouldn't complain to be backward compatible.
Please let me know your thoughts on this. Thanks!
shyam334, stigmelling, 1123, al-bar, mebagel and 2 more
Metadata
Metadata
Assignees
Labels
No labels