# getKubernetesPodMetrics

> Function getKubernetesPodMetrics in pulumi-portainer.

<!-- Generated from the pulumi-portainer SDK. -->

Function getKubernetesPodMetrics in pulumi-portainer.

Invoke token: `portainer:index/getKubernetesPodMetrics:getKubernetesPodMetrics`.

## Example

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

```ts
import * as portainer from "pulumi-portainer"

const result = await portainer.getKubernetesPodMetrics({
  environmentId: 0,
  namespace: "<namespace>",
})
```

`getKubernetesPodMetricsOutput` accepts Input values and returns `Output` of the same result.

## Arguments

| Property        | Type     | Required | Description |
| --------------- | -------- | -------- | ----------- |
| `environmentId` | `number` | yes      |             |
| `id`            | `string` | no       |             |
| `namespace`     | `string` | yes      |             |
| `pod`           | `string` | no       |             |

## Result

| Property        | Type                           | Always present | Description |
| --------------- | ------------------------------ | -------------- | ----------- |
| `environmentId` | `number`                       | yes            |             |
| `id`            | `string`                       | yes            |             |
| `namespace`     | `string`                       | yes            |             |
| `pod`           | `string`                       | no             |             |
| `pods`          | `GetKubernetesPodMetricsPod[]` | yes            |             |

## `GetKubernetesPodMetricsPod`

Output object `GetKubernetesPodMetricsPod`. Fields below belong to this object.

| Property     | Type                                    | Always present | Description |
| ------------ | --------------------------------------- | -------------- | ----------- |
| `containers` | `GetKubernetesPodMetricsPodContainer[]` | no             |             |
| `name`       | `string`                                | no             |             |
| `timestamp`  | `string`                                | no             |             |
| `window`     | `string`                                | no             |             |

## `GetKubernetesPodMetricsPodContainer`

Output object `GetKubernetesPodMetricsPodContainer`. Fields below belong to this object.

| Property | Type     | Always present | Description |
| -------- | -------- | -------------- | ----------- |
| `cpu`    | `string` | no             |             |
| `memory` | `string` | no             |             |
| `name`   | `string` | no             |             |
