corazawaf / coraza-proxy-wasm

proxy-wasm filter based on Coraza WAF
Apache License 2.0
115 stars 24 forks source link

How to extract metrics when not using envoy? #253

Open shreemaan-abhishek opened 10 months ago

shreemaan-abhishek commented 10 months ago

I'm using coraza-proxy-wasm as a plugin for APISIX: https://docs.api7.ai/apisix/how-to-guide/security/waf/integrate-with-coraza.

How do I get it to expose the metrics? Does this require a PR?

I found some hints but no clarity. It seems only envoy is supported for now.

https://github.com/corazawaf/coraza-proxy-wasm/blob/51ef05ab12bd050abddf96c5aa5c9c5bb71cacd0/wasmplugin/metrics.go#L40-L42

https://github.com/corazawaf/coraza-proxy-wasm/blob/51ef05ab12bd050abddf96c5aa5c9c5bb71cacd0/README.md#L209