misc(metrics) space as metadata separator in metric name #618
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WasmX metrics defined in Proxy-Wasm filters have their names prefixed by
pw.{a_filter}
where{a_filter}
is the name of the filter where the metric was defined, e.g.pw.a_filter.a_counter
.When the Gateway serializes a WasmX metric defined in a Proxy-Wasm filter it needs to extract the filter name from the metric name. The filter name is used to load potential label patterns associated with the filter which are then used to extract potential labels from the metric name.
This PR proposes changing the separator in metric names from the dot to the space (e.g.
pw a_filter a_counter
) and forbidding space-like characters in WASM modules names; which simplifies the task of extracting the filter name from a metric name.