iroh-services client to control how often
your endpoint sends metrics. The default interval is 60 seconds.
Start with the Iroh Services quickstart to create
your preset and endpoint with a project API key.
Choose an interval
ImportDuration in your Rust application:
Configure the client
In your async application code, replace the quickstart’s client construction with the following. Use thepreset and endpoint you already created:
Send a report before the next interval
To send the current metrics immediately, awaitpush_metrics():
ClientBuilder::metrics_interval
and Client::push_metrics.