Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Human Readable Indexer Metrics #545

Open
kw1knode opened this issue Dec 17, 2024 · 0 comments
Open

Human Readable Indexer Metrics #545

kw1knode opened this issue Dec 17, 2024 · 0 comments
Labels

Comments

@kw1knode
Copy link
Member

Feature Request: Human-Readable Indexer Metrics

Problem Statement

Currently, the metrics provided for indexers display raw Deployment IDs. This makes it difficult to quickly identify which subgraph is responsible for a given metric.

Current Workflow

1.	Check indexer metrics.
2.	Copy/Paste the Deployment ID into an explorer or third-party tools.
3.	Manually identify the associated subgraph.

This process is cumbersome and time-consuming, especially when managing multiple deployments.

Proposed Solution

Enhance indexer metrics by including the human-readable display name of the subgraph alongside the Deployment ID. This would make the metrics more intuitive and eliminate the need for external lookups.

Data Source

The subgraph display name can be fetched using the following query on the network subgraph:

{
  allocations {
    subgraphDeployment {
      versions {
        subgraph {
          metadata {
            displayName
          }
        }
      }
    }
  }
}

Benefits

•	Simplifies workflow for indexers.
•	Reduces reliance on external tools to identify subgraphs.
•	Improves metric visibility and debugging efficiency.

Implementation Considerations

•	Extend the metric output to include the displayName from the network subgraph query.
•	Ensure backward compatibility so existing workflows relying on raw Deployment IDs remain unaffected.
@gusinacio gusinacio changed the title [Feat.Req] Human Readable Indexer Metrics Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants