From 0ed21509015a1ea5e91568292db6ec2f33635b78 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Mon, 7 Oct 2024 17:19:09 +0800 Subject: [PATCH] feat: added performance monitoring for elasticsearch --- core/models/models/v2/database_metric_v2.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/models/models/v2/database_metric_v2.go b/core/models/models/v2/database_metric_v2.go index 147c76d72..0d5b00817 100644 --- a/core/models/models/v2/database_metric_v2.go +++ b/core/models/models/v2/database_metric_v2.go @@ -6,6 +6,7 @@ type DatabaseMetricV2 struct { any `collection:"database_metrics"` BaseModelV2[DatabaseMetricV2] `bson:",inline"` DatabaseId primitive.ObjectID `json:"database_id" bson:"database_id"` + CpuUsagePercent float32 `json:"cpu_usage_percent" bson:"cpu_usage_percent"` TotalMemory uint64 `json:"total_memory" bson:"total_memory"` AvailableMemory uint64 `json:"available_memory" bson:"available_memory"` UsedMemory uint64 `json:"used_memory" bson:"used_memory"`