kubernetes / dashboard

General-purpose web UI for Kubernetes clusters
Apache License 2.0
14.32k stars 4.15k forks source link

will dashboar support prometheus? #2578

Closed davidstack closed 6 years ago

davidstack commented 6 years ago

the dashboard now support heapster for resource metric, but we know, heapster does not have alert manager,will dashboar support prometheus? thanks

floreks commented 6 years ago

It was planned at some point, but we do not have enough devs and time to work on such integrations right now. It will be added at some point for sure. I'd love to only use kubernetes metrics API and get rid of heapster/prometheus hard dependencies. I'll have to investigate if this is possible.

davidstack commented 6 years ago

kubernetes may not have the metrics API. maybe it need a long time

floreks commented 6 years ago

It does: https://kubernetes.io/docs/tasks/debug-application-cluster/core-metrics-pipeline/

davidstack commented 6 years ago

thanks.

davidstack commented 6 years ago

I deploy heapster and metric-server. i test the metric-server api. it works well. from the api , we can get one metric of the pod or one metric of all pods. but metric server does't store history metrics http://10.110.17.88:8080/apis/metrics.k8s.io/v1beta1/nodes/node2 response is { "kind": "NodeMetrics", "apiVersion": "metrics.k8s.io/v1beta1", "metadata": { "name": "node2", "selfLink": "/apis/metrics.k8s.io/v1beta1/nodes/node2", "creationTimestamp": "2017-11-10T09:57:48Z" }, "timestamp": "2017-11-10T09:57:00Z", "window": "1m0s", "usage": { "cpu": "185m", "memory": "2471876Ki" } }

i think metric-server can not be integrated with dashboard at present

floreks commented 6 years ago

It is still being actively developed. Even though currently it returns only current metric, it might change in the future.