- ๐ Outscale API: docs.outscale.com/api
- ๐ฆ Helm chart: osc-cost
- ๐ณ Docker Compose: docker-compose.yaml
- ๐ค Contribution Guide: CONTRIBUTING.md
- ๐ง Prometheus Exporter: prometheus_exporter
- ๐ฌ Join us on Discord
- Overview
- Project Status
- Requirements
- Installation
- Configuration
- Usage
- Prometheus Exporter
- Drift Analysis (Beta)
- Deployment
- Contributing
- Release Process
- License
osc-cost is a command-line utility that estimates current cloud costs for an Outscale account by analyzing live resource states.
It supports multiple output formats and can also export metrics to Prometheus or compare estimated costs against digest-based billing (experimental).
โ ๏ธ This project is in sandbox status and under active development. Cost estimations are approximations and may differ from official billing. Only official invoices from OUTSCALE are authoritative.
- An OUTSCALE account with access to the API
~/.osc/config.jsonfor credentials- Linux/macOS shell (tested with Bash)
- Prometheus (optional, for metric export)
Download the latest binary from the GitHub Releases page.
Make it executable:
chmod +x osc-cost
mv osc-cost /usr/local/bin/The tool expects credentials in ~/.osc/config.json.
{
"default": {
"access_key": "YOUR_ACCESS_KEY",
"secret_key": "YOUR_SECRET_KEY",
"region": "eu-west-2"
}
}To use a different profile, use the --profile flag.
osc-costosc-cost --format=human # human-friendly output
osc-cost --format=markdown # markdown output
osc-cost --format=json # detailed structured output
osc-cost --format=ods # ODS spreadsheet
osc-cost --format=prometheus # Prometheus format
osc-cost --format=hour # Only price per hour
osc-cost --format=month # Only price per monthosc-cost --skip-resource OosCompare cost estimations with actual usage from digest:
osc-cost --format=json --output account.jsonosc-cost --compute-drift \
--from-date "$(date -d '-1 day' +%Y-%m-%d)" \
--to-date "$(date +%Y-%m-%d)" \
--input account.jsonโญโโโโโโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโฌโโโโโโโโฎ
โ Resource Type โ Osc-cost โ Digest โ Drift โ
โโโโโโโโโโโโโโโโโชโโโโโโโโโโโชโโโโโโโโโชโโโโโโโโก
โ Volume โ 1.18 โ 1.18 โ 0% โ
โ Snapshot โ 1.25 โ 0.62 โ 101% โ
โฐโโโโโโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโดโโโโโโโโฏ
Export estimated prices in Prometheus format:
osc-cost-exporter --bind 127.0.0.1:8080 &
curl http://127.0.0.1:8080Use the osc-cost Helm chart for Kubernetes deployment.
docker-compose -f helm/docker-compose.yaml upYou can deploy with any Kubernetes setup.
We welcome your contributions!
Please read the CONTRIBUTING.md guide.
- Update
Chart.yamlandvalues.yamlinhelm/osccost/ - Tag a release:
git tag -a vX.X.X -m "vX.X.X"- Push the tag and publish the release on GitHub.
osc-cost is licensed under the BSD 3-Clause License. ยฉ Outscale SAS This project is compliant with the REUSE Specification