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" --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" --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
[--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)
--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
container:
kubernetes:
Design
License
Project License can be found here.
Reference
Metadata
Release files for metalmetrics 4.1.0
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.1.0.tar.gz | 15.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| metalmetrics-4.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 35.1 kB
Release files / metalmetrics-4.1.0.tar.gz
| Download URL | metalmetrics-4.1.0.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be24ba973422bb5ceb1bffd485fcb177546e4b219ea36d6af287801e7afd2335
|
|
BLAKE2b-256 checksum How to use checksums |
7d0474339433b9f967609c76c35cda28b080b9353c3c673da287203824e1dc31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.9
|
Release files / metalmetrics-4.1.0-py2.py3-none-any.whl
| Download URL | metalmetrics-4.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 19.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
82e9d4d17cc38124c854164f31646e2229f164a098174802ee4231a087c0b591
|
|
BLAKE2b-256 checksum How to use checksums |
b7f0c975dd5f9dbdae80a141727d5ae3aad7b7aff728f22046aaec50e089ac9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.9
|