metalmetrics is a worker of metalflow written in Rust.
- Rust >= 1.59.0
- Local mode
sudo ./metalmetrics --config-file="config.yml" --output-file="output.json"- Service mode
sudo ./metalmetrics --config-file="config.yml" --listen-url="127.0.0.1:9090"USAGE:
metalmetrics [OPTIONS] --config-file <NAME>
OPTIONS:
-c, --config-file <NAME> Config file (.yml)
-h, --help Print help information
-l, --listen-url <URL> Listen url (host:port)
-o, --output-file <NAME> Output file (.json|.txt)
-V, --version Print version information
metalmetrics parameters can be set in the directory config.
An example of configuration in config.yml:
apiVersion: v1
kind: worker
metadata:
name: metalmetrics
spec:
metrics:
- cpu
- disk
- eth
- io
- ip
- kernel
- mac
- network
- os
- ram
- users
- wake{
"metrics": [
{
"os": "Ubuntu 20.04.4 LTS",
"mac": "00:01:02:03:04:05",
"ram": "12 GB (0 GB Used)",
"network": "RX packets 32301 TX packets 6372",
"wake": "Supports Wake-on: g\nWake-on: g",
"users": "name",
"io": "RD 712836 KB WR 3683508 KB",
"cpu": "16 CPU (0% Used) 1796.563 MHz",
"ip": "127.0.0.1",
"kernel": "Linux 5.4.0-120-generic",
"eth": "eth0",
"disk": "269.0 GB (17.0 GB Used)"
}
]
}
Project License can be found here.

