[debug] allow to expose activate via config (#1284)

This CL addresses issue #1177 introducing two new configuration params
allowing to activate pprof.
- `ATHENS_ENABLE_PPROF`
- `ATHENS_PPROF_PORT`

pprof won't be exposed by default.
This commit is contained in:
Benjamin
2019-06-24 20:59:15 +02:00
committed by marpio
parent dea04b175f
commit e832c83ecd
4 changed files with 29 additions and 0 deletions
+8
View File
@@ -43,6 +43,14 @@ LogLevel = "debug"
# Env override: ATHENS_CLOUD_RUNTIME
CloudRuntime = "none"
# EnablePprof specifies if the pprof endpoints should be exposed.
# Note that this option is not meant to be activated forever on a server
# and should be desactivated once not needed.
EnablePprof = false
# PprofPort specifies the port on which pprof will be exposed if activated.
PprofPort = ":3001"
# The filename for the include exclude filter.
# Env override: ATHENS_FILTER_FILE
#