Skip to main content

Metal Metrics

Project description

metalmetrics

Actions Status Docker License PyPI Tag

Introduction

metalmetrics is a worker 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-2.0.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

metalmetrics-2.0.0-py2.py3-none-any.whl (19.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: metalmetrics-2.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

Hashes for metalmetrics-2.0.0.tar.gz
Algorithm Hash digest
SHA256 19310c48dddc036b27b33925284ca033b3a58536b37240dbcabaf39b915611fa
MD5 1e1b3a20b6058938cc44a8c64572c778
BLAKE2b-256 03a17a909dbb7e67521dc45bf8e062b287ff89ee8c8a53d883227b87338fc5a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: metalmetrics-2.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 19.5 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-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ef14f8a62258f060b555eca5810b4076afdef9cf991385288531101b9615c0e0
MD5 f90c30220089fd2effccb6d1166bfd03
BLAKE2b-256 0b07cfd06fd1b5bfd2f2169037112d6bd6766c632799eb10d89eac25f36fcd86

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