Skip to content

[Feature] Add Tracking for Number of Entities Inserted/Deleted/Modified in apply_entity_modifications Metrics #5776

@MoonBoi9001

Description

@MoonBoi9001

Description

Background

In our current subgraph gas experiments, we are tracking the following metrics to monitor the performance of entity operations during the subgraph sync process:

  • apply_entity_modifications_insert
  • apply_entity_modifications_delete
  • apply_entity_modifications

These metrics provide insights into the duration it takes to perform entity insertions, deletions, and modifications as recorded by the counter_value. However, we currently lack tracking for the net number of entities that are inserted or deleted during each modification operation.

Ask

Introduce tracking for the number of entities inserted/deleted/modified at a timestamp when there is an entity modification. This would help with subgraph gas experiement data analysis. I'd like to do some analysis on bytes written/read by entity operations and how that might correlate with subgraph gas consumption. For example, do we see subgraphs that have high levels of gas consumption have a higher bytes written/read per entity ratio, and if so then can we model that via a regression? I'd also like to look at how the number of entities being modified correlates with the time it takes to do the modification.

Are you aware of any blockers that must be resolved before implementing this feature? If so, which? Link to any relevant GitHub issues.

No response

Some information to help us out

  • Tick this box if you plan on implementing this feature yourself.
  • I have searched the issue tracker to make sure this issue is not a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions