How to set environment variables globally in metric beats.
For example,
In metric beat folder inside the mysql.yml file defaultlly its hard coded like
hosts: ["root:root@tcp(localhost:3306)/"]
username and password are root & root port-3306
Now i set username and password are globally inside the metricbeat . i can access this through in environemnt property file.
Sorry, it is not possible to load environment variables from files using only metricbeat. For that you'd have to rely on the scripts or service managers you use to configure and start metricbeat.
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.