Orbis Reports for Software¶
This guide explains how to use Orbis to generate compute reports for Astronomer Software deployments.
Prerequisites¶
- Docker installed (recommended)
- API token with
SYSTEM_ADMIN
role.
Warning
Please use SYSTEM_ADMIN
level token otherwise Orbis won't be able to query Prometheus and will result in empty metrics. Ref
- Basedomain for Astronomer Software
- Start and end dates for the report period
Generate System Admin Level API Token¶
- Orbis won't be able to query Prometheus without the SYSTEM_ADMIN token.
- Go to
https://houston.<organization_domain>/v1/playground
. -
Execute the following query to get create the SYSTEM_ADMIN service account and API token.
mutation create_system_service_account { createSystemServiceAccount(label: "serv-acc", role: SYSTEM_ADMIN){ apiKey roleBindings{ role } } }
Sample Response:
-
Add the API token to the
.env
fileASTRO_SOFTWARE_API_TOKEN=<GENERATED_TOKEN>
Using Docker (Recommended)¶
-
Create a
.env
file with your configuration: -
Run Orbis using Docker:
Using Orbis CLI¶
Check installation guide for Orbis CLI here
-
Create a
.env
file with your configuration: -
Run Orbis using the Orbis CLI:
Command Options¶
Example Usage¶
docker run --pull always --rm -it \
--env-file .env \
-v $(pwd)/output:/app/output \
quay.io/astronomer/orbis:0.8.0 orbis compute-software \
-s 2024-01-01 \
-e 2024-01-31 \
-b example.astronomer.io \
-v
Output¶
The command generates a comprehensive DOCX report in the output
directory with metrics as below for the given duration:
- Scheduler CPU and Memory
- Worker CPU and Memory
- KPO's CPU and Memory
- Task Trends
- Worker (Celery/Kubernetes) Pod Counts