Skip to content

devops-metalflow/metalmetrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metalmetrics

Actions Status License Tag Gitter chat

Introduction

metalmetrics is a worker of metalflow written in Rust.

Prerequisites

  • Rust >= 1.59.0

Run

  • 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

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

Settings

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

Output

{
    "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)"
        }
    ]
}

Design

design

License

Project License can be found here.

Reference

About

Metal worker

Resources

License

Stars

Watchers

Forks

Packages

No packages published