proxy-wasm / proxy-wasm-cpp-sdk

WebAssembly for Proxies (C++ SDK)
Apache License 2.0
139 stars 67 forks source link

Prometheus metric labels #130

Open stoader opened 2 years ago

stoader commented 2 years ago

Hi @jplevyak @PiotrSikora , can you help out regarding how can we define Prometheus metric labels when constructing metrics using the higher level metrics interface of the SDK?

Initially thought that metrics tags are translated into Prometheus metrics labels however apparently metrics tags are appended to the metric name, e.g.: metric1_label_foo instead of metric1{label="foo"}