Skip to content

Commit

Permalink
kube_pod_resource_request metric is now stable
Browse files Browse the repository at this point in the history
There's no longer any need to specify the --show-hidden-metrics-for-version
option to the scheduler to see the kube_pod_resource_request metric, it in the
stable set now.

Also mention that authorization must be for /metrics/resources. Simply having
/metrics is not enough.
  • Loading branch information
ringerc committed Aug 13, 2024
1 parent ad6351d commit 4aa44ee
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,12 @@ Once a pod reaches completion (has a `restartPolicy` of `Never` or `OnFailure` a
the series is no longer reported since the scheduler is now free to schedule other pods to run.
The two metrics are called `kube_pod_resource_request` and `kube_pod_resource_limit`.

The metrics are exposed at the HTTP endpoint `/metrics/resources` and require the same
authorization as the `/metrics` endpoint on the scheduler. You must use the
`--show-hidden-metrics-for-version=1.20` flag to expose these alpha stability metrics.
The metrics are exposed at the HTTP endpoint `/metrics/resources`. They require
authorization for the `/metrics/resources` endpoint, usually granted by a
ClusterRole with the `get` verb for the `/metrics/resources` non-resource URL.

On Kubernetes 1.21 you must use the `--show-hidden-metrics-for-version=1.20`
flag to expose these alpha stability metrics.

## Disabling metrics

Expand Down

0 comments on commit 4aa44ee

Please sign in to comment.