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

[collectd 6] gpu_sysman.c: use OTEL style metric names + add .unit types #4301

Draft
wants to merge 2 commits into
base: collectd-6.0
Choose a base branch
from

Conversation

eero-t
Copy link
Contributor

@eero-t eero-t commented Apr 18, 2024

ChangeLog: gpu_sysman.c: change to OTEL spec metric names + add ".unit" types

Changes to Sysman plugin:

  • Add unit member to all Sysman plugin metrics
  • Change Sysman plugin metric names to match OTEL spec better
  • Change MHz to Hz for frequencies

Changes elsewhere:

  • write_prometheus.c: add By/s conversion, avoid duplicating metric suffixes (mainly _ratio)

PS. This will remain in Draft state until there's more clarity on some of the OTEL spec HW semantics:

@eero-t eero-t added the Feature label Apr 18, 2024
@eero-t eero-t requested a review from a team as a code owner April 18, 2024 17:16
@collectd-bot collectd-bot added this to the 6.0 milestone Apr 18, 2024
@eero-t eero-t marked this pull request as draft April 18, 2024 17:16
Avoiding duplication only for known suffixes should be enough.

Fixes names e.g. for metrics with .unit="1" / .name="XXX.ratio".

(Needed by next commit.)

Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
@eero-t
Copy link
Contributor Author

eero-t commented May 15, 2024

Rebased now that changes from #4267 (that this depends on) were merged to collectd-6.0.

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

Successfully merging this pull request may close these issues.

None yet

2 participants