@@ -337,19 +337,13 @@ pub struct ApiServerMetrics {
337337 pub process_startup_time_us : SharedStoreMetric ,
338338 /// Measures the cpu's startup time in microseconds.
339339 pub process_startup_time_cpu_us : SharedStoreMetric ,
340- /// Number of failures on API requests triggered by internal errors.
341- pub sync_response_fails : SharedIncMetric ,
342- /// Number of timeouts during communication with the VMM.
343- pub sync_vmm_send_timeout_count : SharedIncMetric ,
344340}
345341impl ApiServerMetrics {
346342 /// Const default construction.
347343 pub const fn new ( ) -> Self {
348344 Self {
349345 process_startup_time_us : SharedStoreMetric :: new ( ) ,
350346 process_startup_time_cpu_us : SharedStoreMetric :: new ( ) ,
351- sync_response_fails : SharedIncMetric :: new ( ) ,
352- sync_vmm_send_timeout_count : SharedIncMetric :: new ( ) ,
353347 }
354348 }
355349}
@@ -497,15 +491,12 @@ impl PatchRequestsMetrics {
497491pub struct DeprecatedApiMetrics {
498492 /// Total number of calls to deprecated HTTP endpoints.
499493 pub deprecated_http_api_calls : SharedIncMetric ,
500- /// Total number of calls to deprecated CMD line parameters.
501- pub deprecated_cmd_line_api_calls : SharedIncMetric ,
502494}
503495impl DeprecatedApiMetrics {
504496 /// Const default construction.
505497 pub const fn new ( ) -> Self {
506498 Self {
507499 deprecated_http_api_calls : SharedIncMetric :: new ( ) ,
508- deprecated_cmd_line_api_calls : SharedIncMetric :: new ( ) ,
509500 }
510501 }
511502}
@@ -519,8 +510,6 @@ pub struct LoggerSystemMetrics {
519510 pub metrics_fails : SharedIncMetric ,
520511 /// Number of misses on logging human readable content.
521512 pub missed_log_count : SharedIncMetric ,
522- /// Number of errors while trying to log human readable content.
523- pub log_fails : SharedIncMetric ,
524513}
525514impl LoggerSystemMetrics {
526515 /// Const default construction.
@@ -529,7 +518,6 @@ impl LoggerSystemMetrics {
529518 missed_metrics_count : SharedIncMetric :: new ( ) ,
530519 metrics_fails : SharedIncMetric :: new ( ) ,
531520 missed_log_count : SharedIncMetric :: new ( ) ,
532- log_fails : SharedIncMetric :: new ( ) ,
533521 }
534522 }
535523}
@@ -806,16 +794,13 @@ impl VcpuMetrics {
806794/// Metrics specific to the machine manager as a whole.
807795#[ derive( Debug , Default , Serialize ) ]
808796pub struct VmmMetrics {
809- /// Number of device related events received for a VM.
810- pub device_events : SharedIncMetric ,
811797 /// Metric for signaling a panic has occurred.
812798 pub panic_count : SharedStoreMetric ,
813799}
814800impl VmmMetrics {
815801 /// Const default construction.
816802 pub const fn new ( ) -> Self {
817803 Self {
818- device_events : SharedIncMetric :: new ( ) ,
819804 panic_count : SharedStoreMetric :: new ( ) ,
820805 }
821806 }
0 commit comments