Metal Metrics
Project description
metalmetrics
Introduction
metalmetrics is a worker of metalflow written in Python.
Requirement
- Python >= 3.7
Run
-
Local mode
git clone https://github.com/craftslab/metalmetrics-py.git cd metalmetrics-py pip install -Ur requirements.txt python metrics.py --config-file="config.yml" --inxi-file="inxi" --output-file="output.json"
-
Service mode
git clone https://github.com/craftslab/metalmetrics-py.git cd metalmetrics-py pip install -Ur requirements.txt python metrics.py --config-file="config.yml" --inxi-file="inxi" --listen-url="127.0.0.1:9090"
Docker
-
Local mode
git clone https://github.com/craftslab/metalmetrics-py.git cd metalmetrics-py docker build --no-cache -f Dockerfile -t craftslab/metalmetrics-py:latest . docker run -it -v /tmp:/tmp craftslab/metalmetrics-py:latest ./metalmetrics --config-file="config.yml" --output-file="/tmp/output.json"
-
Service mode
git clone https://github.com/craftslab/metalmetrics-py.git cd metalmetrics-py docker build --no-cache -f Dockerfile -t craftslab/metalmetrics-py:latest . docker run -it -p 9090:9090 craftslab/metalmetrics-py:latest ./metalmetrics --config-file="config.yml" --listen-url="127.0.0.1:9090"
Usage
usage: metrics.py [-h] --config-file CONFIG_FILE [--inxi-file INXI_FILE]
[--listen-url LISTEN_URL | --output-file OUTPUT_FILE] [-v]
Metal Metrics
optional arguments:
-h, --help show this help message and exit
--config-file CONFIG_FILE
config file (.yml)
--inxi-file INXI_FILE
inxi file (/path/to/inxi)
--listen-url LISTEN_URL
listen url (host:port)
--output-file OUTPUT_FILE
output file (.json|.txt|.xlsx)
-v, --version show program's version number and exit
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:
bare:
- cpu
- disk
- io
- ip
- kernel
- mac
- network
- os
- ram
- system
container:
kubernetes:
Design
License
Project License can be found here.
Reference
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
metalmetrics-4.3.0.tar.gz
(15.7 kB
view hashes)
Built Distribution
Close
Hashes for metalmetrics-4.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a00e3b9fc6196ba8cbe09be2ac745c353ee8dce3614c440deb9c26ec70e29bfe |
|
MD5 | 81200b6348fb5b0b81adfa6b471523f1 |
|
BLAKE2b-256 | dc823070c54525d75d8e8cf204f84afc0b4263f06cdf1109a0c2d4c302f518c6 |