Metal Metrics
Project description
metalmetrics
Introduction
metalmetrics is a metrics of metalflow written in Python.
Requirement
- 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" --output-file="output.json"
-
gRPC mode
git clone https://github.com/craftslab/metalmetrics.git cd metalmetrics pip install -Ur requirements.txt python metrics.py --config-file="config.yml" --grpc-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"
-
gRPC 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" --grpc-url="127.0.0.1:9090"
Usage
usage: metrics.py [-h] --config-file CONFIG_FILE
[--grpc-url GRPC_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)
--grpc-url GRPC_URL grpc 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-1.0.1.tar.gz
(16.1 kB
view hashes)
Built Distribution
Close
Hashes for metalmetrics-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa3132156ace404be420ffbb7ab6689173ddf73deeb6fdc6005dfde5733b8f9a |
|
MD5 | e5beb73b69115c95571a00ac8bfab8e9 |
|
BLAKE2b-256 | f42d3eb30e13485b86e541a17579c7d0e0d993b2547fe2bf8a20eaa82dfdedb6 |