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.0.tar.gz
(15.5 kB
view details)
Built Distribution
File details
Details for the file metalmetrics-7.0.0.tar.gz
.
File metadata
- Download URL: metalmetrics-7.0.0.tar.gz
- Upload date:
- Size: 15.5 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 | 1c9a41e554cc7d65f90e31bc8e9594c172f4bcb2fef562842e4244868bb736b5 |
|
MD5 | 745941d54b2294602314fbfe7f3880ff |
|
BLAKE2b-256 | f835a64a827b67b4ce6b6dd51d5224220b2d8186771da5106faff7a9f2fe4fb3 |
File details
Details for the file metalmetrics-7.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: metalmetrics-7.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 19.2 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 | e52aa223c48688610653a4a691d60410240616f41f8845cd6cd6dfafa11f8abf |
|
MD5 | dd3f542ae47e515ad9f26117a3258723 |
|
BLAKE2b-256 | acd7b80664ae17c9c900ed96823744d2a13144d98f15987f9fd06f9c708e43c5 |