hashgraph / hedera-mirror-node

Hedera Mirror Node archives data from consensus nodes and serves it via an API
Apache License 2.0
145 stars 111 forks source link

Create a new metric for data size in web3 #8258

Closed kselveliev closed 5 months ago

kselveliev commented 5 months ago

Problem

We need to create a new metric for calldata size to be able to monitor in grafana the data size per second that the system is handling. With this metric we will be able to also determine if we would be able to increase the maxDataSize config in evm properties.

Solution

Similar to the current gas metric private final MeterProvider<Counter> gasCounter we should create a new call data metric that accumulates call data size into the counter. We need to expose this metric to grafana for monitoring. Execute k6 to monitor the metrics.

Alternatives

No response

steven-sheehy commented 5 months ago

I don't think we need this ticket. We have a hedera.mirror.web3.request.bytes metric I added via the MetricsFilter that stores the entire request size. The call data is the only variable piece of data in the request so we can calculate the approximate data size by subtracting the fixed size overhead for the other fields.

kselveliev commented 5 months ago

Closing this one.