Skip to content

Conversation

@ishleenk17
Copy link
Member

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
Member 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
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.

4 participants