Skip to content

Commit

Permalink
feat: bitswap bytes sent grafana dashboard (#1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmc authored Jan 25, 2023
1 parent 4b2d974 commit 9499919
Show file tree
Hide file tree
Showing 3 changed files with 1,003 additions and 886 deletions.
1 change: 1 addition & 0 deletions cmd/booster-bitswap/remoteblockstore/remoteblockstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ func (ro *RemoteBlockstore) Get(ctx context.Context, c cid.Cid) (b blocks.Block,
}
log.Infow("Get", "cid", c, "size", len(data))
stats.Record(ctx, metrics.BitswapRblsGetSuccessResponseCount.M(1))
stats.Record(ctx, metrics.BitswapRblsBytesSentCount.M(int64(len(data))))
return blocks.NewBlockWithCid(data, c)
}

Expand Down
Loading

0 comments on commit 9499919

Please sign in to comment.