Skip to main content

RoboMetrics

RoboMetrics is a Python library for measuring system resources. Specially focused on CPU, Memory and GPU usage. It is designed to be used in a wide range of applications, from monitoring system resources to testing and benchmarking.

Goals of RoboMetrics:

  • Provide a simple way to measure resources without losing data in the process.
  • Be able to measure resources in real-time.
  • Interconnect workers in a network.

Installation

To install the client install it via pip:

pip install roborregos-metrics-client

To install the server:

pip install roborregos-metrics-server

Architecture

RoboMetrics is designed to be modular, extensible and distributed. It is composed of four main components:

  • Process: This represent your normal Python/C++ process/application. Inn order to measure its resources, you only need to import the robometrics.lib.register module and call register.
from robometrics.lib.register import Register

Register.async_auto_register() # Recomended for non-blocking calls

Register.auto_unregister()
  • Workers: The worker is a module made to run in the background in a host machine. The worker is responsible for collecting data from the registered processes and sending it to the intake server (or in its defect, save the data locally).

To start a worker, you only need to run the entry point robometrics.worker.worker.

robometrics-worker
  • Intake Server: The intake server is a server that receives data from the workers and stores it in a database. The server is responsible for managing the data and providing an API to access it.

The current implementation relies on a mongo database, but can be worked towards a more general solution. There is a docker-compose file that can be used to start the db.

To start the server, you only need to run the entry point robometrics.server.server.

robometrics-server
  • RoboMetrics-Viz: The visualization module is a web application that connects to the intake server and displays the data in a user-friendly way. The web application is built using Next.js and Vega-Lite.

Refer to the viz repo: RoboMetrics-Viz

Architecture

Recomendations

The modules are pretend to used in a robotics enviroment or a distributed system. This way each host sould be responsible to run a worker and a process. The intake server can be run in a central server or in a server that is always on. (Other alternative is to run the worker and process without a central server and run robometrics-sync to sync the data to a central server)

Metadata

Release files for roborregos-metrics-client 2.1.0

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

Source distribution (sdist)

Source distribution for roborregos-metrics-client 2.1.0
File Size Uploaded
roborregos-metrics-client-2.1.0.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for roborregos-metrics-client 2.1.0
File Interpreter ABI Platform
roborregos_metrics_client-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.9 kB

Release files / roborregos-metrics-client-2.1.0.tar.gz

Download URL roborregos-metrics-client-2.1.0.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b4b60ad1aff2f257b9ec60dc79cbdcaec39cfe204a49bb64be6e34c1d44d8302
BLAKE2b-256 checksum
How to use checksums
8c5a9a1eb19df9c58bb4f89da28fbf572f270437df088ef25b258ed168209e31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / roborregos_metrics_client-2.1.0-py3-none-any.whl

Download URL roborregos_metrics_client-2.1.0-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92ebcd5871cb95cf66630fc0999fd8e0dca8d47a7da18ca255bd09a94841bb04
BLAKE2b-256 checksum
How to use checksums
22181f641ef8d6b61d1c1d34b0fc9ea98c165830cb8f8c67a1c6287a1a0a6319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release history Release notifications | RSS feed

2.2.0

2 release files

This release

2.1.0 This release

2 release files

2.0.1

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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