We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The client metrics are updated with a server interceptor.
auth.UpdateMetrics = func(ctx context.Context) { Metrics.UpdateClientMetrics(ctx) }
Which calls the function in metrics.go to update the metrics based on the context peer data:
metrics.go
// UpdateClientMetrics ... func (mc *MetricsCollection) UpdateClientMetrics(ctx context.Context) { p, ok := peer.FromContext(ctx) if ok && p != nil { ipAndPort := strings.Split(p.Addr.String(), ":") if len(ipAndPort) > 0 { mc.RPCsPerClientCounters.WithLabelValues(ipAndPort[0]).Inc() mc.LastMessageAtPerClientGauges.WithLabelValues(ipAndPort[0]).SetToCurrentTime() } } }
We need to add a similar middleware to the Web API handler, so that these metrics get updated here as well.
At the moment it is not significant as people won't add much data from the console, but once we make the embedded REST API more visible, it will.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The client metrics are updated with a server interceptor.
Which calls the function in
metrics.go
to update the metrics based on the context peer data:We need to add a similar middleware to the Web API handler, so that these metrics get updated here as well.
At the moment it is not significant as people won't add much data from the console, but once we make the embedded REST API more visible, it will.
The text was updated successfully, but these errors were encountered: