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.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

metalmetrics-1.0.0-py2.py3-none-any.whl (7.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: metalmetrics-1.0.0.tar.gz
  • Upload date:
  • Size: 7.7 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.0.tar.gz
Algorithm Hash digest
SHA256 14e5fe13ed7558116a78c7ad16be45eed2d18c654eed61f10431ad6ca43001a5
MD5 510975d61ee9ae0fc4d364f6f8cc1b0f
BLAKE2b-256 930406b192fbe1656ed47134dcb6291c7e3f73d08f5310f63aca5e97faa64cd3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: metalmetrics-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.9 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.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7dfa56110cc4b27c363f5066f8663d3bf4876fd2d91f100a8580f80911c3ee25
MD5 1790f50b68ede107a036cf03b755e9de
BLAKE2b-256 2ef91fd29d75f8b24e78c757ede0d094cce8d90342d316e482b4048f4439aa55

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