I've been reading about creating a beat and creating metricsets for metricbeat but would like your advise on creating extra fields.
What I would like to do is to add one extra field such as datacenter_name but in all available metricsets in the metric module system - would I have to download the metricbeat source code and amend each individual metricsets?
We're not deploying in a cloud environment unfortunately.
Is there a way to do this programmatically/dynamically? I have a way to extract the data center name based on the host where metricbeat is installed/running and I want to inject that dynamic value into an extra field into all the metricsets - using fields it looks like requires hard coding in metricbeat.yml if I'm not wrong.
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.