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

KubeClusterMetrics: node and app cpu/mem usage. #72

Merged
merged 2 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
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
755 changes: 384 additions & 371 deletions go/info/info.pb.go

Large diffs are not rendered by default.

887 changes: 603 additions & 284 deletions go/metrics/metrics.pb.go

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions images/devconfig.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions proto/info/info.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,10 @@ message ZInfoKubeClusterUpdateStatus {

// Error info in case of failure
ErrorInfo error = 4;

// Cluster UUID which will match config.EdgeNodeCluster.cluster_id passed
// in to the node by the controller.
string cluster_id = 5;
}

message ZInfoKubeCluster {
Expand Down
48 changes: 48 additions & 0 deletions proto/metrics/metrics.proto
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,8 @@ message ZMetricMsg {
repeated ZMetricVolume vm = 8;

repeated ZMetricProcess pr = 9;

KubeClusterMetrics cm = 10;
}

// newlogMetric - stats for newlog
Expand Down Expand Up @@ -710,3 +712,49 @@ message FlowlogCounters {
// The number of failed attempts to publish a flow record.
uint64 failed_attempts = 3;
}

// Resources used as reported by kubernetes api for the node objects.
message KubeNodeMetrics {
// Name of the node
string name = 1;

// CPU cores in milli cores
uint32 cpu_cores = 2;

// CPU usage in percentage
float cpu_usage = 3;

// Memory usage in bytes
uint32 memory_usage = 4;

// Memory usage in percentage
float memory_usage_percentage = 5;
}

// Resources used as reported by kubernetes api for running eve user apps.
message KubeAppMetrics {
// Name of the EVE application
string name = 1;

// CPU cores in milli cores
uint32 cpu_cores = 2;

// Memory usage in bytes
uint32 memory_usage = 3;
}

// Parent cluster metrics object to be sent by the node which has leader election.
message KubeClusterMetrics {
// Cluster UUID which will match config.EdgeNodeCluster.cluster_id passed
// in to the node by the controller.
string cluster_id = 1;

// Metrics of the nodes in the cluster
repeated KubeNodeMetrics nodes = 2;

// Metrics of the EVE pod applications in the cluster
repeated KubeAppMetrics eve_pod_apps = 3;

// Metrics of the EVE vmi applications in the cluster
repeated KubeAppMetrics eve_vmi_apps = 4;
}
120 changes: 60 additions & 60 deletions python/info/info_pb2.py

Large diffs are not rendered by default.

54 changes: 30 additions & 24 deletions python/metrics/metrics_pb2.py

Large diffs are not rendered by default.

Loading