Skip to content
Snippets Groups Projects
Commit 9a1b119c authored by Alex Ellis (VMware)'s avatar Alex Ellis (VMware)
Browse files

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: default avatarAlex Ellis (VMware) <alexellis2@gmail.com>
parent 949810c4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment