Describe the bug:
No Logstash nodes are displayed on Stack Monitoring on Overview, Nodes, and Pipelines if Logstash is under a Standalone Cluster and accessed through CCS.
Steps to reproduce:
Set up and run Logstash to output to non-Elasticsearch output
Set up Logstash monitoring using Metricbeat
Set up CCS from a different cluster to access Logstash monitoring data
Go to Stack Monitoring --> Standalone Cluster
Click on either Overview, Nodes, or Pipelines
Observe a blank list/charts are displayed
It's working fine Logstash that sends data directly to an Elasticsearch cluster.
Expected behavior:
Charts/list should be populated with relevant Logstash instances and metrics.
Relates to #93617
Tried with 7.13.0-SNAPSHOT
Direct access to the cluster that stores the monitoring data
Access to the monitoring data via CCS
No error for Beats, but observed the following errors for APM Server
Stack Monitoring standalone cluster error
```
POST http://localhost:5601/api/monitoring/v1/clusters/__standalone_cluster__/apm/instances
TypeError: data is undefined
ApmServerInstances http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30
ds http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
xa http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
fl http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
ml http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
ol http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
Gr http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
unstable_runWithPriority http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398
qr http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
Gr http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
Vr http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
el http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
Wl http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
Gl http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
render http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390
renderReact http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30
renderComponent http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30
controller http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30
$digest http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
$apply http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
updateData http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30
promise callback*base_controller_MonitoringViewBaseController/this.updateData http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30
base_controller_MonitoringViewBaseController http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30
$eval http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
applyAsync http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
C http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
$eval http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
$apply http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
i http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
completeTask http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
i http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
setTimeout handler*cn/o.defer http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
$applyAsync http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
titleProvider http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30
base_controller_MonitoringViewBaseController http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30
base_eui_table_controller_MonitoringViewBaseEuiTableController http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30
controller http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30
instantiate http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
get http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
link http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30
he http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
Pe http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
se http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
le http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
oe http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
ge http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
i http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
_ http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
update http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30
$broadcast http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
commitRoute http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30
u http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
u http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
$digest http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
evalAsync http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
completeTask http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
i http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
setTimeout handler*cn/o.defer http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
$evalAsync http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
get http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
u http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
e http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
h http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
resolve http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
C http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
a http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
y http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
C http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
onload http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
get http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
y http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
y http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
u http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
u http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
$digest http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
get http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
x http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
T http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
x http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
S http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375
dispatch http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:353
handle http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:353
kbn-ui-shared-deps.js:390:77072
```
Kibana version:
7.12.0
7.12.1
7.13.x
7.14.0
Elasticsearch version:
7.12.0
7.12.1
7.13.x
7.14.0
Browser version: Firefox
87.0
88.0
Describe the bug: No Logstash nodes are displayed on Stack Monitoring on Overview, Nodes, and Pipelines if Logstash is under a Standalone Cluster and accessed through CCS.
Steps to reproduce:
It's working fine Logstash that sends data directly to an Elasticsearch cluster.
Expected behavior: Charts/list should be populated with relevant Logstash instances and metrics.
Relates to #93617
Tried with
7.13.0-SNAPSHOT
Direct access to the cluster that stores the monitoring dataAccess to the monitoring data via CCS
No error for Beats, but observed the following errors for APM Server
Stack Monitoring standalone cluster error
``` POST http://localhost:5601/api/monitoring/v1/clusters/__standalone_cluster__/apm/instances TypeError: data is undefined ApmServerInstances http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30 ds http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390 xa http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390 fl http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390 ml http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390 ol http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390 Gr http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390 unstable_runWithPriority http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398 qr http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390 Gr http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390 Vr http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390 el http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390 Wl http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390 Gl http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390 render http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390 renderReact http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30 renderComponent http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30 controller http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30 $digest http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 $apply http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 updateData http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30 promise callback*base_controller_MonitoringViewBaseController/this.updateData http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30 base_controller_MonitoringViewBaseController http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30 $eval http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 applyAsync http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 C http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 $eval http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 $apply http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 i http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 completeTask http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 i http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 setTimeout handler*cn/o.defer http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 $applyAsync http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 titleProvider http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30 base_controller_MonitoringViewBaseController http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30 base_eui_table_controller_MonitoringViewBaseEuiTableController http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30 controller http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30 instantiate http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 get http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 link http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30 he http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 Pe http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 se http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 le http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 oe http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 ge http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 i http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 _ http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 update http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30 $broadcast http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 commitRoute http://localhost:5601/40058/bundles/plugin/monitoring/8.0.0/monitoring.chunk.1.js:30 u http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 u http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 $digest http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 evalAsync http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 completeTask http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 i http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 setTimeout handler*cn/o.defer http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 $evalAsync http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 get http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 u http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 e http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 h http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 resolve http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 C http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 a http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 y http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 C http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 onload http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 get http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 y http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 y http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 u http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 u http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 $digest http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 get http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 x http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 T http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 x http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 S http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:375 dispatch http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:353 handle http://localhost:5601/40058/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:353 kbn-ui-shared-deps.js:390:77072 ```