Robert
Robert

Reputation: 429

Grafana - Get AWS Cost usage by tags

Is there a way to get the costs of AWS resources by tags? It is possible using Linked accounts but I'm trying to figure out if we can filter out costs by tags.

enter image description here

For linked accounts the query is dimension_values(us-east-1, AWS/Billing, EstimatedCharges, LinkedAccount, {"Currency": "USD"})

But i'm not sure what the query is for tags? This is for variable/templating.

This is how a normal graph dashboard filtering looks like.

enter image description here

Upvotes: 3

Views: 1095

Answers (1)

Jan Garaj
Jan Garaj

Reputation: 28656

No, that's not possible. CloudWatch metric EstimatedCharges in the AWS/Billing namespace doesn't provide tag dimension (only ServiceName dimension). AWS Cost Explorer doesn't use CloudWatch metric - there is different AWS API used, which is not implemented in the Grafana.

Upvotes: 3

Related Questions