Giter VIP home page Giter VIP logo

Comments (10)

vpistis avatar vpistis commented on August 23, 2024 2

For Cluster Disk Usage gauge I changed the query to:

sum (container_fs_usage_bytes{device=~"^/dev/[nsx][v][bdm][a-z].+$",id="/",instance=~"^$node"}) / sum (container_fs_limit_bytes{device=~"^/dev/[nsx][v][bdm][a-z].+$",id="/",instance=~"^$node"})

and for me seems ok.

I changed also the queries for the Cluster Disk Capacity:
usage:

sum (container_fs_usage_bytes{device=~"^/dev/[xv][sv]d[a-z][1-9]$",id="/",instance=~"$node"})

limit:

sum (container_fs_limit_bytes{device=~"^/dev/[xv][sv]d[a-z][1-9]$",id="/",instance=~"$node"})

*I use kubernetes 1.9.6

from kubernetes-app.

 avatar commented on August 23, 2024 1

I'm using this config for Prometheus, which contains nodename fix. The only difference from default config is that

          - source_labels: [__meta_kubernetes_pod_node_name]
            action: replace
            target_label: nodename

added to kubernetes-service-endpoints. I'm using Prometheus nodeExporter v0.15.2..

You can find more details here https://scalablesystem.design/categories/ds101/

from kubernetes-app.

 avatar commented on August 23, 2024

Same issue

from kubernetes-app.

vpistis avatar vpistis commented on August 23, 2024

same issue

from kubernetes-app.

duanyifei1937 avatar duanyifei1937 commented on August 23, 2024

same issue

from kubernetes-app.

WesleyCharlesBlake avatar WesleyCharlesBlake commented on August 23, 2024

Same here.

Any suggested workarounds?

from kubernetes-app.

WesleyCharlesBlake avatar WesleyCharlesBlake commented on August 23, 2024

I tried a bunch of different queries and got results, but this seems more accurate. Thanks @vpistis . I will play around with the queries some more and let you know how I go. Cheers

from kubernetes-app.

WesleyCharlesBlake avatar WesleyCharlesBlake commented on August 23, 2024

awesome thanks @artyomboyko ,

Including this:

          - source_labels: [__meta_kubernetes_pod_node_name]
            action: replace
            target_label: nodename

To the prometheus kubernetes-service-endpoints config works like a charm as well. Thanks for this!

from kubernetes-app.

goooseman avatar goooseman commented on August 23, 2024

I had the same problem (no disk usage info in Grafana), but in my case it was version of NodeExporter.
I was using 0.17, but in 0.16 they've changed node_filesystem_size -> node_filesystem_size_bytes.
Rolled back to 0.15.2 and now it works.

from kubernetes-app.

seboudry avatar seboudry commented on August 23, 2024

If you're using a newer version of node-exporter (version 0.16 or 0.17), you can use job rules defines on upgrade guide: https://github.com/prometheus/node_exporter/blob/master/docs/V0_16_UPGRADE_GUIDE.md#use-recording-rules
This way older and newer metrics renamed both exists (but it take more space on prometheus).

from kubernetes-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.