-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Metrics for golang filter don't clean when filer removed from LDS configurations #37808
Comments
cc @doujiang24 |
okay, inherit the
Seems there isn't a way remove a stats. @StarryVae Could you please take a look? |
i also think it is more reasonable to inherit the
AFAIK, the metric is just removed with LDS update when you remove the golang filter, and there will be a new metric when you bring the filter back, maybe you can try to wait for several time like 30s or more to ensure the old golang filter config is deleted by envoy. cc @wonderflow |
@doujiang24 @StarryVae Thanks for helping.
The issue is not only when I removed golang filter with LDS and metrics is still there, but also when I add the golang filter back with a second LDS updates, the metrics number increased from the old one instead of from zero. |
Thanks @StarryVae, I have run into the same issue with WASM metrics. There are no prefixes today and the metric name is as is. Enriching it with some runtime information will be helpful. Let me know if I should create another issue to track it, happy to do it. |
If you are reporting any crash or any potential security issue, do not
open an issue in this repo. Please report the issue via emailing
[email protected] where the issue will be triaged appropriately.
Title: Metrics for golang filter don't clean when filer remove from LDS configurations
Description:
When I'm implementing golang filters with metrics, I found the metrics defined under LDS http_connection_manager via ConfigCallback (https://github.com/envoyproxy/envoy/blob/main/contrib/golang/common/go/api/filter.go#L312 ) is a global metrics.
I expect it to:
But the real behavior is:
This seems to me is a potential bug that causing memory leak.
Repro steps:
I'm using go filter via httn, the way I used is described in this PR: mosn/htnn#827
After plugin built, what I'm doing is:
Admin and Stats Output:
Config:
Logs:
Call Stack:
The text was updated successfully, but these errors were encountered: