I’m pushing metrics to Cloudwatch with the telegraf plugin
outputs.cloudwatch. I have the telegraf agent installed on many machines.
write_statistics option per recommended to batch results, however, I’m really not happy with the resulting stored values in Cloudwatch.
For example, a memory metric is now stored with multiple entries like:
max_memory_mean, max_memory_max,max_memory_sum etc.
aggregation plugin and write_statistics
I’m already using the aggregation plugin to capture metrics every 15 seconds or so, and then get the mean/median value from the aggregator to send 1x a minute up to Cloudwatch. This is an aggregated value. However, for Cloudwatch, I think it would just show up as a single metric at a point in time. I don’t really want to send the same value as average, max, minimum etc. Not only is it confusing, but really all I want is to use the single point.
my main questions
- If I disable the
write_statistics, and use the aggregation plugin to calculate the value I want, is that acceptable to write the data point?
- If I use the
write_statisticssetting, is there anyway for it come through as a single
max_memorytype metric, rather than 4 different types of calculated metrics, when I’ve already done the aggregation to get the 1 value I want?