Reduce stored metrics
Chronosphere Observability Platform ingests metrics from many sources. These sources can supply multiple metric types, which are generally ingested as raw data. Although raw data might provide detailed information about a specific point in time, that data grows rapidly and is expensive to store. Use the following shaping rules to control costs by aggregating, downsampling, or dropping unneeded metric data:- Drop rules reduce incoming data or cardinality to pare down your stored metrics across both time and labels. Use drop rules to omit incoming metrics based on labels, and only retain the metrics you need. These rules help reduce persisted data, and you can implement them quickly.
- Rollup rules downsample and aggregate metrics after they’re sent by the client but before they’re stored. Use rollup rules to reduce cardinality, downsample data, and perform basic aggregations across both time and labels. These rules are scalable, can drop raw data, and handle late-arriving data.
- Mapping rules downsample in-memory metric data on the streaming ingest path and then store any results in the database, which happens before metric aggregation. Use mapping rules to reduce stored metrics across time only.
- Recommendations identify metrics and labels with no usage or utility over the past 30 days. Apply the suggested recommendations to reduce the impact on persisted writes and persisted cardinality.
Optimize query performance
Although Observability Platform provides recording rules to optimize query performance,
Chronosphere recommends using rollup rules in most
cases because they can reduce both cardinality and the volume of the data you persist.