Questions tagged [heapster]
74 questions
13
votes
4 answers
How to retrieve kubernetes metrics via client-go and golang
I want to access metrics from kubernetes with golang. Something like cpu and memory per node as well as the same for pods and/or namespaces.
I am kind of lost here because the documentation is not as clear as it could be.
I have learned that there…

silverfighter
- 6,762
- 10
- 46
- 73
13
votes
7 answers
Horizontal pod autoscaling not working: `unable to get metrics for resource cpu: no metrics returned from heapster`
I'm trying to create an horizontal pod autoscaling after installing Kubernetes with kubeadm.
The main symptom is that kubectl get hpa returns the CPU metric in the column TARGETS as "undefined":
$ kubectl get hpa
NAME REFERENCE …

Oghma
- 131
- 1
- 1
- 8
8
votes
1 answer
How to get the resource usage of a pod in Kubernetes?
How can we get the real resource usage (not resource requests) of each pod on Kubernetes by command line?
Heapster is deprecated.
Meanwhile, Metrics-server still does not support kubectl top pod.
Heapster -
I deployed Heapster using the following…

Tan Le
- 319
- 1
- 3
- 9
7
votes
1 answer
kubectl top nodes shows error: metrics not available yet
I'm using Kubernetes 1.7 and running hepaster. When I run
kubectl top nodes --heapster-namespace=kube-system
it shows me
error: metrics not available yet
I also tried this
kubectl top nodes --heapster-namespace=kube-system…

Abu Shoeb
- 4,747
- 2
- 40
- 45
4
votes
1 answer
Kubernetes : configuring custom influxdb sink for heapster running in kube-system namespace on GKE
I need to configure heapster to send kubernetes cluster metrics to our custom influx db server . For this I tried to edit heapster deployment in kube-system namespace but after some time deployment is getting reverted to original state .
I am using…

rigal
- 522
- 1
- 6
- 19
4
votes
3 answers
How to measure containers start-up and end time from some API?
I am running a kubernetes cluster with heapster and prometheus service.
I want to measure each container and pods start and end time but i could not find such statistics in prometheus.
I want to get these statistics through some api.
Does anyone…

Anshul Jindal
- 368
- 2
- 17
3
votes
1 answer
Node exporter and kubectl top seem to reporting different values for memory utilization?
I am using this query to calculate memory utilization of a node
(1 - node_memory_MemAvailable_bytes{cluster="$cluster"}/node_memory_MemTotal_bytes{cluster="$cluster"}) * 100
I see values around 25%
but when I run kubectl top node for the same node…

user2062360
- 1,323
- 5
- 16
- 29
3
votes
1 answer
Disabling heapster health checks in Kubernetes 1.10
While doing kubectl cluster-info dump , I see alot of:
2018/10/18 14:47:47 Metric client health check failed: the server could not find the requested resource (get services heapster). Retrying in 30 seconds.
2018/10/18 14:48:17 Metric client health…

Ijaz Ahmad
- 11,198
- 9
- 53
- 73
3
votes
1 answer
Horizontal auto scaler doesn't report CPU usage
I am trying to test the Kubernetes HPA like in example here
kubectl run php-apache --image=gcr.io/google_containers/hpa-example --requests=cpu=200m --expose --port=80
kubectl autoscale deployment php-apache --cpu-percent=20 --min=1 --max=10
kubectl…

Paddy
- 609
- 7
- 25
3
votes
2 answers
Running kubernetes autoscalar
I have a replication controller running with the following spec:
apiVersion: v1
kind: ReplicationController
metadata:
name: owncloud-controller
spec:
replicas: 1
selector:
app: owncloud
template:
metadata:
labels:
app:…

Aditya Patawari
- 771
- 1
- 7
- 15
3
votes
2 answers
Kubernetes heapster - Grafana doesn't display influxdb data
I deployed heapster with influxdb and grafana by following heapster-influxDB guide. When accessing the grafana instance I couldn't see any data in graphs(grafana service exposed to outside from NodePort). There are no errors in heapster and influxdb…

Rumesh Bandara
- 166
- 9
3
votes
3 answers
Collecting app-level metrics from Kubernetes containers
According to Kubernetes Custom Metrics Proposal containers can expose its app-level metrics in Prometheus format to be collected by Heapster.
Could anyone elaborate, if metrics are pulled by Heapster that means after the container terminates…

Ivan Balashov
- 1,897
- 1
- 23
- 33
2
votes
1 answer
Metric server unable to fetch monitoring data from the node where his pod is placed
I am trying to figure out why Metric server isn't collecting stats from the node where it is deployed (r2s13). There are 3 nodes in my cluster (1 master and 2 workers).
metric server version: 0.3.1
kubernetes version: 1.12 (installed with…

Hanna
- 31
- 1
- 4
2
votes
1 answer
using web API from Heapster in kubernetes
I have installed Heapster in my Kubernetes cluster.I can give resource usage from command line, for example kubectl top pods, and Kubernetes web panel.
I'm trying to get resource usage via web API from Heapster. Actually I'd like to get resource…

Meysam Mahmoodi
- 433
- 5
- 19
2
votes
3 answers
How to monitor Kubernetes Pods falling over?
I'm using Kubernetes in a Google Container Engine cluster and I can see in the Stackdriver logs that one of the Pods is falling over and automatically restarting because of an OutOfMemory exception.
Is there any standard way of monitoring these…

cahen
- 15,807
- 13
- 47
- 78