The backend of RustCost — a lightweight, Kubernetes-native
cost monitoring and observability platform.
Provides API services, data aggregation, and metrics collection.
rustcost-core is the main backend service powering the RustCost platform.
It is responsible for:
- Collecting Kubernetes cost data
- Aggregating GPU/CPU/memory usage
- Serving REST API endpoints (Axum)
- Persisting data
- Providing metrics for dashboards & exporters
Built in Rust, it is optimized for high throughput,
low latency, and operational safety.
RustCost Core consists of:
- HTTP API Server (Axum)
- Background Metrics Collector
- File based-backed Storage
It operates as a single lightweight container and is fully compatible with:
- Kubernetes (Helm)
- Docker standalone deployments
You can deploy rustcost-core using two methods:
This is the recommended production deployment method.
Helm chart:
https://github.com/rustcost/rustcost-helmchart
The chart includes:
- Core backend
- GPU exporter integrations
- Dashboards
- Automatic configuration
For testing or small setups: (TODO - Not Tested yet)
docker run -d \
-p 9000:9000 \
-e DATABASE_URL=postgres://user:pass@host:5432/rustcost \
rustcost/core:latestEnvironment variables:
| Variable | Required | Description |
|---|---|---|
DATABASE_URL |
Yes | PostgreSQL connection string |
RUST_LOG |
No | Logging level (info, debug, etc) |
PORT |
No | API port (default: 9000) |
RustCost follows a structured release process:
Frequent builds following:
-dev.N
Example:
0.3.0-dev.4
Used before major production releases:
-rc.N
Example:
1.0.0-rc.2
Stable semantic versioning:
1.0.0
Planned GA date: December 21
We welcome:
✔ Issues ✔ Feature requests ✔ Pull requests
Licensed under the Apache License, Version 2.0.