Skip to content
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

Elasticsearch 6 lost some attribute/tags in _nodes api #4493

Closed
bbfoto opened this issue Jul 31, 2018 · 6 comments
Closed

Elasticsearch 6 lost some attribute/tags in _nodes api #4493

bbfoto opened this issue Jul 31, 2018 · 6 comments
Labels
area/elasticsearch bug unexpected problem or unintended behavior waiting for response waiting for response from contributor

Comments

@bbfoto
Copy link

bbfoto commented Jul 31, 2018

We just noticed in our automated es dashboards, that our shiny new es6 cluster doesn't distinguish between data and master nodes.

traced it down to I suspect a breaking change on es side that affects the way es telegraf plugin is tagging metrics...

in line 30, Attributes map[string]string json:"attributes"`` seems to not work anymore.
I feel this kind of has a vague reference to it.
https://www.elastic.co/guide/en/elasticsearch/reference/5.5/breaking_50_settings_changes.html#_node_attribute_settings

Looking at es 1.x results vs 6.x results, I think the solution might be to instead of using
Attributes map[string]string json:"attributes"
to attributes or roles depending on es version...
in the es6 _nodes result I have the following for a master

    "roles" : [
        "master",
        "ingest"
      ],

and the following for a datanodes

   "roles" : [
       "data",
       "ingest"
     ],

there is no attributes{} section in my es6 _nodes result.

maybe also of interest. I find in both es1.x and es6.x clusters I do have the following subset of settings.cluster

        "node" : {
          "data" : "true",
          "name" : "<human_readable_hostname>",
          "master" : "false"
         },

I think either node or roles would work for the original intent of attributes.

@danielnelson danielnelson added bug unexpected problem or unintended behavior area/elasticsearch labels Jul 31, 2018
@danielnelson danielnelson changed the title elasticsearch.go lost some attribute/tags in _nodes api Elasticsearch 6 lost some attribute/tags in _nodes api Jul 31, 2018
@danielnelson
Copy link
Contributor

related: #3630

@dupondje
Copy link
Contributor

dupondje commented Jul 2, 2019

Which attribute/tags are lost?

I compares ES 5 and ES 6, but they seem both similar.

For the master vs data nodes:
dupondje@ae16792

I'll get this merged asap.

@glinton
Copy link
Contributor

glinton commented Jul 9, 2019

@bbfoto have you tried again with a nightly build since #6064 was merged?

@bbfoto
Copy link
Author

bbfoto commented Jan 31, 2020

will give it a try.

@sjwang90
Copy link
Contributor

@bbfoto has this problem been fixed? please closed if so or provide what error you are still receiving.

@powersj powersj added the waiting for response waiting for response from contributor label Aug 11, 2022
@telegraf-tiger
Copy link
Contributor

Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Page. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/elasticsearch bug unexpected problem or unintended behavior waiting for response waiting for response from contributor
Projects
None yet
Development

No branches or pull requests

6 participants