Add gateway_service_count metric for external provider

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis
2017-08-24 23:15:38 +01:00
parent 5254f47c26
commit c163b7d2a8
2 changed files with 74 additions and 0 deletions

View File

@ -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)