What are metrics?
To enable metrics collection, simply add endpoints to your network through the Iroh Services dashboard. Metrics will be automatically collected and reported once:- The ssh key is uploaded to the platform.
- The endpoint is built using the uploaded ssh key and Iroh Services platform endpoint id.
- The endpoint sends metrics data to the project in the Iroh Services platform.
How it works
Once an iroh endpoint is integrated in rust program, you can add aniroh_n0des::Client to begin sending metrics to the Iroh Services platform.
- The
iroh_n0des::Clientwill automatically detect any running iroh instance in your endpoint and begin sending metrics as long as the secret and the ssh key match what has been set up in your project on the Iroh Services platform. - Call
endpoint.online().awaitbefore creating the Client. The endpoint must be online before the client is instantiated in order to authenticate to the platform. - Once authenticated, endpoints will start sending granular-level data about their behavior and connection status.
- Every 10 seconds, the Iroh Services platform will aggregate key project-level metrics which are visible in the project dashboard.