Abandoned Workloads API

Abandoned Workloads API

GET http://<kubecost-address>/model/savings/abandonedWorkloads

The abandoned workloads API suggests cluster workloads that have been abandoned based on network traffic levels.

Path Parameters

NameTypeDescription

days

int

Number of historical days over which network traffic should be measured.

threshold

int

The threshold of total traffic (bytes in/out per second) at which a workload is determined abandoned.

{
        "pod": "...",
        "namespace": "...",
        "node": "...",
        "clusterId": "...",
        "clusterName": "...",
        "owners": [
            {
                "name": "...",
                "kind": "..."
            }
        ],
        "ingressBytesPerSecond": 0,
        "egressBytesPerSecond": 0,
        "allocation": {
            "cpuCores": 0.00,
            "ramBytes": 0.00
        },
        "requests": {
            "cpuCores": 0.00,
            "ramBytes": 0
        },
        "usage": {
            "cpuCores": 0.00,
            "ramBytes": 0
        },
        "monthlySavings": 0.00
    },

Last updated