XgridInc / xc3

XC3 is a cloud agnostic and risk free package offering powered by Cloud Custodian that provides resource inventory, tagging compliance, unused or invalid resources cleanup, account maintenance, cost control, backups, monitoring and alerting.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix data display issue for the most expensive service on Grafana dashboard.

muhammad-irfan-xgrid opened this issue · comments

User stories

#1 As a DevOps Engineer, I have to xix data display issue for the most expensive service on Grafana dashboard."

Acceptance Criteria

What must be achieved to consider this story complete?

  • Identify the issue.

  • Find solution to fix issue.

  • Implement the solution and test it.

Reason: Reading parameter in lambda function name cost most expensive services. Error is shown below. This lambda is responsible getting most expensive services for each region and then push cost metric to Prometheus and S3 bucket. But while reading regions name it throw error give below.

Image

Image

Parameter Reading Error: We have to create Parameter in SSM whioch store regions name. then this issue is resolved.

Image

Region variable issue: When we use region in query as variable than data not found. But when I test it by writing any specific region name instead of using variable. we are getting data.

Image

Solution: Need to updated query and remove code of region name reading from SSM paramter from lambda fucntion: cost_of_most_expnesive service.
Results.

Image

Final Solution: Don't remove any code just update query as below in json file and creaet SSM parameter with "/{namespcae}/region_names" and value should be as we ahve in "/xc3/region_names".