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

Added the cluster_cost to the cro #673

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

athiruma
Copy link
Collaborator

Type of change

Note: Fill x in []

  • bug
  • enhancement
  • documentation
  • dependencies

Description

Adding the cluster details and the cluster_cost.

  1. Fetch the cost from the Athena query.
  2. Updated the instance_data format. [ Name, instance_id, instance_type, instance_offering, rosa/self ]

For security reasons, all pull requests need to be approved first before running any automated CI

@athiruma athiruma added documentation Improvements or additions to documentation enhancement New feature or request dependencies Pull requests that update a dependency file labels Sep 20, 2023
@athiruma athiruma requested review from kpouget and ebattat September 20, 2023 10:19
@athiruma athiruma self-assigned this Sep 20, 2023
@kpouget
Copy link

kpouget commented Sep 20, 2023

nice, thanks for the work @athiruma 👍🏻

Copy link
Collaborator

@ebattat ebattat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to add any unittest ?

@@ -21,6 +21,11 @@
CRO_PORTAL = os.environ['CRO_PORTAL']
CRO_COST_OVER_USAGE = os.environ['CRO_COST_OVER_USAGE']
CRO_ES_INDEX = os.environ['CRO_ES_INDEX']
AWS_ACCESS_KEY_ID_ATHIRUMA_BOT = os.environ['AWS_ACCESS_KEY_ID_ATHIRUMA_BOT']
AWS_SECRET_ACCESS_KEY_ATHIRUMA_BOT = os.environ['AWS_SECRET_ACCESS_KEY_ATHIRUMA_BOT']
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AWS_ACCESS_KEY_ID_ATHIRUMA_BOT, AWS_ACCESS_KEY_ID_ATHIRUMA_BOT
Are those the same as:
ATHENA_ACCOUNT_ACCESS_KEY, ATHENA_ACCOUNT_SECRET_KEY

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I am using my creds to querying the Athena database.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 2 different names ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are my personal creds, So I named them as my creds.
We need to pass the Athena creds. So I am asking for the Athena creds.

@athiruma
Copy link
Collaborator Author

Do we need to add any unittest ?

have them already

Copy link
Collaborator

@ebattat ebattat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/LGTM

@ebattat ebattat merged commit d9005c1 into redhat-performance:main Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

3 participants