graphprotocol / graphprotocol/graph-node

Better diagnostics for whether a provider is working or not

Open
#3,397 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement error-handling indexer experience ops
Dominant language
Rust
Stars
3.2k
Forks
1.1k
Avg merge
4d 1h
Merged PRs (30d)
1

Description

When graph-node starts up, it tries to connect to all configured network providers; if a provider doesn't respond fast enough during startup, it is removed from the configuration, and never used again. That that happened can only be seen from log messages. We should have a boolean metric provider_failed, labeled with network and provider to make it easier to spot that condition.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the graph-node startup code that connects to configured network providers and the existing metric instrumentation. Add the provider_failed boolean metric with network and provider labels when a provider is removed after failing to respond during startup, then verify that the metric exposes the failure condition.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.