Uploaded image for project: 'Cost Management'
  1. Cost Management
  2. COST-2851

Update koku-daily with respect to org-id changeover

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 2022Q3
    • 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.

            cgoodfre Corey Goodfred
            cgoodfre Corey Goodfred
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: