Skip to content

Commit 771f85c

Browse files
committed
fix vpa crd metric names
1 parent b410166 commit 771f85c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/verticalpodautoscaler-metrics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ spec:
3030
gauge:
3131
path: [metadata, annotations]
3232
# This will output the following metric:
33-
# HELP kube_customresource_autoscaling_k8s_io_v1_VerticalPodAutoscaler_annotations Kubernetes annotations converted to Prometheus labels.
34-
# TYPE kube_customresource_autoscaling_k8s_io_v1_VerticalPodAutoscaler_annotations gauge
35-
# kube_customresource_autoscaling_k8s_io_v1_VerticalPodAutoscaler_annotations{namespace="default",target_api_version="autoscaling.k8s.io/v1",target_kind="Deployment",target_name="hamster",verticalpodautoscaler="hamster-vpa"} 123
33+
# HELP kube_customresource_autoscaling_annotations Kubernetes annotations converted to Prometheus labels.
34+
# TYPE kube_customresource_autoscaling_annotations gauge
35+
# kube_customresource_autoscaling_annotations{customresource_group="autoscaling.k8s.io", customresource_kind="VerticalPodAutoscaler", customresource_version="v1", namespace="default",target_api_version="autoscaling.k8s.io/v1",target_kind="Deployment",target_name="hamster",verticalpodautoscaler="hamster-vpa"} 123
3636
```
3737
PS. The above configuration was tested on [this](https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/examples/hamster.yaml) VPA configuration, with an added annotation (`foo: 123`).
3838
***

0 commit comments

Comments
 (0)