Skip to main content

Metal Metrics

Project description

metalmetrics

Actions Status Docker License PyPI Tag

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

design

License

Project License can be found here.

Reference

Project details


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 details)

Uploaded Source

Built Distribution

metalmetrics-1.0.1-py2.py3-none-any.whl (20.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file metalmetrics-1.0.1.tar.gz.

File metadata

  • Download URL: metalmetrics-1.0.1.tar.gz
  • Upload date:
  • Size: 16.1 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

Hashes for metalmetrics-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e7cbe7eac3407df03e59b3b4974c814032bbb8f2a204b19156332a2c5bcfb4f2
MD5 5cacd4c1ee03645a376ec87887020f2f
BLAKE2b-256 b4d9de5b0028e1f7d600bf95fd1a4f18ed058deb7acb8bc33ce4ab413a5b05f0

See more details on using hashes here.

File details

Details for the file metalmetrics-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: metalmetrics-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 20.2 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

Hashes for metalmetrics-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fa3132156ace404be420ffbb7ab6689173ddf73deeb6fdc6005dfde5733b8f9a
MD5 e5beb73b69115c95571a00ac8bfab8e9
BLAKE2b-256 f42d3eb30e13485b86e541a17579c7d0e0d993b2547fe2bf8a20eaa82dfdedb6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page