Dragonball VMM Metrics (src/metric.rs)

kata-containers · src/dragonball/src/metric.rs · rust · Apache-2.0
infra, analytics, lang:rust, tag:knn-classified, tag:vmm, tag:dragonball, tag:serialization

Defines shared metric structs for Dragonball VMM vCPU, seccomp, signal, and device metrics; reuse for collecting and serializing VM runtime telemetry.

// Source: https://github.com/kata-containers/kata-containers | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright (C) 2022 Alibaba Cloud. All rights reserved.
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

use std::collections::HashMap;
use std::sync::{Arc, RwLock};

#[cfg(target_arch = "x86_64")]
use dbs_legacy_devices::I8042DeviceMetrics;
#[cfg(target_arch = "aarch64")]
use dbs_legacy_devices::RTCDeviceMetrics;
use dbs_legacy_devices::SerialDeviceMetrics;
use dbs_utils::metric::SharedIncMetric;
#[cfg(feature = "virtio-balloon")]
use dbs_virtio_devices::balloon::BalloonDeviceMetrics;
use lazy_static::laz

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key