-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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] Sysman plugin improvements #4109
Conversation
Added in L0 spec v1.3. Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
Added in L0 spec v1.4. Requires loader 1.8.0 version released in May 2022. (With minor cleanup comments from Alexey applied.) Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
- Move enabled/disabled metric reporting to a separate function - Report metrics enabling and metric details enabling separately - Error if all metrics are disabled, regardless of detail options - Explicitly log what metrics are still being reported if any of them were disabled at run-time Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
Fixes: 55a9296 Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
if (!disabled) { | ||
INFO("- none"); | ||
} | ||
INFO("Enabled metrics:"); |
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.
Please move this out of this if
block. The enabled metrics are printed unconditionally, and so should this line.
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.
All metrics printing is conditional on config.gpuinfo
. But I moved it out, as code is clearer that way.
"none" could be logged erronously when "DisableEngine" is set. Add test code for that (does not validate the log output, but runs that and "no metrics + logging" cases so output can be checked manually). Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
322260e
to
55844b8
Compare
ChangeLog: gpu_sysman plugin: Misc improvements
Improvements:
[1] Plugin supports large number of Sysman provided metrics. It tries each metric, logs failure for each missing one, and disables further queries for that. However, it could be hard to determine which metrics are actually enabled in the end, especially for older integrated GPUs which provide data only for couple of metrics.
After this change, plugin will log a list of the enabled (and disabled) metrics at end of query round, if the enabled metric set changed (which should happen only few times at startup).