Skip to content

Commit cd86a01

Browse files
authored
fix: convert message from info to debug logging (#99)
* Update README with groups exporter information * fix: convert message from info to debug logging
1 parent fc41df8 commit cd86a01

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,14 @@ jupyterhub-cost-monitoring:
3838
value: "<name-of-cluster>"
3939
```
4040
41+
### AWS IAM Role Configuration
42+
4143
An example of configuring an AWS IAM role to talk to the AWS Cost Explorer API can be found in the [2i2c Infrastructure Guide](https://infrastructure.2i2c.org/topic/billing/cost-monitoring-system/).
4244
45+
### Groups Exporter
46+
47+
For group costs, [`jupyterhub-groups-exporter](https://github.com/2i2c-org/jupyterhub-groups-exporter) needs to be installed. This is an exporter that exposes JupyterHub user group information to Prometheus.
48+
4349
## Documentation
4450

4551
Documentation can be found at [https://jupyterhub-cost-monitoring.readthedocs.io/en/latest/](https://jupyterhub-cost-monitoring.readthedocs.io/en/latest/)

src/jupyterhub_cost_monitoring/query_cost_aws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ def query_total_costs_per_group(
628628
response = {}
629629
for r in results:
630630
key = (r["date"], r["usergroup"])
631-
logger.info(f"Key: {key}, Value: {r['value']}")
631+
logger.debug(f"Key: {key}, Value: {r['value']}")
632632
response[key] = response.get(key, 0) + float(r["value"])
633633

634634
final_response = [

0 commit comments

Comments
 (0)