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 endpoint is built using the API Secret Key
- The endpoint sends metrics data to a Cloud endpoint hosted in the Iroh Services platform.
- The Iroh Services platform aggregates the data and makes it available in the project dashboard.
- Iroh services deletes data on a rolling bases outside the retention window, based on your plan.
How it works
Once an iroh endpoint is integrated in rust program, you can add aniroh_services::Client to begin sending metrics to the Iroh Services platform.
- The
iroh_services::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.
- Once per minute, the Iroh Services platform will aggregate key project-level metrics which are visible in the project dashboard.