graphprotocol / graph-node

Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
https://thegraph.com
Apache License 2.0
2.85k stars 933 forks source link

[Bug] deployment_sync_secs metrics still emitted for synced subgraphs #4784

Open brianluong opened 11 months ago

brianluong commented 11 months ago

Bug report

We're still seeing deployment_sync_secs metrics still emitted for synced subgraphs on v0.31.0.

Specifically, we're still seeing these metrics emitted only when the indexer starts up.

I think this PR was intended to solve this in v0.31.0, but it doesn't seem it fully addresses the issue.

image

Relevant log output

No response

IPFS hash

No response

Subgraph name or link to explorer

No response

Some information to help us out

OS information

None

lutter commented 11 months ago

When graph-node starts up, it assumes all subgraphs are not synced; once it processes a block, it determines whether the subgraph is synced and then turns off recording the metric. Depending on how long graph-node was shut down, it can take a bit of time for it to catch up to the chain head. During that time, it will record deployment_sync_secs.

Is that causing an issue for you?

brianluong commented 11 months ago

We noticed deployment_sync_secs for synced subgraphs was a significant contributor to our metrics usage.

To us (and maybe others) deployment_sync_secs are only interesting until the subgraph has synced.

github-actions[bot] commented 5 months ago

Looks like this issue has been open for 6 months with no activity. Is it still relevant? If not, please remember to close it.