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
Metadata
Release files for metalmetrics 1.0.1
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-1.0.1.tar.gz | 16.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| metalmetrics-1.0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 36.2 kB
Release files / metalmetrics-1.0.1.tar.gz
| Download URL | metalmetrics-1.0.1.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7cbe7eac3407df03e59b3b4974c814032bbb8f2a204b19156332a2c5bcfb4f2
|
|
BLAKE2b-256 checksum How to use checksums |
b4d9de5b0028e1f7d600bf95fd1a4f18ed058deb7acb8bc33ce4ab413a5b05f0
|
| 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-1.0.1-py2.py3-none-any.whl
| Download URL | metalmetrics-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
fa3132156ace404be420ffbb7ab6689173ddf73deeb6fdc6005dfde5733b8f9a
|
|
BLAKE2b-256 checksum How to use checksums |
f42d3eb30e13485b86e541a17579c7d0e0d993b2547fe2bf8a20eaa82dfdedb6
|
| 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
|