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

Migrate the Hostmetrics<>System mapping code #4

Merged
merged 2 commits into from
May 14, 2024

Conversation

ishleenk17
Copy link
Contributor

This PR migrates the mapping code of Hostmetrics<>System Integration from the POC branch to this repo.
There would be different users of this library like APM-Server, Elastic Infra Processor etc.

Relates: #3

@ishleenk17 ishleenk17 marked this pull request as ready for review May 14, 2024 11:44
@ishleenk17 ishleenk17 requested a review from a team as a code owner May 14, 2024 11:44
@ishleenk17 ishleenk17 closed this May 14, 2024
@ishleenk17 ishleenk17 reopened this May 14, 2024
}
}

memUtilPct = memUtil / 100
Copy link
Contributor

Choose a reason for hiding this comment

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

Is process.memory.utilization not a fraction based %? I see that in CPU utilization we are assuming fraction based number but here we are not.

startTime = dp.StartTimestamp().AsTime().UnixMilli()
}
fdOpen = dp.IntValue()
} else if metric.Name() == "process.cpu.time" {
Copy link
Contributor

Choose a reason for hiding this comment

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

process.cpu.time is a monotonic true metric - this doesn't look correct.

}
}
}
} else if metric.Name() == "process.disk.io" {
Copy link
Contributor

Choose a reason for hiding this comment

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

process.disk.io is also a cumulative metric with monotonic true.

}
}
}
} else if metric.Name() == "process.disk.operations" {
Copy link
Contributor

Choose a reason for hiding this comment

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

process.disk.operations is also a cumulative metric with monotonic true.

@ishleenk17
Copy link
Contributor Author

@lahsivjar: As discussed, I will be opening up a separate issue to address the questions about process fields.
Merging this PR to have a base branch ready.

@ishleenk17 ishleenk17 merged commit fdb46e7 into main May 14, 2024
2 checks passed
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.

None yet

3 participants