mirror of
https://github.com/openfaas/faas.git
synced 2025-06-19 12:36:40 +00:00
Add gateway_service_count metric for external provider
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
@ -77,6 +77,8 @@ func main() {
|
||||
faasHandlers.DeployFunction = makeHandler(reverseProxy, &metricsOptions)
|
||||
faasHandlers.DeleteFunction = makeHandler(reverseProxy, &metricsOptions)
|
||||
|
||||
metrics.AttachExternalWatcher(*config.FunctionsProviderURL, metricsOptions, "func", time.Second*5)
|
||||
|
||||
} else {
|
||||
maxRestarts := uint64(5)
|
||||
|
||||
|
Reference in New Issue
Block a user