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-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
Metadata
Release files for metalmetrics 4.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| metalmetrics-4.3.6.tar.gz | 15.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| metalmetrics-4.3.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 35.5 kB
Release files / metalmetrics-4.3.6.tar.gz
| Download URL | metalmetrics-4.3.6.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a89b494498bc3f275862f5a0ee04c9a7f99fc6b7fbb8ae2d944ed929786c0d20
|
|
BLAKE2b-256 checksum How to use checksums |
3be968a3797ac6a832eeeda961a31b3b02ab664129b826648f1d2bbda4c46273
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.0 CPython/3.6.9
|
Release files / metalmetrics-4.3.6-py2.py3-none-any.whl
| Download URL | metalmetrics-4.3.6-py2.py3-none-any.whl |
|---|---|
| Size | 19.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f3a944c24d689a25c4d25217f5a7808afa92e42c673e0b777c9ea452598cd8c2
|
|
BLAKE2b-256 checksum How to use checksums |
4adffc30fe9b391253cb5924ba60c0c0821222c9039c84090e9c4ccac9c8e76a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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.0 CPython/3.6.9
|