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

Add mem used and remove mem available from backend metrics #548

Merged
merged 2 commits into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions plane/src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,18 @@ pub struct Heartbeat {
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct BackendMetricsMessage {
pub backend_id: BackendName,
/// Memory used by backend excluding inactive file cache, same as use shown by docker stats
/// ref: https://github.com/docker/cli/blob/master/cli/command/container/stats_helpers.go#L227C45-L227C45
pub mem_used: u64,
/// Memory used by backend in bytes
/// (calculated using kernel memory used by cgroup + page cache memory used by cgroup)
pub mem_total: u64,
/// Active memory ( non reclaimable )
pub mem_active: u64,
/// Inactive memory ( reclaimable )
pub mem_inactive: u64,
/// unevictable memory (mlock etc)
pub mem_unevictable: u64,
/// Total available memory for backend in bytes
pub mem_available: u64,
/// nanoseconds of CPU used by backend since last message
pub cpu_used: u64,
/// Total CPU nanoseconds for system since last message
Expand Down
Loading