-
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
state_service metricset fails on headless services #17447
Comments
Pinging @elastic/integrations-platforms (Team:Platforms) |
I also meet this error. |
Yep, same here. My quick fix is:
|
Maybe changing this field from
Wondering why other fields of this metricset, like On the other hand changing this field from Any thoughts @jsoriano ? |
Yes, changing the field type to As you mention we would be losing functionality available to IP fields. An alternative would be to handle non-IP values of these fields in a different way, for example we could drop the field on |
did not work for me. |
I edit the file /usr/share/metricbeat/fields.yml in metricbeat docker container (v7.8.1) setting the type keyword for cluster_ip key and restarted the container. I still receive the error:
|
I think that using |
Maybe you missed the step of re-loading the index template? See https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-template.html hint: You can always delete the mapping/template from your ES and try again. This should fix your issue. Btw I will push an upstream patch for it soonish. |
I will wait for the fixed docker image. For the moment i remove the kubernetes services from monitoring because the error was caused by kube-system-metrics service. Thanks. |
There was published a new docker image with the fix? Thanks. |
The change will be reflected to master ( |
What's the difference between 7.10 and 8.0? |
The kubernetes module's state_service metricset fails to index headless kubernetes services, which explicitly have
None
as the ClusterIP. This is easy to reproduce by using metricbeat and ECK, which uses headless services by default. It's not clear to me what the correct behavior would be here though.This is the meat of the error being thrown:
And the full error:
And a service yaml that causes the error:
For confirmed bugs, please report:
The text was updated successfully, but these errors were encountered: