@@ -337,19 +337,13 @@ pub struct ApiServerMetrics {
337
337
pub process_startup_time_us : SharedStoreMetric ,
338
338
/// Measures the cpu's startup time in microseconds.
339
339
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 ,
344
340
}
345
341
impl ApiServerMetrics {
346
342
/// Const default construction.
347
343
pub const fn new ( ) -> Self {
348
344
Self {
349
345
process_startup_time_us : SharedStoreMetric :: new ( ) ,
350
346
process_startup_time_cpu_us : SharedStoreMetric :: new ( ) ,
351
- sync_response_fails : SharedIncMetric :: new ( ) ,
352
- sync_vmm_send_timeout_count : SharedIncMetric :: new ( ) ,
353
347
}
354
348
}
355
349
}
@@ -497,15 +491,12 @@ impl PatchRequestsMetrics {
497
491
pub struct DeprecatedApiMetrics {
498
492
/// Total number of calls to deprecated HTTP endpoints.
499
493
pub deprecated_http_api_calls : SharedIncMetric ,
500
- /// Total number of calls to deprecated CMD line parameters.
501
- pub deprecated_cmd_line_api_calls : SharedIncMetric ,
502
494
}
503
495
impl DeprecatedApiMetrics {
504
496
/// Const default construction.
505
497
pub const fn new ( ) -> Self {
506
498
Self {
507
499
deprecated_http_api_calls : SharedIncMetric :: new ( ) ,
508
- deprecated_cmd_line_api_calls : SharedIncMetric :: new ( ) ,
509
500
}
510
501
}
511
502
}
@@ -519,8 +510,6 @@ pub struct LoggerSystemMetrics {
519
510
pub metrics_fails : SharedIncMetric ,
520
511
/// Number of misses on logging human readable content.
521
512
pub missed_log_count : SharedIncMetric ,
522
- /// Number of errors while trying to log human readable content.
523
- pub log_fails : SharedIncMetric ,
524
513
}
525
514
impl LoggerSystemMetrics {
526
515
/// Const default construction.
@@ -529,7 +518,6 @@ impl LoggerSystemMetrics {
529
518
missed_metrics_count : SharedIncMetric :: new ( ) ,
530
519
metrics_fails : SharedIncMetric :: new ( ) ,
531
520
missed_log_count : SharedIncMetric :: new ( ) ,
532
- log_fails : SharedIncMetric :: new ( ) ,
533
521
}
534
522
}
535
523
}
@@ -806,16 +794,13 @@ impl VcpuMetrics {
806
794
/// Metrics specific to the machine manager as a whole.
807
795
#[ derive( Debug , Default , Serialize ) ]
808
796
pub struct VmmMetrics {
809
- /// Number of device related events received for a VM.
810
- pub device_events : SharedIncMetric ,
811
797
/// Metric for signaling a panic has occurred.
812
798
pub panic_count : SharedStoreMetric ,
813
799
}
814
800
impl VmmMetrics {
815
801
/// Const default construction.
816
802
pub const fn new ( ) -> Self {
817
803
Self {
818
- device_events : SharedIncMetric :: new ( ) ,
819
804
panic_count : SharedStoreMetric :: new ( ) ,
820
805
}
821
806
}
0 commit comments