Boavizta / cloud-scanner

📡 Get Boavizta impact data for your AWS usage.
https://boavizta.github.io/cloud-scanner/
GNU Affero General Public License v3.0
35 stars 8 forks source link

352 estimate impacts of an existing inventory #505

Closed demeringo closed 6 months ago

demeringo commented 6 months ago

Allow estimation of impacts of an existing inventory that is passed as a file to the CLI.

Update Rust version to 1.78.

Include also some refactoring and a breaking change on CLI:

Usage: cloud-scanner-cli [OPTIONS] <COMMAND>

Commands:
  estimate   Get estimation of impacts for a given usage duration as json
  metrics    Get estimation of impacts for a given usage duration as OpenMetrics (Prometheus) instead of json
  inventory  List resources (and instances average cpu load for the last 5 minutes) without returning impacts
  serve      Run as a standalone server. Access metrics (e.g. http://localhost:8000/metrics?aws_region=eu-west-3), inventory or impacts (see http://localhost:8000/swagger-ui)
  help       Print this message or the help of the given subcommand(s)

Options:
  -a, --aws-region <AWS_REGION>
          AWS region (The default aws profile region is used if not provided)
  -b, --boavizta-api-url <BOAVIZTA_API_URL>
          Optional Boavizta API URL if you want to use your own instance (URL without the trailing slash, e.g. https://api.boavizta.org)
  -t, --filter-tags <FILTER_TAGS>
          Filter instances on tags (like tag-key-1=val_1 tag-key_2=val2)
  -v, --verbosity...
          Enable logging and show execution duration, use multiple `v`s to increase logging level warning to debug
  -h, --help
          Print help
demeringo commented 6 months ago

@damienfernandes feature in progress to estimate an impacts of a preiviously saved (or created from scratch) inventory ;-)