You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to install dashboard to visualize metrics about the Vertical Pod Autoscalar on Grafana, because the kube-state-metrics MUST be configured to enable Vertical Pod Autoscalar metrics
`
I need to add "kube-state-metrice" to the values.yaml
my question is this should kube-state-metrice be in the same line indentation with grafana or a seperate indentation, knowing fully well that kube-state-metrics MUST be configured to enable Vertical Pod Autoscalar metrics
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
From this link : https://grafana.com/grafana/dashboards/14588-vpa-recommendations/
I am trying to install dashboard to visualize metrics about the Vertical Pod Autoscalar on Grafana, because the kube-state-metrics MUST be configured to enable Vertical Pod Autoscalar metrics
I am using kube-prometheus-stack from this this link : https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack
My helmchart values.yaml has the following for deployment
`
grafana:
additionalDataSources:
- name: Loki
type: loki
url: http://loki-distributed-gateway.addons.svc.cluster.local
jsonData:
maxLines: 2000
derivedFields:
- datasourceUid: Tempo
matcherRegex: [trace_id=(.+) span_id=
name: TraceID
url: '$${__value.raw}'
urlDisplayLabel: 'View Trace'
- name: Tempo
type: tempo
url: http://tempo:3100
jsonData:
maxLines: 2000
traceQuery:
timeShiftEnabled: true
spanStartTimeShift: '1h'
spanEndTimeShift: '-1h'
tracesToLogsV2:
datasourceUid: 'Loki'
spanStartTimeShift: '1h'
spanEndTimeShift: '-1h'
tags: [ 'job', 'instance', 'pod', 'namespace' ]
filterByTraceID: false
filterBySpanID: false
customQuery: true
query: 'method="${__span.tags.method}"'
ingress:
extraPaths:
- path: /
pathType: Prefix
backend:
service:
name: base-redirect
port:
name: use-annotation
annotations:
alb.ingress.kubernetes.io/actions.base-redirect: '{"Type": "redirect", "RedirectConfig":{ "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}'
alb.ingress.kubernetes.io/certificate-arn: arn:aws:acm:eu-west-1:xxxxxxxxx:certificate/xxxxx-xxxx-49ad-b76a-xxxxfa88c7288
alb.ingress.kubernetes.io/group.name: internal-service
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}, {"HTTPS":8443}]'
alb.ingress.kubernetes.io/scheme: internal
alb.ingress.kubernetes.io/success-codes: 200,404
alb.ingress.kubernetes.io/target-type: ip
kubernetes.io/ingress.class: alb
enabled: true
hosts:
- grafana-uat.private.baseline.com
path: /
pathType: Prefix
`
I need to add "kube-state-metrice" to the values.yaml
my question is this should kube-state-metrice be in the same line indentation with grafana or a seperate indentation, knowing fully well that kube-state-metrics MUST be configured to enable Vertical Pod Autoscalar metrics
`
kube-state-metrics:
rbac:
extraRules:
- apiGroups: ["autoscaling.k8s.io"]
resources: ["verticalpodautoscalers"]
verbs: ["list", "watch"]
prometheus:
monitor:
enabled: true
https://github.com/kubernetes/kube-state-metrics/blob/main/docs/customresourcestate-metrics.md#verticalpodautoscaler
kubernetes/kube-state-metrics#2041 (comment)
customResourceState:
enabled: true
config:
kind: CustomResourceStateMetrics
spec:
resources:
- groupVersionKind:
group: autoscaling.k8s.io
kind: "VerticalPodAutoscaler"
version: "v1"
labelsFromPath:
verticalpodautoscaler: [metadata, name]
namespace: [metadata, namespace]
target_api_version: [apiVersion]
target_kind: [spec, targetRef, kind]
target_name: [spec, targetRef, name]
metrics:
- name: "vpa_containerrecommendations_target"
help: "VPA container recommendations for memory."
each:
type: Gauge
gauge:
path: [status, recommendation, containerRecommendations]
valueFrom: [target, memory]
labelsFromPath:
container: [containerName]
commonLabels:
resource: "memory"
unit: "byte"
- name: "vpa_containerrecommendations_target"
help: "VPA container recommendations for cpu."
each:
type: Gauge
gauge:
path: [status, recommendation, containerRecommendations]
valueFrom: [target, cpu]
labelsFromPath:
container: [containerName]
commonLabels:
resource: "cpu"
unit: "core"
selfMonitor:
enabled: true
`
Beta Was this translation helpful? Give feedback.
All reactions