autoretrieve icon indicating copy to clipboard operation
autoretrieve copied to clipboard

Add funnel metrics

Open davidd8 opened this issue 3 years ago • 2 comments

After discussing w/ @kylehuntsman, some additional metrics to monitor on grafana include measuring the overall autoretrieve funnel (feel free to break out each metric into its own issue as needed):

  • [x] Bitswap requests
  • [x] Cache Hits (i.e. previously retrieved by Autoretrieve, available to serve immediately)
  • [ ] Cache Misses (this should result in an Filecoin retrieval request)
  • [ ] Indexer Requests (should map 1:1 to a cache miss)
  • [ ] Indexer Response Codes (200, 404, errors)
  • [ ] Index Misses (either the content is not indexed, or there's an error)
  • [x] Filecoin retrieval attempt (should map 1:1 to a 200 indexer response)
  • [ ] Filecoin retrieval stages (connect, query ask, deal accept, transfer, complete, etc.)
  • [x] Filecoin retrieval successes and failures

cc @hannahhoward

davidd8 avatar Apr 20 '22 22:04 davidd8

@kylehuntsman can you check off which of these are done?

hannahhoward avatar May 16 '22 21:05 hannahhoward

@hannahhoward and @kylehuntsman to pair to try to identify each actual stage.

hannahhoward avatar May 16 '22 23:05 hannahhoward