Quick tip to prevent the monitoring index to get out of control:
To decrease the amount of data of the ElasticSearch monitoring you can change the _cluster settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PUT /_cluster/settings | |
{ | |
"persistent" : { | |
"xpack.monitoring.history.duration":"3d" | |
} | |
} |
More information: https://www.elastic.co/guide/en/elasticsearch/reference/current/monitoring-settings.html