Skip to main content

metalmetrics

Actions Status Docker License PyPI Tag

Introduction

metalmetrics is a worker of metalflow written in Python.

Prerequisites

  • 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" --inxi-file="inxi" --output-file="output.json"
  • Service mode
git clone https://github.com/craftslab/metalmetrics.git

cd metalmetrics
pip install -Ur requirements.txt
python metrics.py --config-file="config.yml" --inxi-file="inxi" --listen-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"
  • Service 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" --listen-url="127.0.0.1:9090"

Usage

usage: metrics.py [-h] --config-file CONFIG_FILE [--inxi-file INXI_FILE]
                  [--listen-url LISTEN_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)
  --inxi-file INXI_FILE
                        inxi file (/path/to/inxi)
  --listen-url LISTEN_URL
                        listen 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:

apiVersion: v1
kind: worker
metadata:
  name: metalmetrics
spec:
  metrics:
    - cpu
    - disk
    - io
    - ip
    - kernel
    - mac
    - network
    - os
    - ram
    - system
    - users

Design

design

License

Project License can be found here.

Reference

Metadata

Release files for metalmetrics 7.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for metalmetrics 7.1.1
File Size Uploaded Provenance Actions
metalmetrics-7.1.1.tar.gz 15.4 kB Without provenance Details for metalmetrics-7.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for metalmetrics 7.1.1
File Interpreter ABI Platform Actions
metalmetrics-7.1.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for metalmetrics-7.1.1-py2.py3-none-any.whl

Total release size: 34.8 kB

Release files / metalmetrics-7.1.1.tar.gz

Download URL metalmetrics-7.1.1.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f338d67edfd01519d500c41401ccb2543fde674ad684644ad0e715153f5fa6d0
BLAKE2b-256 checksum
How to use checksums
00fb9ab42e284161f21414f2b733d83e55b989d16f21a91d7488df43b88b26c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.6.9

Release files / metalmetrics-7.1.1-py2.py3-none-any.whl

Download URL metalmetrics-7.1.1-py2.py3-none-any.whl
Size 19.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
addd4ed6109b29a3bd8da3cf322d9b3e44466e1fc0365ec95d776f26613125d2
BLAKE2b-256 checksum
How to use checksums
9e90e86831b629e4ff577ded9afced9224ac15afa3f8ebbbdfc772ae7ca3103b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.6.9

Security for metalmetrics 7.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page