Metric Beat AWS Billing

Any help on this is appreciated, I am using metricbeat to get the data from aws cloud watch and cost explorer, from Elasticsearch and to kibana dashboard i was able successfully get the all metrics for ec2 from aws. But when coming billing i was not able to filter it out by cost center.
Reference

aws.yml looks like

Blockquote


  • module: aws
    period: 300s
    metricsets:
    • ec2
      access_key_id: '<access_key_id>'
      secret_access_key: '<secret_access_key>'
      tags_filter:
    • key: "CostCenter"
      value: "xxxxx"

BlockquotePreformatted text

  • module: aws
    period: 24h
    metricsets:
    • billing
      tags_filter:
    • key: "CostCenter"
      value: "xxxxx"
      cost_explorer_config:
      group_by_dimension_keys:
      • "AZ"
      • "INSTANCE_TYPE"
      • "SERVICE"
        group_by_tag_keys:
      • "aws:createdBy"

Blockquote

By doing this i was able to get the estimated cost for all the account but not able to filter it out in the kibana dashboard. no values displayed.

Could you please format the post using `` tags? Thanks in advance!

to access aws ec2 metrics

module: aws
period: 300s
metricsets:
   ec2
access_key_id: '<access_key_id>'
secret_access_key: '<secret_access_key>'
tags_filter:
   key: "CostCenter"
   value: "xxxxx"

to access the billing dashboard

module:
period: 24h
metricsets:
   billing
tags_filter:
   key: "CostCenter"
   value: "xxxxx"
cost_explorer_config:
group_by_dimension_keys:
     "AZ"
     "INSTANCE_TYPE"
     "SERVICE"
group_by_tag_keys:
     "aws:createdBy"
1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.