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.2.tar.gz
(15.7 kB
view details)
Built Distribution
File details
Details for the file metalmetrics-4.3.2.tar.gz
.
File metadata
- Download URL: metalmetrics-4.3.2.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/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6583c0240a15648df6466410ca9a2e958e293c70e578d55dde1cd5c6ff8d753 |
|
MD5 | 4877bfaa4b7b74d2e01bd846cb15a1e3 |
|
BLAKE2b-256 | 77cdd742a5d303e1276a1381c7c4ba0c9d1defcf831476fd7eb7636404bf97a0 |
File details
Details for the file metalmetrics-4.3.2-py2.py3-none-any.whl
.
File metadata
- Download URL: metalmetrics-4.3.2-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/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f74984007f48cfad36359b2a98e16de507ff8d5e569ec5a14b88423a87aa55c4 |
|
MD5 | de989273e6b697708897814b9c5b94bd |
|
BLAKE2b-256 | 97056737680d938873020396ae0e038a5cf96f50e132a79aab1e6e4e89abf190 |