joker1007 / fluent-plugin-cloudwatch-put

Fluentd output plugin to put metric data to AWS CloudWatch.
MIT License
4 stars 2 forks source link

If a dimension doesnt have name, filter it out #7

Closed xv-jesus-g closed 5 years ago

xv-jesus-g commented 5 years ago

Hi, Filtering out the dimensions not informed allow us to have a config:

  <dimensions>
    name ${dimension_name1}
    value ${dimension_value1}
  </dimensions>
  <dimensions>
    name ${dimension_name2}
    value ${dimension_value2}
  </dimensions>

And don't inform the second one if we don't need to. So we can use the same config for different metrics.