Skip to content
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

[Bug] Grafana Dashboard Network Costs Metrics has incorrect label names in queries #3560

Open
2 tasks done
javidaslan opened this issue Jul 26, 2024 · 0 comments
Open
2 tasks done
Labels
bug Something isn't working needs-triage

Comments

@javidaslan
Copy link

javidaslan commented Jul 26, 2024

Kubecost Helm Chart Version

2.3.2

Kubernetes Version

1.28

Kubernetes Platform

EKS

Description

Network Costs Metrics Grafana dashboard has incorrect query for Cross Region Data and Cross Zone Data panels have incorrect label names in queries.

Both panels are built using kubecost_pod_network_ingress_bytes_total metric as below:

Cross Region Data:

sum(increase(kubecost_pod_network_ingress_bytes_total
    {internet="false",namespace=~"$namespace",cluster_id=~"$cluster",pod_name=~"$pod_name", sameRegion="false",sameZone="false", service=~"$service"}
    [1h]))
by($aggregation)

Cross Zone Data:

sum(increase(kubecost_pod_network_ingress_bytes_total
  {internet="false", namespace=~"$namespace", cluster_id=~"$cluster", pod_name=~"$pod_name", sameRegion="true", sameZone="false", service=~"$service"}
  [1h]))
by($aggregation)

However, these queries have following typos:

  • kubecost_pod_network_ingress_bytes_total metric has no labels such as sameZone and sameRegion, but rather same_zone and same_region;
  • Also service label is not always available, so should be keep it in this dashboard? Or maybe metric has to be fixed with default value for this label?

Example metric from Kubecost Prometheus

image

If you agree that it is an issue, I am happy to work on fix :)

Steps to reproduce

  1. Deploy Kubecost with Network Costs Monitoring enabled
  2. Enable Grafana and deploy dashboards
  3. Check Network Costs Metrics Dashboard -> Cross Region Data or Cross Zone Data panels.

Expected behavior

These panels should show actual data

Impact

No response

Screenshots

No response

Logs

No response

Slack discussion

No response

Troubleshooting

  • I have read and followed the issue guidelines and this is a bug impacting only the Helm chart.
  • I have searched other issues in this repository and mine is not recorded.
@javidaslan javidaslan added bug Something isn't working needs-triage labels Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant