We would like to introduce a global configuration option to control whether the metrics API endpoint is publicly exposed.
To minimize unnecessary exposure, this endpoint will be disabled by default, and users can enable it as needed.
Config example:
server:
metrics: public # default: private
Environment env: DAGU_SERVER_METRICS=public
Any suggestions or concerns are very welcome.
cc: @jeremydelattre59 @ghansham
Suggested by @kriyanshii