Add IMGPROXY_PROMETHEUS_NAMESPACE config (#405)

* Add IMGPROXY_PROMETHEUS_NAMESPACE config

* Add documentations about IMGPROXY_PROMETHEUS_NAMESPACE

Co-authored-by: Alexey Remizov <alexey.remizov@sport24.ru>
This commit is contained in:
Alexey Remizov
2020-06-10 16:11:14 +03:00
committed by GitHub
parent ebc7d0e644
commit b783e8bebf
3 changed files with 39 additions and 24 deletions

View File

@@ -231,7 +231,8 @@ type config struct {
NewRelicAppName string
NewRelicKey string
PrometheusBind string
PrometheusBind string
PrometheusNamespace string
BugsnagKey string
BugsnagStage string
@@ -389,6 +390,7 @@ func configure() error {
strEnvConfig(&conf.NewRelicKey, "IMGPROXY_NEW_RELIC_KEY")
strEnvConfig(&conf.PrometheusBind, "IMGPROXY_PROMETHEUS_BIND")
strEnvConfig(&conf.PrometheusNamespace, "IMGPROXY_PROMETHEUS_NAMESPACE")
strEnvConfig(&conf.BugsnagKey, "IMGPROXY_BUGSNAG_KEY")
strEnvConfig(&conf.BugsnagStage, "IMGPROXY_BUGSNAG_STAGE")