SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

Track energy for query compute

Open joshua-spacetime opened this issue 2 years ago • 0 comments

We do not currently track energy for queries and subscriptions. We should use both query compilation and execution time as proxies for energy. In particular we should pick a suitable constant multiplier N such that we approximate the amount of energy consumed by N * execution/compilation time.

As part of this ticket we should also write these energy recordings to prometheus.

joshua-spacetime avatar Dec 13 '23 01:12 joshua-spacetime