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" --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:
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
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-3.0.0.tar.gz
(15.4 kB
view details)
Built Distribution
File details
Details for the file metalmetrics-3.0.0.tar.gz
.
File metadata
- Download URL: metalmetrics-3.0.0.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1b58cefe2deea294c11bc5bacb41e5da0d793beb2fb9f2d6262a1ddadbfd1bf |
|
MD5 | 735cac78196c1c02c3cf961bd62e8fd5 |
|
BLAKE2b-256 | 537947bd09ab943b2a427e2c8b510cc64ef5147cccbbcfa581116019ec15540a |
File details
Details for the file metalmetrics-3.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: metalmetrics-3.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 563e287913c7a17e4e03a085f1de9f3d3113752cb95351c805d0435d9ede9b82 |
|
MD5 | 237f13db4311e291ba95560694a6d56e |
|
BLAKE2b-256 | ef25bc69a88035f08e42996abcab16e98b802640220cfcf017cc428ce21f43e6 |