diff --git a/src/autoscaler/metricsforwarder/config/config.go b/src/autoscaler/metricsforwarder/config/config.go index 98534f5af6..984c4a6196 100644 --- a/src/autoscaler/metricsforwarder/config/config.go +++ b/src/autoscaler/metricsforwarder/config/config.go @@ -190,6 +190,10 @@ func (c *Config) Validate() error { return nil } func readDbFromVCAP(appEnv *cfenv.App, c *Config) error { + if c.Db != nil { + return nil + } + dbServices, err := appEnv.Services.WithTag("relational") if err != nil { return fmt.Errorf("failed to get db service with relational tag")