My setup:
- Telegraf 1.10.2
- InfluxDB shell version: 1.7.4
- Grafana Version 6.1.0
My Telegraf config for cloudwatch:
[global_tags]
[agent]
interval = “10s”
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = “0s”
flush_interval = “10s”
flush_jitter = “0s”
precision = “”
debug = false
quiet = false
logfile = “xxxxxx/logs/telegraf.log”
hostname = “”
omit_hostname = false
[[outputs.influxdb]]
urls = [“http://localhost:8086”]
database = “telegraf”
retention_policy = “”
write_consistency = “any”
timeout = “5s”
[[inputs.cloudwatch]]
region = “us-xxx-xx”
access_key = “xxxxx”
secret_key = “xxxx”
period = “30s”
delay = “5m”
interval = “5m”
namespace = “AWS/ElastiCache”
ratelimit = 25
#####statistic_include = [ “average”, “maximum”, “p90” ]
#####statistic_exclude = [ “sum”, “minimum”, “sample_count” ]
[[inputs.cloudwatch.metrics]]
names = [“IsMaster”, “CPUUtilization”, “EngineCPUUtilization”, “SwapUsage”, “BytesUsedForCache”, “FreeableMemory”, “NetworkBytesIn”, “NetworkBytesOut”, “ReplicationBytes”, “ReplicationLag”, “CurrConnections”, “NewConnections”, “CurrItems”, “Reclaimed”, “CacheHits”, “CacheMisses”, “Evictions”, “GetTypeCmds”, “SetTypeCmds”]
[[inputs.cloudwatch.metrics.dimensions]]
name = “CacheClusterId”
value = “*”
Issue1:
My above setup is collecting “sum, minimum, maximum, average and sample_count” and the values of min, max & average all look the same they are not changing, are we doing something wrong?
Issue2:
We would like to limit our collection of statistics to: Min, Max & Average. I tried doing that by setting up the statistic_include & statistic_exclude, however they are not working. Hence, I commented them out as you see above in my configuration.
Appreciate any help with above two issues.