Questions tagged [kubernetes-metrics]

24 questions
1
vote
1 answer

Is it possible to use an autoscaling/v2beta2 HPA with apiregistration.k8s.io/v1 APIService?

I've created a deployment which exposes a custom metric through an endpoint and an APIService that registers this custom metric, so I can use it in an HPA to autoscale the deployment. To achieve this, I've followed this tutorial. It worked well…
1
vote
1 answer

metrics-server pod should run on master node(s) or worker node(s)?

I am new to k8s, I am trying to deploy dashboard on Master node(s) and part of the deployment is to launch the metrics-server. Full documentation can be found here (dashboard/metrics-server). My question is related to the warning that we can see…
Thanos
  • 1,618
  • 4
  • 28
  • 49
0
votes
1 answer

Why KSM (Kube-State-Metrics) is being scraped by only one Prometheus shard?

We are deploying Prometheus with sharding capabilities using thanos sidecar. Prometheus has the below recording rule: sum by (cluster, namespace, pod, container) ( irate(container_cpu_usage_seconds_total{job="kubelet",…
0
votes
2 answers

Kubernetes - Horizontal Pod Scaler error, target "unknown". Message "no recommendation"

I have a working 1.23.9 kubernetes cluster hosted on Google Kubernetes Engine with multi-cluster services enabled, one cluster hosted in us and another in eu. I have multiple deployment apps and hpa configured for each through YAML. Out of 7…
0
votes
2 answers

How to check number of cores and ram capacity left in kubernetes cluster

I have a Kubernetes cluster of around 18 nodes where few are with 4 cores and 16G RAM, and few are with 16 core and 64G RAM, and there are around 25-30 applications running on the cluster. Each of the applications are configured with requests and…
0
votes
1 answer

Access Kubernetes Api from a Pod with Java-Client Library

im currently using the client java kubernetes library to get metrics from the Kubernetes API io.kubernetes client-java 12.0.0 I found out that…
Lukonjun
  • 226
  • 1
  • 10
0
votes
1 answer

How to get network information from metrics server

I know how to get information(limit, request, usage) of cpu and memory from metrics-server. But I don't know how to get network information(Memory Distribution, Network Traffic(KBps), Network Utilization) from metrics-server. Essentially,…
유동근
  • 3
  • 1
  • 2
0
votes
1 answer

how to make azure external.metrics.k8s adapter work?

I've setup Azure external metrics adapter following this document "https://github.com/Azure/azure-k8s-metrics-adapter/tree/master/samples/servicebus-queue" After the helm installation using service-principal when executing the command kubectl get…
vishal
  • 1,646
  • 5
  • 28
  • 56
0
votes
1 answer

Different unit for Kubernetes resource memory on pods

My question is related to Kubernetes and the units of the metrics used for the HPA (autoscaling). When I run the command kubectl describe hpa my-autoscaler I get (a part of more information) this: ... Metrics: …
Lobo
  • 4,001
  • 8
  • 37
  • 67
1
2