Changes of hostname or ip addresses does not updates host metadata until metricbeat restart on nodes

You are right!

I overlooked the cache.ttl setting at metricbeat.yml.

Thank you very much. Issue solved.

Greetings and stay safe!