Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cost Explorer API (10/n): adopt strategy for total cost per hub #4784

Closed
Tracked by #4453
consideRatio opened this issue Sep 11, 2024 · 0 comments · Fixed by #4846
Closed
Tracked by #4453

Cost Explorer API (10/n): adopt strategy for total cost per hub #4784

consideRatio opened this issue Sep 11, 2024 · 0 comments · Fixed by #4846
Assignees

Comments

@consideRatio
Copy link
Contributor

consideRatio commented Sep 11, 2024

Definition of done

  • Let aws-ce-grafana-backend group total costs data into hub attributed costs (staging, prod, etc) and hub unattributed costs (shared).
    1. Filter by known 2i2c infra costs, and group by 2i2c:hub-name tag
      NOTE: We could also try group by kubernetes.io/created-for/pvc/namespace, but
      for now we avoid this complexity and treat all storage volumes as
      shared costs. Almost all storage costs stems from the prometheus server
      though, which lives in support namespace anyhow and not a hub
      specific namespace.
    2. Track the remaining hub unattributed costs separatly
  • A manually defined grafana dashboard should be examplified to function against the backend. This should be panel 1 in [EPIC] Support attributing costs to individual hubs automatically on Openscapes #4453 (comment).
    image

Practical notes

I've tested deployments of aws-ce-backend-grafana without using deployer deploy-support ... as that is very slow and complicated to iterate based on, but instead deployed this with helm directly into ce-test namespace in the openscapes cluster. Info about how to do that are in the readme files.

@consideRatio consideRatio changed the title Cost Explorer API (8/n): adopt strategy for total costs in python Cost Explorer API (8/n): adopt strategy for total costs Sep 11, 2024
@consideRatio consideRatio changed the title Cost Explorer API (8/n): adopt strategy for total costs Cost Explorer API (8/n): adopt strategy for total cost per hub Sep 11, 2024
@consideRatio consideRatio changed the title Cost Explorer API (8/n): adopt strategy for total cost per hub Cost Explorer API (9/n): adopt strategy for total cost per hub Sep 11, 2024
@consideRatio consideRatio changed the title Cost Explorer API (9/n): adopt strategy for total cost per hub Cost Explorer API (10/n): adopt strategy for total cost per hub Sep 11, 2024
@consideRatio consideRatio self-assigned this Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant