permaweb / ao

The ao component and tools Monorepo - 🐰 🕳️ 👈
https://cookbook_ao.arweave.dev
Other
188 stars 61 forks source link

feat(su): implement metrics in the su #888

Open VinceJuliano opened 3 months ago

VinceJuliano commented 3 months ago

Background

The MU and CU now have metrics capabilities implemented, however because the SU is in Rust it has not been implemented there yet.

Solution

find a Rust version of the metrics library used in the MU and CU and implement it in the SU. Or find any Rust library that outputs the same metrics format and implement that. Make sure metrics can be turned on and off via an environment variable.

VinceJuliano commented 3 months ago

There is a prometheus client for Rust

https://docs.rs/prometheus-client/latest/prometheus_client/

Here are some useful metrics