I've used the yum packages available for CentOS 7. The modules directory under /etc/metricbeat/modules.d contains the required files.
For Ubuntu 18.04 LTS I've used the apt packages accordingly.
I read the documentation on https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-configuration.html. I read the line for Mac and Linux. I wasn't aware, that elastic extended the command stack in directory /bin. Reading this page carefully, you have stated, that you have metricbeat in the search path of the OS, if you used RPM or DEB packages to install metricbeat.
So, it is up to you to clarify on this. It isn't best best practice to have similar commands (here: metricbeat) with different behavior.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.