Comments (15)
same here {"level":"info","msg":"Listening on 0.0.0.0:8080","time":"2019-03-04T13:36:18Z"}
{"level":"info","msg":"Creating InCluster config to communicate with Kubernetes master","time":"2019-03-04T13:36:18Z"}
panic: the server could not find the requested resource (get pods.metrics.k8s.io)
goroutine 7 [running]:
github.com/google-cloud-tools/kube-eagle/vendor/github.com/weeco/kube-eagle/pkg/metrics_store.Collect()
/go/src/github.com/google-cloud-tools/kube-eagle/vendor/github.com/weeco/kube-eagle/pkg/metrics_store/metrics_store.go:59 +0x386
main.main.func1()
/go/src/github.com/google-cloud-tools/kube-eagle/main.go:56 +0x32
created by main.main
/go/src/github.com/google-cloud-tools/kube-eagle/main.go:52 +0x47
from kube-eagle.
Does this work for you?
kubectl get --raw /apis/metrics.k8s.io/v1beta1
If not, you need to set up metrics-server
.
from kube-eagle.
Seems to yes :
{"kind":"APIResourceList","apiVersion":"v1","groupVersion":"metrics.k8s.io/v1beta1","resources":[{"name":"nodes","singularName":"","namespaced":false,"kind":"NodeMetrics","verbs":["get","list"]},{"name":"pods","singularName":"","namespaced":true,"kind":"PodMetrics","verbs":["get","list"]}]}
from kube-eagle.
Same issue here.
Here's metrics-server
(0.3.1 version) logs:
metrics-server-5b5bfd85cf-dzml5 metrics-server E0304 23:30:52.828598 1 reststorage.go:144] unable to fetch pod metrics for pod kube-system/tiller-deploy-dbb85cb99-t5djw: no metrics known for pod
metrics-server-5b5bfd85cf-dzml5 metrics-server E0304 23:30:52.828611 1 reststorage.go:144] unable to fetch pod metrics for pod default/registry-docker-registry-84865c85c4-9w8ng: no metrics known for pod
metrics-server-5b5bfd85cf-dzml5 metrics-server E0304 23:30:52.828615 1 reststorage.go:144] unable to fetch pod metrics for pod kube-system/kubernetes-dashboard-cb6749dc6-94rqq: no metrics known for pod
metrics-server-5b5bfd85cf-dzml5 metrics-server E0304 23:30:52.828618 1 reststorage.go:144] unable to fetch pod metrics for pod eagle/kube-eagle-8654c7f9c4-hlj89: no metrics known for pod
metrics-server-5b5bfd85cf-dzml5 metrics-server E0304 23:30:52.828622 1 reststorage.go:144] unable to fetch pod metrics for pod eagle/prometheus-node-exporter-2jz94: no metrics known for pod
metrics-server-5b5bfd85cf-dzml5 metrics-server E0304 23:30:52.828626 1 reststorage.go:144] unable to fetch pod metrics for pod eagle/prometheus-pushgateway-75c4db7866-nhz88: no metrics known for pod
metrics-server-5b5bfd85cf-dzml5 metrics-server E0304 23:30:52.927754 1 reststorage.go:129] unable to fetch node metrics for node "admiring-matsumoto-u187": no metrics known for node
metrics-server-5b5bfd85cf-dzml5 metrics-server E0304 23:30:52.927777 1 reststorage.go:129] unable to fetch node metrics for node "admiring-matsumoto-u1nt": no metrics known for node
metrics-server-5b5bfd85cf-dzml5 metrics-server E0304 23:30:52.927782 1 reststorage.go:129] unable to fetch node metrics for node "admiring-matsumoto-u1n6": no metrics known for node
EDIT: I think my issue is related to kubernetes-sigs/metrics-server#143
UPDATE: I solved above issue here kubernetes-sigs/metrics-server#143 (comment).
BTW kube-eagle
is not working 100% yet because when I I do port-forward kubectl port-forward kube-eagle 8080:8080
I still get an 404 error
for /
path and also collectors aren't working (related #8).
from kube-eagle.
@alfonmga Thanks for sharing your solution.
@mleneveut On /
there shouldn't be a response. The path to the metrics endpoint is /metrics
. Did you use the correct path for the metrics endpoint? If you used the helm chart for deployment you should already have the right pod annotations for your prometheus instance.
from kube-eagle.
I updated to 1.1.0.
I can see metrics on the /metrics endpoint (the doc says to port-forward and check / and /health, you should change that to /metrics)
eagle_node_resource_allocatable_cpu_cores{node="aks-nodepool1-14107490-0"} 2.0
eagle_node_resource_allocatable_cpu_cores{node="aks-nodepool1-14107490-1"} 2.0
eagle_node_resource_allocatable_cpu_cores{node="aks-nodepool1-14107490-3"} 2.0
I added the 2 flags to my metrics-server:0.2.1 (I didn't have the cert errors)
I don't see the metrics in my Prometheus, only on the /metrics endpoint of kube-eagle.
from kube-eagle.
Oh I see that's part of the helm chart output. I will update it. Thanks for the heads up. I believe your issue is solved now, right?
from kube-eagle.
Unfortunately no. I can see the metrics on the kube-eagle/metrics, but in my Prometheus, I don't have any eagle* metrics.
Do I have to do any configuration in my Prometheus so that it scrapes the kube-eagle ? I use the stable/prometheus-operator helm chart. The kube-eagle is deployed in the same namespace as the prometheus.
from kube-eagle.
I am not familiar with your prometheus configuration, but if you are running the prometheus operator you might need to add the service monitor as described in the helm chart PR here: cloudworkz/kube-eagle-helm-chart#1
from kube-eagle.
Is this issue resolved ?, i still get 404 in the latest helm chart deployment. Is there any work around ?
from kube-eagle.
@karthik101 can you have a look at https://medium.com/oracledevs/kube-eagle-on-oracle-kubernetes-engine-f2c8a3730565
from kube-eagle.
@saiyam1814 Thanks, next time i better read the description first :D .
re-edit your comment with this : https://medium.com/oracledevs/kube-eagle-on-oracle-kubernetes-engine-f2c8a3730565
Can you re-arrange the commands as they were joined into the sentences.
from kube-eagle.
Yeah my bad I directly copied from my medium post on my mobilr and pasted , and it turned out like this
from kube-eagle.
what was the resolution?
I just deployed kube-eagle on my k8s and I encounter the same issue. metric server is deployed and when directly accessing the /metrics endpoint it gives me the data, but it is not scraped automatically. Nothing relevant in the metric server logs.
from kube-eagle.
Do you have the "eagle_*" label back ?
from kube-eagle.
Related Issues (20)
- Metrics for specific namespace HOT 6
- Unauthorized HOT 4
- Issue deploying Kube-Eagle HOT 2
- Lot's of pod restarts HOT 6
- Metrics resource usage CPU and RAM all zeros HOT 9
- [Feature Request] Running Pods/Max Pods per node HOT 2
- Add feature to expose pricing HOT 2
- [feature-request] support node all/allocated gpu numbers HOT 1
- grafana dashboards full of "Test data: random walk" HOT 6
- incorrect data in POD column in CPU/RAM tables on dashboard HOT 7
- Cache of old pods HOT 1
- allocatable vs. capacity HOT 4
- Pod constantly restarting HOT 4
- [feature/bug ?] Autoscaling and new node pool metrics HOT 4
- Support for k8s 1.16 HOT 1
- Bug: eagle_node_resource_allocatable_cpu_cores shows capacity, not allocatable cores HOT 1
- Add option to exclude completed pods? HOT 1
- Prometheus Scrape Config Example HOT 2
- Dashboard Fails to Import
- Add metrics sharding feature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kube-eagle.