Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create TextReadout metrics #45

Open
seblaz opened this issue Jun 10, 2024 · 1 comment
Open

Create TextReadout metrics #45

seblaz opened this issue Jun 10, 2024 · 1 comment

Comments

@seblaz
Copy link

seblaz commented Jun 10, 2024

Allow wasm filters to create TextReadout metrics, currently it only supports Counters, Gauges, and Histograms.

Possible use case:

A WASM filter with asynchronous initialization was developed, which fetches necessary configuration data. To allow other components to query the initialization status, the filter sets a gauge metric to signal when initialization is complete. Additionally, we want to expose a TextReadout metric to display an error message if the initialization fails. Currently, the filter logs errors, but we want other components to be able to query the error value directly, instead of searching through logs.

@mpwarres
Copy link

ISTM we'd need to add a new proxy_metric_type_t enum value, and a new variation of proxy_record_metric that accepts a string. @PiotrSikora WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants