-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[receiver/elasticsearch]: add cluster health metrics for two more shard types #14875
Conversation
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
There was a problem hiding this 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.
699dce8
to
f923358
Compare
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 |
f923358
to
40eb901
Compare
40eb901
to
819030d
Compare
0bea4f7
to
b053ced
Compare
@djaglowski workflow failed, could you rerun and merge? |
…rd types (open-telemetry#14875) * feat: add cluster health metrics for two more shard types
…rd types (open-telemetry#14875) * feat: add cluster health metrics for two more shard types
Description:
Two more metrics have been added:
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 ofactive_shards
and same withdelayed_unassigned_shards
andunassigned_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