Product

Metrics

Monitor your network with comprehensive metrics collection. Track connections, latency, throughput, and custom application-specific metrics.

Overview

When you add endpoints to your network, various metrics are collected to help improve performance and user experience. By monitoring these metrics, you can identify bottlenecks and areas for improvement in your application.

All endpoints added to your network can have these metrics collected and reported to the Iroh Online project dashboard.

ConnectionsLatencyThroughputCustomΣAggregatorDashboardMobileServerIoT

Built-in Metrics

Create behavioral aggregations to monitor the health of your software.

Project-level MetricsFree

  • Connections

    The number of successful and active connections made through the relay servers.

  • Latency

    The time it takes for a request to travel from one endpoint to another.

  • Throughput

    The amount of data processed by the relay server in a given time period.

Relay-level MetricsPro

  • Holepunching Rate

    The success rate of holepunching attempts made by the relay server.

  • Uptime

    The amount of time the relay server is operational and available to handle requests.

  • Error reporting

    Information about any UPnP probes or NAT traversal failures that occur.

For a list of all metrics, see the metrics glossary.

Choose Your Metrics Option

Whether you're just getting started or need detailed endpoint analytics, there's a metrics option that fits your needs.

Project Metrics

Free

Iroh Online aggregates metrics at the project level, to provide insights into overall network performance. This aggregated data helps in understanding trends and patterns without exposing individual endpoint details.

  • Free to use
  • No setup required
  • Network-wide insights
  • Custom metrics support
Read more about custom metrics →

Endpoint Metrics

$49/month and up

Detailed metrics are available for each endpoint added to the network. These metrics are available at the endpoint level, so you can drill down into specific behaviors to better understand performance issues.

  • Per-endpoint analytics
  • Drill-down diagnostics
  • Performance insights
  • Extended data retention plans available
Sign up →

How it Works

  1. 1

    Once an iroh endpoint is integrated in your Rust program, add an iroh_n0des::Client to begin sending metrics to the Iroh Online platform.

  2. 2

    The client will automatically detect any running iroh instance and begin sending metrics as long as the secret and SSH key match your project setup.

  3. 3

    Call endpoint.online().await before creating the Client. The endpoint must be online before the client is instantiated to authenticate to the platform.

  4. 4

    Once authenticated, endpoints will start sending granular-level data about their behavior and connection status.

  5. 5

    Every 10 seconds, the Iroh Online platform will aggregate key project-level metrics which are visible in the project dashboard.

use iroh::Endpoint;
use iroh_n0des::Client;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let endpoint = Endpoint::builder().bind().await?;
    endpoint.online().await;
    
    let client = Client::new(&endpoint, "YOUR_API_KEY").await?;
    
    // Report a custom metric
    client.metric("document_written", 1).await?;
    
    Ok(())
}

Privacy

All metrics collected are anonymized and aggregated to ensure user privacy. No personally identifiable information (PII) is collected or stored. The focus is on overall network performance rather than individual user behavior.

If you have concerns about data collection, please refer to the privacy policy.

Metrics Retention

Project-level metrics are retained based on your events plan. Please refer to the pricing page for more details on plan features and benefits.

Endpoint level metrics are only available on Pro and Enterprise. For projects on these plans, the amount of endpoint-level raw data retained is calculated on your purchased metrics package. Contact us if you need custom support.

Start Monitoring Your Network

Get started with free project-level metrics, or upgrade to Pro for detailed endpoint analytics.