Instruction provided on the elastic website show how to configure meatricbeats to monitor stack.
My setup however is slightly different. I have metricbeats insalled on VM, it passes logs to logstash and logstash talks to elastic cloud.
How to configure .yml file for metricbeat in this case? Which modules I need to enable in metricbeat and finally do I need to send some API request in order to enable monitoring ?