edawson / cromwell-accountant

A script to calculate estimated cost of a Cromwell workflow on Google Cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This script estimates the cost of running a Cromwell pipeline on Google Cloud based on Cromwell metadata JSON, which is a full response to GET https://${chromwell_host}/api/workflows/v1/{workflow_id}/metadata.

You can use it in the following format:

./cost.py < metadata.json

It fetches the current GCP price list and calculates the cost of each task call based on the hourly price of its machine type and disk type and size. Then, it sums up the cost of all calls and prints it to stdout.

Note: This script can be used on the workflows that are still running.

About

A script to calculate estimated cost of a Cromwell workflow on Google Cloud


Languages

Language:Python 100.0%