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:
metrics:
- cpu
- disk
- io
- ip
- kernel
- mac
- network
- os
- ram
- system
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-7.0.7.tar.gz
(16.0 kB
view details)
Built Distribution
File details
Details for the file metalmetrics-7.0.7.tar.gz
.
File metadata
- Download URL: metalmetrics-7.0.7.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdd74d134083d148f660532cd26f7165db3bfa42191ebbaa0f45e5b8acc0a935 |
|
MD5 | 56ee74eb3104da264af6de270d0f91b6 |
|
BLAKE2b-256 | 23acec528d214724e5dbb73a3b94bf250bdc434c927eb5afa901578f62322f93 |
File details
Details for the file metalmetrics-7.0.7-py2.py3-none-any.whl
.
File metadata
- Download URL: metalmetrics-7.0.7-py2.py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 762a8e1a61e6e2448e9445a93f6d0b051b71721914dcf6d6fd3ef6afaf4866bf |
|
MD5 | d425ff1fb029d7cf1795dd7fd537188b |
|
BLAKE2b-256 | 17b538ff49f045b8309b913b4ef9d89aa5a20e49519b6d896614f4c9da4acfbb |