-
Bug
-
Resolution: Done
-
Normal
-
None
-
None
-
False
-
None
-
False
2022-08-02 15:01:52,383 - kokudaily.send - INFO - Setting gauge hccm_count_orphaned_providers with labels ['account_id', 'source_type', 'namespace'] with {'source_type': 'OCP', 'namespace': 'hccm-stage'} and value 1. Traceback (most recent call last): File "job.py", line 36, in <module> prometheus(target, report_name, **report) File "/opt/kokudaily/kokudaily/send.py", line 93, in prometheus gauge.labels(**gauge_labels).set(int(value)) File "/opt/kokudaily/.venv/lib/python3.8/site-packages/prometheus_client/metrics.py", line 173, in labels raise ValueError('Incorrect label names') ValueError: Incorrect label names
Anemic tenants can cause the koku-daily job to fail as seen in stage. Updates are needed to handle the change to org-id and deal with the possibility of anemic tenants.