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 cluster health metrics for two more shard types #14875

Conversation

aboguszewski-sumo
Copy link
Member

Description:
Two more metrics have been added:

elasticsearch_cluster_health_active_primary_shards
elasticsearch_cluster_health_delayed_unassigned_shards

I had problem adding these two metrics, because basically any good solution would be a breaking change. I decided to pick the solution that doesn't break anything: I added new shard_state enum values. However, according to this:
#14786 (comment)

this solution is not very good, because active_primary_shards is subset of active_shards and same with delayed_unassigned_shards and unassigned_shards.
Note: adding additional attribute such as is_primary won't help much, because this is the only field regarding to primary shards, same with delayed.

Link to tracking Issue: #14635

Testing:
Tests will be added when the metric schema gets accepted.

Documentation:
mdatagen

@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Oct 29, 2022
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.

LGTM, but we should use a feature gate. https://github.com/open-telemetry/opentelemetry-collector/pull/6358/files defines reasonable process for this even if not yet merged.

@github-actions github-actions bot removed the Stale label Nov 2, 2022
@aboguszewski-sumo aboguszewski-sumo force-pushed the elastic-add-cluster-health-shards branch from 699dce8 to f923358 Compare November 3, 2022 09:37
@aboguszewski-sumo
Copy link
Member Author

I added the feature gate. Please confirm if the expected version for the next step of feature gate in the readme is correct (according to the docs you sent, if this gets released in v0.64 then the next step will occur in v0.67).

@aboguszewski-sumo aboguszewski-sumo force-pushed the elastic-add-cluster-health-shards branch from f923358 to 40eb901 Compare November 14, 2022 09:17
@aboguszewski-sumo aboguszewski-sumo force-pushed the elastic-add-cluster-health-shards branch from 0bea4f7 to b053ced Compare November 14, 2022 11:01
@aboguszewski-sumo aboguszewski-sumo requested review from djaglowski and removed request for BinaryFissionGames November 17, 2022 08:49
@aboguszewski-sumo
Copy link
Member Author

@djaglowski workflow failed, could you rerun and merge?

@djaglowski djaglowski merged commit 3908d7d into open-telemetry:main Nov 17, 2022
JaredTan95 pushed a commit to openinsight-proj/opentelemetry-collector-contrib that referenced this pull request Nov 21, 2022
…rd types (open-telemetry#14875)

* feat: add cluster health metrics for two more shard types
shalper2 pushed a commit to shalper2/opentelemetry-collector-contrib that referenced this pull request Dec 6, 2022
…rd types (open-telemetry#14875)

* feat: add cluster health metrics for two more shard types
@plantfansam plantfansam mentioned this pull request Jul 21, 2023
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.

3 participants