Cannot disable "xpack.monitoring.collection.enabled" setting

Hello,
I'm using Kibana upgrade assistant to fix a vulnerability issue, the problem is I need to resolve all warnings, one warning that i couldn't fix is this :

the setting [xpack.monitoring.collection.enabled] is currently set to [true], remove this setting (nodes impacted: [SCPRWUWS05])

I tried setting "xpack.monitoring.collection.enabled" to false in elasticsearch.yml file, but nothing was changed.

How do i disable this?

After using metricbeat and disabled self monitoring for elasticsearch & kibana, 1 more warning popped up :

setting [xpack.monitoring.elasticsearch.collection.enabled] is deprecated and will be removed after 8.0 

Is there any way to skip these warnings?
Can I install the new version and import the old snapshot?

Found the solution, just need to set these 2 settings to "null" in kibana dev tools :

PUT /_cluster/settings { "xpack.monitoring.collection.enabled": null } PUT /_cluster/settings { "xpack.monitoring.elasticsearch.collection.enabled": null } 
1 Like

Hmm. Both of those commands return this on 9.1.4:

{ "error": { "root_cause": [ { "type": "action_request_validation_exception", "reason": "Validation Failed: 1: no settings to update;" } ], "type": "action_request_validation_exception", "reason": "Validation Failed: 1: no settings to update;" }, "status": 400 } 

Even though:

{ "persistent": { "xpack": { "monitoring": { "collection": { "enabled": "true" } } } }, "transient": {} } 

Hello @archon810 ,

These settings are probably removed now (I was using ELK stack 8.10 back then), they have been deprecated long ago.

Check this URL :

You’re right, it’s deprecated, which is why I’m trying to get rid of the entry in GET /_cluster/settings which currently returns in 9.1.4:

{ "persistent": { "xpack": { "monitoring": { "collection": { "enabled": "true" } } } }, "transient": {} } 

I don’t want to keep a confusing/deprecated setting entry in there.