Questions tagged [kubernetes-metrics]

24 questions
17
votes
4 answers

Metric server not working : unable to handle the request (get nodes.metrics.k8s.io)

I am running command kubectl top nodes and getting error : node@kubemaster:~/Desktop/metric$ kubectl top nodes Error from server (ServiceUnavailable): the server is currently unable to handle the request (get nodes.metrics.k8s.io) Metric Server…
Ankit Bansal
  • 2,162
  • 8
  • 42
  • 79
12
votes
6 answers

Kubernetes: kubectl top nodes/pods not working

When I do kubectl top pods/nodes I am getting the following error: metrics not available yet When I check the logs I am getting $ kubectl logs metrics-server-7df4c4484d-h75wr -n kube-system -c metrics-server I1008 12:02:55.159069 1…
Mallikarjun Br
  • 131
  • 1
  • 1
  • 6
10
votes
2 answers

relationship between container_memory_working_set_bytes and process_resident_memory_bytes and total_rss

I'm looking to understanding the relationship of container_memory_working_set_bytes vs process_resident_memory_bytes vs total_rss (container_memory_rss) + file_mapped so as to better equipped system for alerting on OOM possibility. It seems against…
Noobie
  • 461
  • 1
  • 12
  • 34
9
votes
2 answers

kubernetes pod memory - java gc logs

On the kubernetes dashboard, there's a pod wherein the Memory Usage (bytes) is displayed as 904.38Mi. This pod holds the java app that was ran with -Xms512m -Xmx1024m, and on kubernetes deployment file -> requests.memory = 512M, limits.memory =…
8
votes
1 answer

'remote write receiver' HTTP API request in Prometheus

I am trying to find a working example of how to use the remote write receiver in Prometheus. Link : https://prometheus.io/docs/prometheus/latest/querying/api/#remote-write-receiver I am able to send a request to the endpoint ( POST /api/v1/write )…
amolgautam
  • 897
  • 10
  • 20
8
votes
2 answers

Accessing kubernetes dashboard gives Error trying to reach service: 'dial tcp 10.44.0.2:8443: connect: connection refused'

I used kubernetes hard way and managed to deploy a cluster successfully with kubernetes 1.18.6 I used vmware and kubernetes 1.18.6. I deployed metric-server and kubernets dashboard I used this command --> …
8
votes
1 answer

Difference between kubernetes metrics "/metrics/resource/v1alpha1" and "/metrics/cadvisor" endpoints

I'm working on memory monitoring using Prometheus (prometheus-operator Helm chart). While investigating values I've noticed that memory usage (container_memory_working_set_bytes ) is being scraped from two…
Nav
  • 437
  • 1
  • 8
  • 16
5
votes
2 answers

Is there any way to represent POD CPU usage in terms of CPU cores using prometheus metrics

I just want to represent the CPU metrics of a POD as below I am able to represent the CPU requests and limits in terms of CPU cores which are directly available through prometheus scrape metrics. But in prometheus I don't see any direct metric to…
Ramana
  • 63
  • 1
  • 6
3
votes
2 answers

Kubernetes Rest API node CPU and RAM usage in percentage

I would like to develop a simple webservice, which returns kubernetes metrics like node / pod CPU and RAM usage in percentage. In CLI there are commands like kubectl top node or kubectl describe node with all the metrics i need. However i am unable…
Brivvirs
  • 2,461
  • 3
  • 18
  • 31
3
votes
1 answer

Adding Kubernetes Metadata To Custom FluentD Non DaemonSet @tail Event

I have a pod that runs Fluentd as a sidecar that collects the logs from another container (sample application) and the common volume have been mounted on both containers (volumeMounts). Sample Application Code writes a UTC timestamps to a file …
Jninja
  • 149
  • 1
  • 3
  • 13
2
votes
1 answer

what is the meaning of 'window' in results from k8s metric server api

When I type this command on cli: kubectl get --raw /apis/metrics.k8s.io/v1beta1/namespaces//pods/ | jq I can get these results as below: { "kind": "PodMetrics", "apiVersion": "metrics.k8s.io/v1beta1", "metadata": { …
irrain
  • 23
  • 2
1
vote
0 answers

Dask Kubernetes Operator can't reach apis/external.metrics.k8s.io/v1beta1

My Dask Kubernetes Operator fails to start, because of this error: [2022-12-04 12:17:28,456] kopf._core.reactor.o [ERROR ] Request attempt #9/9 failed; escalating: GET https://10.64.0.1:443/apis/external.metrics.k8s.io/v1beta1 ->…
1
vote
0 answers

How many GET/LIST Requests skip API Server Cache

I understand that LIST/GET requests that specify the revision number as 0 in the request are served from the api server watch cache. This avoids calls to etcd. Kubernetes also now dynamically resizes this cache. I'd like to understand if there is an…
beer_coder
  • 203
  • 1
  • 4
  • 10
1
vote
1 answer

Kubelet Rootfs.UsedBytes missing in /stats/summary in Minikube

We are consuming kubelet /stats/summary endpoint. We noticed that the metrics returned are not always present and might be missing in some scenarios. In particular we are interested in Rootfs.UsedBytes that in missing in minikube but present in…
GalloCedrone
  • 4,869
  • 3
  • 25
  • 41
1
vote
1 answer

Microk8s Hostpath FS Usage of PVC

I am trying to monitor filesystem usage for pods in k8s. I am using Kubernetes (microk8s) and hostpath persistent volumes. I am running Kafka along with a number of producers to see what happens when I go past the PVC size limit among other things.…
1
2