Metal Metrics
Project description
metalmetrics
Introduction
metalmetrics is a worker of metalflow written in Python.
Prerequisites
- Python >= 3.7
Run
- Local mode
git clone https://github.com/craftslab/metalmetrics.git
cd metalmetrics
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.git
cd metalmetrics
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.git
cd metalmetrics
docker build --no-cache -f Dockerfile -t craftslab/metalmetrics:latest .
docker run -it -v /tmp:/tmp craftslab/metalmetrics:latest ./metalmetrics --config-file="config.yml" --output-file="/tmp/output.json"
- Service mode
git clone https://github.com/craftslab/metalmetrics.git
cd metalmetrics
docker build --no-cache -f Dockerfile -t craftslab/metalmetrics:latest .
docker run -it -p 9090:9090 craftslab/metalmetrics: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.4.1.tar.gz
(15.7 kB
view details)
Built Distribution
File details
Details for the file metalmetrics-4.4.1.tar.gz
.
File metadata
- Download URL: metalmetrics-4.4.1.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 531be3c6ffd413e9c30e3c09dcbfcbd60716161b4e13a2fd527acb5e24a5cd39 |
|
MD5 | a6d3ca879055151aa7ed79adb2927df1 |
|
BLAKE2b-256 | bf69eafb564b328232dc81e5d4d915f6eb041a548b53a9490083f6c8a4be497e |
File details
Details for the file metalmetrics-4.4.1-py2.py3-none-any.whl
.
File metadata
- Download URL: metalmetrics-4.4.1-py2.py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56910babef6f0d47c0b4f0832c6061d3ac371fa78070c7c15a966193697e641c |
|
MD5 | 6bdbcd8dc04021250339f50d1b71b6e4 |
|
BLAKE2b-256 | 571ce2df93fedc6d259553a81c45e7f999fa1bc23142efee3a0ea9828a6f04c9 |