-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Metricbeat] Manifest referenced in docs for k8 deployment results in metricbeat being reported as host #7199
Comments
When using |
It’s not but it atleast means the container doesn’t show up in host listings. Ideally it would send an empty field, but the beat could be running other modules. |
Agreed, this more an aesthetic fix, as we show beat hostname in the |
Metricbeat k8s deployment is used to poll the kube-state-metrics service for the kubernetes metricset. This configuration results in the metricbeat pod being reported as a host i.e. beat.name becomes the container name on all docs. This can be confusing in some visualizations. With this change the Metricbeat will report the underlying hostname. Fixes elastic#7199
Metricbeat k8s deployment is used to poll the kube-state-metrics service for the kubernetes metricset. This configuration results in the metricbeat pod being reported as a host i.e. beat.name becomes the container name on all docs. This can be confusing in some visualizations. With this change the Metricbeat will report the underlying hostname. Fixes #7199
The docs reference this manifest showing how to deploy metricbeat on k8 as a deployment - in order to poll the kube-state-metrics service for the kubernetes metricset. This configuration results in the metricbeat pod being reported as a host i.e. beat.name becomes the container name on all docs. This can be confusing in some visualizations.
To force it to set its hostname and beat.name to the underlying host i would suggest mounting proc and adding the switch
-system.hostfs=/hostfs
.In order for the kube-state-metrics to still be contactable via DNS the following is also required:
dnsPolicy: ClusterFirstWithHostNet
e.g.
The text was updated successfully, but these errors were encountered: