Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

example: using prometheus tags in custom metrics #246

Merged
merged 4 commits into from
Feb 4, 2022
Merged

example: using prometheus tags in custom metrics #246

merged 4 commits into from
Feb 4, 2022

Conversation

mathetake
Copy link
Member

@mathetake mathetake commented Feb 4, 2022

Signed-off-by: Takeshi Yoneda [email protected]

resolves #245

@mathetake
Copy link
Member Author

@peterj @eitansuez maybe you guys are interested in this ? 😉

Signed-off-by: Takeshi Yoneda <[email protected]>
Signed-off-by: Takeshi Yoneda <[email protected]>
@mathetake mathetake merged commit 86c2a56 into main Feb 4, 2022
@mathetake mathetake deleted the promtag branch February 4, 2022 04:33
@eitansuez
Copy link

wonderful. thank you!

@hochuenw-dd
Copy link

Hi @mathetake, it seems in this example, we are running the wasm VM in each worker thread. Does the SDK automatically aggregate the counter metric if Envoy runs multiple worker threads? If not, do we need to run it in the main thread?
Thanks!

@mathetake
Copy link
Member Author

mathetake commented Jun 12, 2022 via email

@hochuenw-dd
Copy link

I see. Thank you for the quick response! @mathetake
I was reading https://github.com/tetratelabs/proxy-wasm-go-sdk/blob/main/doc/OVERVIEW.md#terminology,

Wasm Service is a type of plugins running in a singleton VM (i.e. only one instance exists in the Envoy main thread). It is mainly used for doing some extra work in parallel to Network or Http Filters such as aggregating metrics, logs, etc. Sometimes, such a singleton VM itself is also called Wasm Service.

It does mention aggregating metrics in Wasm service, I'm curious what is the use case that we might have to aggregate metrics using Wasm Service?

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

Successfully merging this pull request may close these issues.

Add an example (code and Envoy configuration) to define metrics with tags
3 participants