Giter Site home page Giter Site logo

Comments (5)

MarcelMue avatar MarcelMue commented on June 8, 2024

I think I fixed this in 633bca6 by simply touching the file before the while loop. It appears to be working in my minikube and scraping succeeds.

Another Issue is that if there is no folder >100mb then the file is just empty and not served. Prometheus gets a 404and believes the instance is down.

from prometheus.

webwurst avatar webwurst commented on June 8, 2024

Cool, thank you! This node-directory-size tool is more or less a quick hack to see if there are some surprisingly large directories around. And on the other side maybe a nice showcase how you can provide metrics for Prometheus with just some lines of scripting. In case there is a more clever tool around we might swap this out. But as long as it works "good enough" we should maintain and improve on this. 👍

from prometheus.

MarcelMue avatar MarcelMue commented on June 8, 2024

Another small Issue I had was that prometheus tried to scrape port 80 in addition to port 9102. Maybe port 80 is opened by the caddy container?

I resolved this by adding

- source_labels: [__meta_kubernetes_pod_container_port_number]
  action: keep
  regex: 9\d{3}

to the kubernetes-pods job. This allows prometheus to only parse ports in the 9000 range, but I am unsure if that causes trouble somewhere down the line.

from prometheus.

webwurst avatar webwurst commented on June 8, 2024

Hm, I also saw that for some time, but it not anymore in later installations. Maybe I updated the version of Prometheus.. I did updates of all the components and started testing locally today. No problems so far.

from prometheus.

pipo02mix avatar pipo02mix commented on June 8, 2024

I think it is solved, at least I can not reproduce feel free to reopen

from prometheus.

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.