If you're using KV and you want to measure it's real easy and nothing fancy, just performance.now()

If you're using KV and you want to measure it's real easy and nothing fancy, just performance.now() and writing to Cloudflare's Analytics Engine, ex:
        var startReq = performance.now();
        await env.KV.put(key, req.body, { // or get
    
        });
        var getDur = performance.now() - startReq;
        if (env.AE)
          env.AE.writeDataPoint({
              blobs: [],
              doubles: [getDur],
              indexes: [key]
            });
...

Then you can use Grafana w/ AE and build nice dashboards relatively easily
Was this page helpful?