A tool for generating astronomer software deployment compute reports
Project description
Orbis
Orbis is a deployment compute report generator tool developed by RDC Team. It analyzes data from Prometheus to provide insights into deployment metrics and resource utilization for Astronomer Software platforms.
Docs
- Internal Docs : https://potential-waffle-pl91nlj.pages.github.io/
- External Docs : https://astronomer.github.io/orbis-docs/
Features
- Generates comprehensive deployment compute reports
- Analyzes CPU, memory, and pod count metrics
- Supports both Kubernetes and Celery executors
- Creates visualizations for easy data interpretation
- Exports reports in DOCX, JSON, and CSV formats
- Supports resume functionality for interrupted report generation
- Diagnostic scanner for collecting cluster support bundles
- APC 1.x multi-cluster CP/DP support with topology discovery, incremental collection, and auto-merge
- Session-based resume workflow for collecting across separate cloud accounts
Flow Diagram
Installation
To install Orbis, follow these steps:
-
Download the distributions from Releases
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate` -
Install the package:
pip install orbis-0.4.0-py3-none-any.whl
Configuration
Before running Orbis reporting, generate a system admin API token and export it as ASTRO_SOFTWARE_API_TOKEN.
export ASTRO_SOFTWARE_API_TOKEN=<your-token>
Reporting
Run reporting with a local Orbis install:
orbis reporting \
-s <start-date> -e <end-date> \
-b <base-domain> \
--version <platform-version> -vvv -r -p -z
Run reporting with Podman:
podman run --rm -it \
-e ASTRO_SOFTWARE_API_TOKEN=<your-token> \
-v $(pwd)/output:/app/output \
quay.io/astronomer/orbis:<orbis-version> \
reporting \
-s <start-date> -e <end-date> \
-b <base-domain> \
--version <platform-version> -vvv -r -p -z
Scanner
Run scanner with a local Orbis install:
orbis scanner create \
-n <platform-namespace> \
--kubeconfig <path-to-unified-kubeconfig> \
-d <base-domain> \
--image quay.io/astronomer/orbis:<orbis-version> \
--log-level debug \
--no-cleanup
Run scanner with Podman:
podman run --rm -it \
-v ~/path/to/unified-kubeconfig:/kubeconfigs/unified_kubeconfig:ro \
-v $(pwd)/output:/app/output \
-v ~/.aws:/home/nonroot/.aws:ro \
-e AWS_PROFILE \
quay.io/astronomer/orbis:<orbis-version> \
scanner create \
-n <platform-namespace> \
--kubeconfig /kubeconfigs/unified_kubeconfig \
-d <base-domain> \
--image quay.io/astronomer/orbis:<orbis-version> \
--log-level debug \
--no-cleanup
See docs/reporting/generate-report.md and docs/scanner/create-support-bundle.md for the full command list.
Output
Orbis generates:
- A comprehensive deployment compute report in DOCX format
- A JSON report for automation purposes
- A CSV report for automation purposes
Development
To set up the development environment:
-
Clone the repository
-
Install development dependencies:
pip install -e ".[dev]" -
Install pre-commit hooks:
pre-commit install -
Run tests:
pytest tests/
Debugging
Create a .vscode folder and add launch.json file with the following contents:
{
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: Orbis",
"type": "debugpy",
"request": "launch",
"module": "orbis.cli",
"console": "integratedTerminal",
"args": [
"sizing",
"-o",
"<org_id>",
"-s",
"2024-07-03",
"-e",
"2024-07-04"
]
}
]
}
Using pre-commit
Pre-commit is used to maintain code quality. Here's how to use it:
-
Run pre-commit on all files:
pre-commit run --all-files -
Run pre-commit on staged files:
pre-commit run -
Run a specific hook:
pre-commit run <hook_id>Replace
<hook_id>with the ID of the specific hook you want to run (e.g.,ruff). -
To bypass pre-commit hooks when committing:
git commit -m "Your commit message" --no-verify
Pre-commit will run automatically before each commit once the hooks are installed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file astronomer_orbis-0.9.0.tar.gz.
File metadata
- Download URL: astronomer_orbis-0.9.0.tar.gz
- Upload date:
- Size: 98.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ab0a9201b95fc2a4d3cf3f09a056dcc083e5125adb071508abc56358cf8221b
|
|
| MD5 |
ebdddcb088c6e8b0de32dddf789191ba
|
|
| BLAKE2b-256 |
3ad85c48dc7d7d48abeac49280128c4485d3cce43780beaff727c48ff6143836
|
Provenance
The following attestation bundles were made for astronomer_orbis-0.9.0.tar.gz:
Publisher:
pypi.yaml on astronomer/orbis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
astronomer_orbis-0.9.0.tar.gz -
Subject digest:
5ab0a9201b95fc2a4d3cf3f09a056dcc083e5125adb071508abc56358cf8221b - Sigstore transparency entry: 1734141081
- Sigstore integration time:
-
Permalink:
astronomer/orbis@5f98fd1c6857c10f98bd8aed18f158b9e3a99390 -
Branch / Tag:
refs/tags/0.9.0 - Owner: https://github.com/astronomer
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@5f98fd1c6857c10f98bd8aed18f158b9e3a99390 -
Trigger Event:
release
-
Statement type:
File details
Details for the file astronomer_orbis-0.9.0-py3-none-any.whl.
File metadata
- Download URL: astronomer_orbis-0.9.0-py3-none-any.whl
- Upload date:
- Size: 123.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21c5a093bed1d31c8b259601a3695da7d8d51ead5e3278160b5fc1ce557632df
|
|
| MD5 |
3ab37d5c1ee81accabffad7cce561fb2
|
|
| BLAKE2b-256 |
f216371cd5e1be038fc4fbfdebb4b66842dac5b07ff57e6789bd3f4dbc0e2492
|
Provenance
The following attestation bundles were made for astronomer_orbis-0.9.0-py3-none-any.whl:
Publisher:
pypi.yaml on astronomer/orbis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
astronomer_orbis-0.9.0-py3-none-any.whl -
Subject digest:
21c5a093bed1d31c8b259601a3695da7d8d51ead5e3278160b5fc1ce557632df - Sigstore transparency entry: 1734141099
- Sigstore integration time:
-
Permalink:
astronomer/orbis@5f98fd1c6857c10f98bd8aed18f158b9e3a99390 -
Branch / Tag:
refs/tags/0.9.0 - Owner: https://github.com/astronomer
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yaml@5f98fd1c6857c10f98bd8aed18f158b9e3a99390 -
Trigger Event:
release
-
Statement type: