Some background reading on this issue can be found here.
Note: I have labeled this as a feature since it's unclear that we understood what the intended behavior was in the first place. If people disagree and think it should be classified as a bug, I have no objection to relabling it.
At present, if a user configures a deployment in Elastic Cloud and ships monitoring data to it from a production cluster, visiting the Stack Monitoring link in the production cluster's Kibana instance will display the error below:

In the short term, the desired fix is (to quote @skearns64 in the original issue):
[To] have the Stack Monitoring UI check if the cluster is running in Cloud with a remote monitoring cluster, and show a message that monitoring is enabled, and to view the data they will need to go to the [monitoring] Kibana instance of the [production] monitoring cluster. Bonus points as a second step would be to link to that other [monitoring] Kibana.
It's possible that we will need somebody from the Cloud team to help us figure out how to have the Stack Monitoring UI check if the cluster is running in the cloud. (cc: @zanbel and @nachogiljaldo to help us find the right people to work with.)
It's possible that we will need somebody from the Cloud team to help us figure out how to have the Stack Monitoring UI check if the cluster is running in the cloud.
When running in Cloud, there is a cloud plugin in Kibana that has a property isCloudEnabled that should reliably indicate that the cluster is running in Elastic Cloud. cc @zanbel and @agup006 to verify this is always true for current versions, and to double check that the same is true in ECK.
Very helpful! Thanks, @skearns64 !
This is the approach recommended by @tylersmalley that I used for the MB setup wizard: https://github.com/elastic/kibana/blob/master/x-pack/legacy/plugins/monitoring/server/lib/setup/collection/get_collection_status.js#L514
We do have isCloudEnabled for ECE / EC, not sure about ECK. Adding @pebrc to see if we add the cloud plugin
It looks like there is a regression here. Cloud no longer shows this message
Pinging @elastic/stack-monitoring (Team:Monitoring)