-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metrics not getting populated for most of the Kubecost dashboards #2375
Comments
@219980 I've went and transferred the logs that were in the comments, into this file kubecost-cost-analyzer.log |
@219980 Thanks for reporting. Is this your first time installing Kubecost? Or are you upgrading from a previous version. If so, could you specify which version? Additionally, is the data in Kubecost populating correctly? Is it just Grafana that is the issue? |
@thomasvn We have not done any upgrade but installed kubecost first time using helm chart and version is : NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION we can see the some charts populating but some are not .. There is only one pod which is doing this work "kubecost-cost-analyzer" and inside that 2 containers are there 1. cost-model and 2. cost-analyzer-frontend |
@thomasvn I checked couple of dashboards for example : "Attached Disk Metrics" but cant see any data/rows in prometheus server as well, Attaching the SS here ![]() Query from Prometheus Sever for "Disk Size" Chart ![]() Query from Prometheus Sever for "Disk Utilization" Chart : ![]() It means data is not getting populated in Prometheus TSDB , what will be the next course of action ? |
@219980 Note, that the ![]() |
@thomasvn I tried as per your suggestion , but result is same i.e. there are no results Not sure , why its happening , any further troubleshooting is required ? |
@219980 Can you click "Graph" instead of "Table" to see if you have any historical data for Assuming it doesn't exist, this may mean that your Prometheus instance is not scraping a cAdvisor metric. First place to double check this is by going to Prometheus's ![]() |
@thomasvn I checked for both "container_fs_usage_bytes" and "container_fs_limit_bytes" , found that no data is shown from prometheus server URL Is anything missing from my side , pls suggest |
@kirbsauce Is there anyone on support who can help look into this issue with @thomasvn out? |
@219980 Is the screen shot you shared from the Prometheus server that comes bundled with Kubecost? It does not appear to include the expected It also looks as if you are missing cAdvisor metrics. What version/flavor of Kubernetes are you running on? |
@jcharcalla and @thomasvn I am having separate prometheus solution installed on my cluster using "kube-prometheus-stack-44.3.0" NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION So with the current kube-cost helm chart with no promtheus installed with it .. so as per the documentation https://docs.kubecost.com/install-and-configure/install/custom-prom point no #3 , Added the below parameters to values.yaml file on my current prometheus helm chart installation additionalScrapeConfigs:
+++++++++++++++++++++++ ![]() ![]() Can you please guide me what's causing this error ? |
@thomasvn and @jcharcalla I am able to see all the charts now except "/kubecost-networkcosts-metrics". I followed the documentation from here "https://docs.kubecost.com/install-and-configure/advanced-configuration/network-costs-configuration" particularly this section: Prometheus: I have installed separately "kube-prometheus-stack" so added the " networkCosts.prometheusScrape=true" under prometheus section of values.yaml file for ""kube-prometheus-stack helm chart and upgrade the helm chart . networkCosts: serviceMonitor: # the kubecost included prometheus uses scrapeConfigs and does not support service monitors. The following options assume an existing prometheus that supports serviceMonitors. After adding i successfully upgrade the kubecost chart but i cant see the "kubecost-networking" target discovered on my Prometehus and hence no data is getting populated in grafana .. Attaching the SS of both here ![]() ![]() Pls help me if i am configuring anything wrong here |
@219980 Glad to see that you've got most of the scrapeconfigs working! For network costs, I'd recommend adding the following scrapeconfig: cost-analyzer-helm-chart/cost-analyzer/values.yaml Lines 592 to 599 in f35dafa
|
@thomasvn and @jcharcalla Thanks for your help .. Now I can see the Network costs showing data except 2 dashboards still having no data on it 1) Cross Region Data and 2) Cross Zone Data : For this i have to enter in which section and what are the guidelines for that Another thing is that 2 charts from "label-costs-and-utilization" dashboards are giving errors
Attaching the Snanshot of all the above errors ,kindly guide after fixing those all the "kubecost" dashboards will be operational ![]() ![]() ![]() |
@219980 For network costs metrics, it is preferred that you use https://kubecost.my.com/network to view your data instead of the Grafana dashboards. Please disregard those remaining Grafana dashboards for now. |
@thomasvn I am not able to see anything on the URL "https://kubecost.my.com/network" as suggested by you , can you elaborate more how can i access "networkcost Metrics" |
@219980 Can you try appending |
Thanks @thomasvn , i tried by appending /network or /network-cost.html to my Kubecost URL but it is giving "404 Page not found" error. ![]() ![]() Is there any workaround ? |
@219980 Those screenshots show the Grafana dashboard, not the Kubecost UI. You can visit the Kubecost UI by following these instructions: https://www.kubecost.com/install |
@219980 Where did you setup these dashboards? |
Stale, also looks like this is a non-issue. Closing. |
Describe the bug
I have setup kubecost using helm chart ( CHART: cost-analyzer-1.104.0 )
After the UI is up, I don't see that most of the grafana dashboards shows empty data.
Can you please help how to debug these
Expected behavior
I can't see data populated for the below dashboards
kubecost-networkcosts-metrics
some charts of kubecost-cluster-metrics
some charts of cluster-cost-and-utilization-metrics
node-utilization-metric
namespace-utilization-metrics
Screenshots
I will attach the Screenshots here to state the problem
What impact will this have on your ability to get value out of Kubecost?
Not able to see the data so not able to use the kubecost with its all chrarts and featured
The text was updated successfully, but these errors were encountered: