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

[k8sclusterreceiver] refactor metric units to follow Otel conventions #26708

Merged

Conversation

povilasv
Copy link
Contributor

Description:

Refactor some metric units to follow OTEL Semantic conventions

Link to tracking Issue: #10553

Testing:

  • updated unit and e2e tests

Documentation:

  • generated

gauge:
value_type: int

k8s.daemonset.current_scheduled_nodes:
enabled: true
description: Number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod
unit: "1"
unit: "{node}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure if this should be {node} or {pod} description says Number of nodes. and metric name has current_scheduled_nodes so went with nodes

Copy link
Member

Choose a reason for hiding this comment

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

I think node is correct. For a given daemonset I believe this counts the number of nodes it is schedules on.

@povilasv povilasv force-pushed the k8sclusterreceiver-fix-units branch from 754dc45 to 8dba9f5 Compare September 15, 2023 13:44
@povilasv povilasv marked this pull request as ready for review September 15, 2023 15:05
@povilasv povilasv requested a review from a team September 15, 2023 15:05
Copy link
Member

@TylerHelmuth TylerHelmuth left a comment

Choose a reason for hiding this comment

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

LGTM

@dmitryax dmitryax merged commit 7173641 into open-telemetry:main Sep 21, 2023
@github-actions github-actions bot added this to the next release milestone Sep 21, 2023
@povilasv povilasv deleted the k8sclusterreceiver-fix-units branch September 21, 2023 11:29
jmsnll pushed a commit to jmsnll/opentelemetry-collector-contrib that referenced this pull request Nov 12, 2023
…open-telemetry#26708)

**Description:**  Refactor some metric units  to follow OTEL Semantic conventions

**Link to tracking Issue:** open-telemetry#10553
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.

4 participants