Lately we've noticed that when adding some cluster-level stats (#68603 and #64935), those collectors are not registered as Usage or Stats collector in Kibana, because they are not supposed to be reported as part of the stack_stats.kibana.plugins payload.
This results in missing some information when monitoring is enabled. As far as I could understand from taking a look at the code in x-pack/plugins/monitoring, the information reported to the Monitoring cluster is collected via the code in x-pack/plugins/monitoring/server/kibana_monitoring. More specifically, in the bulk_uploader.js file.
I'm creating this issue to review the logic in BulkUploader to:
Lately we've noticed that when adding some cluster-level stats (#68603 and #64935), those collectors are not registered as Usage or Stats collector in Kibana, because they are not supposed to be reported as part of the
stack_stats.kibana.pluginspayload.This results in missing some information when
monitoringis enabled. As far as I could understand from taking a look at the code inx-pack/plugins/monitoring, the information reported to the Monitoring cluster is collected via the code inx-pack/plugins/monitoring/server/kibana_monitoring. More specifically, in thebulk_uploader.jsfile.I'm creating this issue to review the logic in BulkUploader to:
kibana/src/legacy/server/status/routes/api/register_stats.js
Line 67 in 3d0552e