jupycost provides functions for Openscapes to query and monitor patterns of usage and costs of the JupyterHubs that we adminster in partnership with 2i2c.
We monitor usage by querying a Prometheus time-series database, as well as the AWS Cost-Explorer API. jupycost allows us to do automated periodic reporting of usage. We also use Grafana to monitor usage interactively.
You can install the development version of jupycost from GitHub with:
# install.packages("pak")
pak::pak("Openscapes/jupycost")
This is a basic example which shows you how to solve a common problem: