```rust use std::time::Duration;
async fn main() { InfluxBuilder::new().withduration(Duration::fromsecs(60)).install()?; } ```
```rust use std::fs::File;
async fn main() { InfluxBuilder::new() .with_writer(File::create("/tmp/out.metrics")?) .install()?; }
```
```rust
async fn main() { InfluxBuilder::new() .withinfluxapi( "http://localhost:8086", "db/rp", None, None, None, Some("ns".to_string()) ) .install()?; } ```
Grafana Cloud supports the Influx Line Protocol exported by this exporter.
```rust
async fn main() { InfluxBuilder::new() .withgrafnacloudapi( "https://https://influx-prod-03-prod-us-central-0.grafana.net/api/v1/push/influx/write", Some("username".tostring()), Some("key") ) .install()?; } ```