.monitoring-es - increase retention?

Hi,

We're using Elastic Cloud and have a deployment with 3 zones.
When going to Kibana->Monitoring->Overview we only have 2 days worth of data.
I also only see indices for two days when GETing:
_cat/indices
(.monitoring-es-6-xxx)

How can we configure the system to keep stats for at least 7 days?

Regards,
-Tommy

The doc with the right setting you need is here:
https://www.elastic.co/guide/en/elasticsearch/reference/current/monitoring-settings.html

Call the following API operation to specify the index retention period. Change the 7d to whatever you like:

PUT _cluster/settings
{"persistent": {"xpack.monitoring.history.duration":"7d"}}

2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.