Hello!
I have wanted to see what monitoring of stack was offerring. As I don't have metricbeat installed, I chose a self monitoring.
Now, I would like to revert this change and disable monitoring (because I'm afraid monitoring shards will be too important). In my cluster overview, I can enable the setup mode, but it only ofer me to switch to metricbeat, I didn't fine anyway to disable monitoring:
You can use the following API call to disable the stack monitoring collection.
#set to false
PUT _cluster/settings
{
"persistent": {
"xpack.monitoring.collection.enabled": false
}
}
#or you can set the default (false) with the following API call. (recommended)
PUT _cluster/settings
{
"persistent": {
"xpack.monitoring.collection.enabled": null
},
"transient": {
"xpack.monitoring.collection.enabled": null
}
}
#check if it's disabled
GET _cluster/settings?include_defaults&filter_path=defaults.xpack.monitoring.collection.enabled
By default, Elasticsearch monitoring features are enabled but data collection is disabled. To enable/disable data collection, use the
xpack.monitoring.collection.enabled
setting.
Ref: Monitoring settings in Elasticsearch | Elasticsearch Guide [8.14] | Elastic
Many thanks! That's perfect.
You're welcome Cyanay. Happy to hear it worked!