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

Collect metrics asynchronously #223

Merged
merged 31 commits into from
Sep 11, 2024

Conversation

quentinmit
Copy link
Member

No description provided.

receiver/dcgmreceiver/client.go Show resolved Hide resolved
receiver/dcgmreceiver/client.go Show resolved Hide resolved
receiver/dcgmreceiver/client.go Outdated Show resolved Hide resolved
receiver/dcgmreceiver/client.go Outdated Show resolved Hide resolved
receiver/dcgmreceiver/client.go Outdated Show resolved Hide resolved
receiver/dcgmreceiver/util.go Outdated Show resolved Hide resolved
receiver/dcgmreceiver/util.go Outdated Show resolved Hide resolved
receiver/dcgmreceiver/util.go Show resolved Hide resolved
receiver/dcgmreceiver/util.go Outdated Show resolved Hide resolved
receiver/dcgmreceiver/util_test.go Outdated Show resolved Hide resolved
receiver/dcgmreceiver/scraper_gpu_test.go Outdated Show resolved Hide resolved
receiver/dcgmreceiver/client.go Outdated Show resolved Hide resolved
receiver/dcgmreceiver/client.go Outdated Show resolved Hide resolved
receiver/dcgmreceiver/scraper_gpu_test.go Outdated Show resolved Hide resolved
receiver/dcgmreceiver/client.go Outdated Show resolved Hide resolved
receiver/dcgmreceiver/scraper_gpu_test.go Outdated Show resolved Hide resolved
receiver/dcgmreceiver/scraper.go Show resolved Hide resolved
receiver/dcgmreceiver/scraper.go Show resolved Hide resolved
receiver/dcgmreceiver/scraper_gpu_test.go Show resolved Hide resolved
Copy link
Member

@igorpeshansky igorpeshansky left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

receiver/dcgmreceiver/client.go Show resolved Hide resolved
receiver/dcgmreceiver/scraper_gpu_test.go Outdated Show resolved Hide resolved
receiver/dcgmreceiver/client.go Outdated Show resolved Hide resolved
@quentinmit quentinmit force-pushed the quentin-dcgm-new-metrics branch from 0cc11a1 to 5c3bdd5 Compare September 4, 2024 22:23
receiver/dcgmreceiver/client_gpu_test.go Show resolved Hide resolved
client.logger.Warnf("Unable to query '%s' on '%s'", dcgmName, reason)
if failedCount == maxWarningsForFailedDeviceMetricQuery {
if failedCount <= limit {
client.logger.Warnf("%s", reason)
Copy link
Member

Choose a reason for hiding this comment

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

logger.Warnf("%s", reason) is the same as logger.Warn(reason) (https://pkg.go.dev/go.uber.org/zap#SugaredLogger.Warn). But I can fix that after we merge this PR…

@@ -328,9 +328,11 @@ func (client *dcgmClient) collect() (time.Duration, error) {
if err := isValidValue(fieldValue); err == errBlankValue {
// Blank values are expected at startup.
continue
} else if err == errNotSupported {
client.issueWarningForFailedQueryUptoThreshold(dcgmName, 1, fmt.Sprintf("Field '%s' is not supported. Metric '%s' will not be collected", dcgmName, dcgmName))
Copy link
Member

Choose a reason for hiding this comment

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

The Metric '%s' will not be collected part is redundant (in the profiling metrics as well). But I can fix that after we merge this PR…

receiver/dcgmreceiver/client.go Show resolved Hide resolved
@quentinmit quentinmit merged commit dd39c32 into igorpeshansky-dcgm-new-metrics Sep 11, 2024
2 checks passed
@quentinmit quentinmit deleted the quentin-dcgm-new-metrics branch September 11, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants