You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Currently, dynamic modules support metrics without labels. However, many real-world use cases may want to emit metrics with labels, some of which whose values may not be known in advance. A consequence of this is that the full metric name including the tags may need to be created during HTTP processing rather than HTTP filter factory construction.
This issue tracks the work to support these metrics.
Relevant Links:
The Istio stats filter as an example of how stats are used in custom filters
Activity
wtzhang23 commentedon Sep 5, 2025
One potential way of supporting metrics with labels: #41003. Idea is to make the abi similar to how you would define metrics in a service, e.g. golang: https://pkg.go.dev/github.com/prometheus/client_golang/prometheus#NewCounterVec. One limitation of this approach is that label values aren't cached across different filter instances. I initially thought that we could support caching label values through tagged unions, but thought that would complicate the ABI significantly.
dynamic modules: support metrics with labels by defining metric vecto…
dynamic modules: support metrics with labels by defining metric vecto…