I am configuring Metricbeat to fetch some stats from a remote HAProxy server.
This way HAProxy metrics are sent to Elasticsearch with the host.name
of the local Metricbeat server and not of the host.name
from the remote HAProxy server.
I am wondering if I can override the host.name or host.hostname variables so that:
- system metrics are forwarded with the
host.name
of the local Metricbeat host - HAProxy metrics are formwarded with the
host.name
of the remote HAProxy server, configuring it somewhere
Thanks!