Skip to main content

Telemetry management and time series for SDSS-V

Project description

cerebro

Versions Documentation Status Test Status codecov

A library to gather time-series data from different sources and store them, with focus on InfluxDB databases. Documentation and concepts are defined here.

Installation

In general you should be able to install cerebro by doing

pip install sdss-cerebro

To build from source, use

git clone git@github.com:sdss/cerebro
cd cerebro
pip install .

Use

cerebro is meant to run as a daemon. The simplest way to run it is simply

cerebro start

This will run all the sources and use all the observers. You can define a specific profile to use

cerebro --profile lvm-lab start

or a series of sources

cerebro --sources lvm_govee_clean_room,lvm_sens4_r1 start

Normally cerebro will run in detached/daemon mode. It's also possible to pass the flag --debug (cerebro start --debug) to run the code in the foreground.

Run cerebro --help to get all the options available.

Development

cerebro uses poetry for dependency management and packaging. To work with an editable install it's recommended that you setup poetry and install cerebro in a virtual environment by doing

poetry install

Pip does not support editable installs with PEP-517 yet. That means that running pip install -e . will fail because poetry doesn't use a setup.py file. As a workaround, you can use the create_setup.py file to generate a temporary setup.py file. To install cerebro in editable mode without poetry, do

pip install poetry
python create_setup.py
pip install -e .

The style code is black.

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

sdss_cerebro-1.1.0.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

sdss_cerebro-1.1.0-py3-none-any.whl (33.8 kB view details)

Uploaded Python 3

File details

Details for the file sdss_cerebro-1.1.0.tar.gz.

File metadata

  • Download URL: sdss_cerebro-1.1.0.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for sdss_cerebro-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4496d5784e249f1508b227c03ed8e76fbe186e01cf61384dac80724dc2fdaf4f
MD5 d266b30cc043451ebb5ebc026b69df93
BLAKE2b-256 d99d4e61b88344f97a26c8044643a0caf56f2f045dbf5d1ef18f250ac7bced7a

See more details on using hashes here.

File details

Details for the file sdss_cerebro-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sdss_cerebro-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16742d2d5830262ed1646961e42a696ba9bbd42e30c5b60239dcd2ec32dc00fb
MD5 effb03104929fa1658e7b66939813615
BLAKE2b-256 156d1dc558cec7aa1d40f03e6b98c4818fa060ccd9e20422b305d90b0523d328

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