Skip to content

Monitor the IPFS traffic served by the aggregator Kubo node and by third-party peers #3679

Open

Description

@jpraynaud

Why

The IPFS distribution of the immutable archives is not monitored today, so we cannot tell how much IPFS traffic the aggregator Kubo node serves, nor how much of it is taken over by third-party peers.

What

A Grafana dashboard shows, for each Mithril network with IPFS enabled, the traffic served by the aggregator Kubo node, the expected IPFS traffic from the current ipfs-share and the estimated traffic served by third-party peers, to decide when to raise the ipfs-share (see #3607 (comment)).

How

  • Scrape the Prometheus endpoint of the aggregator Kubo node from the Prometheus server of the aggregator VM (without exposing its RPC API)
  • Expose the ipfs-share and the cumulative size of the immutable archives directory published on IPFS as metrics of the aggregator
  • Expose the number of peers other than the aggregator Kubo node providing the latest directory CID as a metric
  • Create (or update) a Grafana dashboard of the IPFS distribution
    • Traffic served by the aggregator Kubo node
    • Complete restorations and expected IPFS traffic (complete restorations × archives size × ipfs-share)
    • Estimated traffic served by the third-party peers (expected IPFS traffic − traffic served by the aggregator Kubo node)
    • Number of third-party providers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    monitoring 👀

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions