26 releases (breaking)

0.21.1 Jun 5, 2025
0.20.0 Dec 31, 2024
0.19.0 Sep 29, 2024
0.16.0 May 8, 2024
0.6.0 Oct 30, 2022

#697 in Debugging

Download history 28/week @ 2025-04-02 4/week @ 2025-04-09 5/week @ 2025-04-16 19/week @ 2025-04-30 84/week @ 2025-05-07 48/week @ 2025-05-14 210/week @ 2025-05-21 291/week @ 2025-05-28 458/week @ 2025-06-04 206/week @ 2025-06-11 67/week @ 2025-06-18 220/week @ 2025-06-25 59/week @ 2025-07-02 72/week @ 2025-07-09

509 downloads per month

Apache-2.0

22KB
534 lines

Kubernetes Metrics API Resource definitions

Portions of the code are copied from other projects, like kdash

Usage example

use k8s_metrics::v1beta1 as metricsv1;
use kube::api;

async fn pod_metrics(client: &kube::Client, namespace: &str) -> kube::Result<Vec<metricsv1::PodMetrics>> {
    let lp = api::ListParams::default();
    api::Api::<metricsv1::PodMetrics>::namespaced(client.clone(), namespace)
        .list(&lp)
        .await
        .map(|list| list.items)
}

Dependencies

~31MB
~483K SLoC