influxdata / community-templates

InfluxDB Community Templates: Quickly collect & analyze time series data from a range of sources: Kubernetes, MySQL, Postgres, AWS, Nginx, Jenkins, and more.

Home Page:https://www.influxdata.com/products/influxdb-templates/gallery/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

System Metrics Template Results in Very High Cardinality at Scale

rickspencer3 opened this issue · comments

Template: linux_system

Describe the problem
When using this template at scale in a dynamic environment, for example Elastic Beanstalk, cardinality can grow dramatically. This is because the host is a tag, and if you have many immutable hosts being created constantly, there will be many thousands of values for the host tag.

Suggestion
A reasonable resolution for this is to store the raw data in a bucket with a short retention period (say, for example, 1 day) but then to downsample the data, dropping the host tag, and storing the downsampled data in a bucket with a longer retention period.