Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add health and metrics port mapping for placement stand-alone mode #1323

8 changes: 7 additions & 1 deletion pkg/standalone/standalone.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ const (
DaprZipkinContainerName = "dapr_zipkin"

errInstallTemplate = "please run `dapr uninstall` first before running `dapr init`"

healthPort = 58080
metricPort = 59090
)

var (
Expand Down Expand Up @@ -520,7 +523,10 @@ func runPlacementService(wg *sync.WaitGroup, errorChan chan<- error, info initIn
}

args = append(args,
"-p", fmt.Sprintf("%v:50005", osPort))
"-p", fmt.Sprintf("%v:50005", osPort),
"-p", fmt.Sprintf("%v:8080", healthPort),
"-p", fmt.Sprintf("%v:9090", metricPort),
)
}

args = append(args, image)
Expand Down
Loading