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