Skip to content

Conversation

@ruflin
Copy link
Contributor

@ruflin ruflin commented May 15, 2018

  • Introduces GetNodeInfo method to fetch additional info about the node. This should become obsolete in the future.
  • Refactor shard metricset to use module level hostParser and metricset.

The xpack feature works but will need further testing with new builds of Elasticsearch. The plan is to test all xpack metricsets together when they are all done and do further tweaks.

@ruflin ruflin added in progress Pull request is currently in progress. module Metricbeat Metricbeat labels May 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported function GetNodeInfo should have comment or be unexported

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported type NodeInfo should have comment or be unexported

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pickypg This value is most of the time null. In these cases metricbeat just skips the value instead of sending null. Is that ok?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that should be fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pickypg Should this be a subest of the cluster_uuid?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pickypg @tlrx You might now more here? On ES master the following request http://localhost:9200/_cluster/state/version,master_node,routing_table?pretty returns:

{
  "cluster_name" : "elasticsearch",
  "compressed_size_in_bytes" : 36170,
  "cluster_uuid" : "_na_",
  "version" : 59,

If I fetch http://localhost:9200/_cluster/state/?pretty I get

{
  "cluster_name" : "elasticsearch",
  "compressed_size_in_bytes" : 36170,
  "cluster_uuid" : "Ir3Dhzo-TluhYWEaz4UZlA",
  "version" : 59,

Is this a bug?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch @ruflin

I created elastic/elasticsearch#30656 and asked Chris to review it.

@ruflin ruflin force-pushed the shard-xpack branch 2 times, most recently from eb9dd0f to 0d5ecec Compare May 17, 2018 09:26
@ruflin ruflin changed the title [WIP] Add x-pack data for Elasticsearch shard metricset Add x-pack data for Elasticsearch shard metricset May 17, 2018
* Introduces GetNodeInfo method to fetch additional info about the node. This should become obsolete in the future.
* Refactor shard metricset to use module level hostParser and metricset.

The xpack feature works but will need further testing with new builds of Elasticsearch. The plan is to test all xpack metricsets together when they are all done and do further tweaks.
@ruflin ruflin added review and removed in progress Pull request is currently in progress. labels May 17, 2018
@jsoriano jsoriano merged commit 95ab81e into elastic:master May 17, 2018
stevea78 pushed a commit to stevea78/beats that referenced this pull request May 20, 2018
* Introduces GetNodeInfo method to fetch additional info about the node. This should become obsolete in the future.
* Refactor shard metricset to use module level hostParser and metricset.

The xpack feature works but will need further testing with new builds of Elasticsearch. The plan is to test all xpack metricsets together when they are all done and do further tweaks.
stevea78 pushed a commit to stevea78/beats that referenced this pull request May 20, 2018
* Introduces GetNodeInfo method to fetch additional info about the node. This should become obsolete in the future.
* Refactor shard metricset to use module level hostParser and metricset.

The xpack feature works but will need further testing with new builds of Elasticsearch. The plan is to test all xpack metricsets together when they are all done and do further tweaks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants