SamYuan1990 opened a new issue #3951: URL: https://github.com/apache/couchdb/issues/3951
[NOTE]: # ( ^^ Provide a general summary of the request in the title above. ^^ ) ## Summary Easy enablement for prometheus feature by environment variables [NOTE]: # ( Provide a brief overview of what the new feature is all about. ) ## Desired Behaviour [NOTE]: # ( Tell us how the new feature should work. Be specific. ) [TIP]: # ( Do NOT give us access or passwords to your actual CouchDB! ) For sample as `COUCHDB_USER`, as a user, I want to enable prometheus related feature by environment value as ``` [prometheus] additional_port = false bind_address = 127.0.0.1 port = 17986 ``` `prometheus_additional_port` `prometheus_bind_address` `prometheus_port` ## Possible Solution [NOTE]: # ( Not required. Suggest how to implement the addition or change. ) Not sure if https://github.com/apache/couchdb/blob/main/configure#L247 this line is useless. if not, take prometheus_port as sample: ``` {prometheus_port, $prometheus_port} ``` and in rel/overlay/etc/default.ini ``` [prometheus] additional_port = false bind_address = 127.0.0.1 port = {{prometheus_port}} ``` ## Additional context [TIP]: # ( Why does this feature matter to you? What unique circumstances do you have? ) N/A -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
