Skip to content

Tooling to identify and reap unused deployed subgraphs on Goldsky #107

@thedavidmeister

Description

@thedavidmeister

Each deployed subgraph (per network, per version) accrues Goldsky cost. Today there is no signal for which deployed subgraphs are actually being queried by consumers vs. dangling from old deploys.

We need:

  • A way to enumerate every `metaboard`-named subgraph currently deployed on Goldsky (across all networks).
  • Per-deployment usage stats (queries / bandwidth / last-query timestamp). Goldsky exposes per-subgraph metrics via its API and dashboard.
  • A reaping path: a list (or automated script) of subgraphs whose usage is below some threshold for some window, suitable for `goldsky subgraph delete`.

Trigger / context:

Possible shapes:

  • A new `rain-metadata` CLI subcommand (`subgraphs report`) that hits Goldsky's API and prints a usage table.
  • A scheduled GHA that runs the report and posts to an issue / Slack weekly.

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions