mirror of
https://github.com/openfaas/faas.git
synced 2025-06-16 04:06:47 +00:00
Remove Prometheus tracking for forwarded requests
Forwarded requests were being logged in the function metrics and I saw this when doing some testing on auto-scaling with K8s. This change removes the call to the Prometheus notifier for any calls which are forwarded to the provider and retains them for the functions. Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
parent
949810c403
commit
9a1b119c9f
@ -47,7 +47,7 @@ func main() {
|
||||
Metrics: &metricsOptions,
|
||||
}
|
||||
functionNotifiers := []handlers.HTTPNotifier{loggingNotifier, prometheusNotifier}
|
||||
forwardingNotifiers := []handlers.HTTPNotifier{loggingNotifier, prometheusNotifier}
|
||||
forwardingNotifiers := []handlers.HTTPNotifier{loggingNotifier}
|
||||
|
||||
urlResolver := handlers.SingleHostBaseURLResolver{BaseURL: config.FunctionsProviderURL.String()}
|
||||
var functionURLResolver handlers.BaseURLResolver
|
||||
|
Loading…
x
Reference in New Issue
Block a user