[](https://github.com/nxthat/metrs) [](https://github.com/nxthat/metrs) [](https://discord.gg/WV4Aac8uZg)
[](https://github.com/nxthat/metrs/actions/workflows/tests.yml) [](https://github.com/nxthat/metrs/actions/workflows/clippy.yml)
[](https://codecov.io/gh/nxthat/metrs)
Metrs is a microservice to help you gather metrics information about an host It will send in real time the Cpu, Memory, Disk and Network usage information. This service don't store anything in database, it he designed to only emit information.
```console
Usage: metrsd --hosts
Options:
-H, --hosts
Example:
sh
metrsd --hosts tcp://127.0.0.1:8080
A rust client is available for you to use using ntex
You can install it by running:
sh
cargo add metrsd_client
And then call the subscribe event
```rust
use metrsd_client::MetrsdClient;
async fn main() -> std::io::Result<()> { let client = MetrsdClient::connect("http://localhost:8080");
let stream = client.subscribe().await.unwrap();
while let Some(ev) = stream.next().await { println!("{ev:#?}"); } Ok(()) }
```
There is not CLI for the moment but it's planned