add metric-labels-allowlist

This commit is contained in:
kklinch0
2025-03-10 12:35:58 +03:00
parent 6354b564b4
commit a6a0752feb
2 changed files with 3 additions and 1 deletions

View File

@@ -28,6 +28,8 @@ metrics-server:
name: vmalertmanager-alertmanager
kube-state-metrics:
extraArgs:
- --metric-labels-allowlist=pods=[*],deployments=[*]
rbac:
extraRules:
- apiGroups:

View File

@@ -15,7 +15,7 @@ vertical-pod-autoscaler:
storage: prometheus
memory-saver: true
pod-label-prefix: label_
metric-for-pod-labels: container_cpu_usage_seconds_total
metric-for-pod-labels: kube_pod_labels{job="kube-state-metrics"}[8d]
pod-name-label: pod
pod-namespace-label: namespace
prometheus-address: http://vmselect-shortterm.tenant-root.svc.cozy.local:8481/select/0/prometheus/