google-dataproc-job-cost-estimator
calculates the cost of Hadoop/Spark jobs run on a Google Cloud Platform Dataproc instance. This is a naive approach that doesn't account for multi-tenant applications. I have used this script successfully with my Airflow tasks.
You should have installed the requirements.txt and then initialised your gcloud
credentials. This application relies on the default gcloud credentials
To get the cost of the last job with a valid status on Dataproc simply call get_cost_for_last_job()
from within your application