Configuring summarization
Summarization is the process of aggregating retained data into time-based categories: hourly and daily. When the metric summary service is enabled, metric samples are summarized and kept on the Cloud App Management server. You can change how often the hourly metrics are summarized, how long hourly and daily summarized metrics are kept on the server, and turn off daily summarization.
Before you begin
About this task
Use
this procedure if you want change any of these default settings by creating a Kubernetes ConfigMap with the variables that you want to change:
When determining the values to set, take into account the considerations in Data retention and summarization.- SHORT_TERM_SUMMARY_TTL: "P60D"
- The hourly summarized metrics for short-term history are kept on the Cloud App Management server for 60 days by default. Best practice is to set the value from 8 days to 60 days.
- LONG_TERM_SUMMARY_TTL: "P6M"
- The daily summarized metrics for long-term history are kept on the Cloud App Management server for 6 months by default. Best practice is to set the value from 2 months to 13 months.
- POLICY_GENERATION_HOURLY_INTERVAL: "PT1H"
- The metric samples that were taken (typically once per minute) for the past hour are summarized. Change to a different interval, up to 24 hours.
- DAILY_SUMMARIZATION_ENABLED: "true"
- The metric samples that were taken (typically once per minute) for the past day are summarized once per day and saved for long-term history. Creation of the long-term history can take several hours to complete. If you don't want to keep long-term historical data, use this variable to turn off daily summarization. When this variable is used, the LONG_TERM_SUMMARY_TTL variable is not used.
Procedure
Take these steps to configure data summarization: