---
title: "Get cost analysis report"
method: GET
path: "/api/v1/k8s/logs/clusters/{cluster_id}/cost-analysis"
tags: ["K8s Cost Analysis"]
---

# Get cost analysis report

`GET /api/v1/k8s/logs/clusters/{cluster_id}/cost-analysis`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/k8s/logs/clusters/{cluster_id}/cost-analysis`
- Auth: none declared

Retrieve a cost analysis report for a Kubernetes cluster, detailing resource requests, limits, and cluster capacity

## Path parameters

- `cluster_id` string, required

## Response `200`

Cost analysis report

- K8sLogsCostAnalysisReport
  - `clusterCpuCapacity` string
  - `clusterId` string
  - `clusterMemoryCapacity` string
  - `podsResourceUsage` object: namespace -> podName -> utilization
  - `timestamp` string
  - `totalCpuLimit` string
  - `totalCpuRequest` string
  - `totalMemoryLimit` string
  - `totalMemoryRequest` string

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error

---

[API](https://skmtc.dev/nife/apis/nife-io-swagger-api.md) - [All operations](https://skmtc.dev/nife/apis/nife-io-swagger-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nife/apis/nife-io-swagger-api/revisions/6e868dc62795?raw)
