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

[receiver/elasticsearch]: Add endpoint resource attribute #14774

Conversation

aboguszewski-sumo
Copy link
Member

@aboguszewski-sumo aboguszewski-sumo commented Oct 7, 2022

Description:
This PR adds a resource attribute with the endpoint of the queried node.

Link to tracking Issue: #14635

Testing:
Unit and integration tests.

Documentation:
Generated with mdatagen.

Comment on lines +10 to +12
elasticsearch.endpoint:
description: Endpoint of the queried elasticsearch node.
type: string
Copy link
Member Author

@aboguszewski-sumo aboguszewski-sumo Oct 7, 2022

Choose a reason for hiding this comment

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

I did not decide to go for elasticsearch.node.endpoint, because we query only one node, but the results can refer to different nodes and this would be a misleading hint that both elasticsearch.node.endpoint and elasticsearch.node.name refer to the same node, while they would not.

@aboguszewski-sumo aboguszewski-sumo marked this pull request as ready for review October 7, 2022 14:42
@aboguszewski-sumo aboguszewski-sumo requested a review from a team October 7, 2022 14:42
Copy link
Contributor

@BinaryFissionGames BinaryFissionGames left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@djaglowski djaglowski left a comment

Choose a reason for hiding this comment

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

It's not clear to me why we would add this. The metrics are accurately attributed to the node they are describing. Including this seems to me to add confusion about the metrics.

@aboguszewski-sumo
Copy link
Member Author

I checked and apparently this was not an attribute I was supposed to add, thanks for vigilance. I'm closing this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants