-
Notifications
You must be signed in to change notification settings - Fork 16
Migrate the Hostmetrics<>System mapping code #4
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
Conversation
| } | ||
| } | ||
|
|
||
| memUtilPct = memUtil / 100 |
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.
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" { |
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.
process.cpu.time is a monotonic true metric - this doesn't look correct.
| } | ||
| } | ||
| } | ||
| } else if metric.Name() == "process.disk.io" { |
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.
process.disk.io is also a cumulative metric with monotonic true.
| } | ||
| } | ||
| } | ||
| } else if metric.Name() == "process.disk.operations" { |
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.
process.disk.operations is also a cumulative metric with monotonic true.
|
@lahsivjar: As discussed, I will be opening up a separate issue to address the questions about process fields. |
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