-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
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
[BUG] The backend ServerMetric is not correct #294
Comments
I don't think it's a bug. It's not only |
Yes, every backend manager will inherit What I wonder is that the For example, the proxy server has two backend managers. One has three backends and the other has five backends. Now the backend metric will only be one of these tow values while the actual value may be greater than three and smaller than five. The related codes as following shows: // SetBackendCount sets the number of backend connection.
func (a *ServerMetrics) SetBackendCount(count int) {
a.backend.WithLabelValues().Set(float64(count))
}
func (s *DefaultBackendStorage) AddBackend(identifier string, idType pkgagent.IdentifierType, conn agent.AgentService_ConnectServer) Backend {
// ...
addedBackend := newBackend(conn)
// ...
metrics.Metrics.SetBackendCount(len(s.backends))
// ...
return addedBackend
} |
Thanks for your explanation, let's go on with your fix. proxy server is designed to support multiple backend managers, though currently only one is used. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This also fixes kubernetes-sigs#294
This also fixes kubernetes-sigs#294
This also fixes kubernetes-sigs#294
This also fixes kubernetes-sigs#294
This also fixes kubernetes-sigs#294
This also fixes kubernetes-sigs#294
This also fixes kubernetes-sigs#294
/assign |
This also fixes kubernetes-sigs#294
This also fixes kubernetes-sigs#294
This also fixes kubernetes-sigs#294
This also fixes kubernetes-sigs#294
This also fixes kubernetes-sigs#294
This also fixes kubernetes-sigs#294
As the konnectivity server may has multiple BackendManagers, the
backend
metric should record the total backends stored in various of BackendManager even if we can record them with a label.However, the
backend
metric is recorded by DefaultBackendStorage, which is the underlying storage implementation. It will result in only some BackendManager record its number of backends.The solution is that
backend
metric should be recorded by konnectivity server instead of DefaultBackendStorage.The text was updated successfully, but these errors were encountered: