how to set label on the metrics
zshmmm opened this issue · 4 comments
Not sure what the question is but does this help? https://github.com/tetratelabs/proxy-wasm-go-sdk/blob/main/examples/metrics/main.go#L69-L72
answered above ^ and please follow the issue template next time.
answered above ^ and please follow the issue template next time.
@mathetake
This solution uses string concatenation and then completes it through envoy filter's stats_config. In the case of a large number of tags, this approach is not user-friendly. Moreover, if the values of the tags contain special characters such as (.: /), this method cannot handle them because they will be converted to _.
This is not the specific issue of SDK, but the general implementation of Envoy, not limited to Wasm at all. Please refer to the envoy community slack.