Giter VIP home page Giter VIP logo

Comments (8)

gerhard avatar gerhard commented on August 12, 2024

Btw, I have confirmed that queue_metrics_metrics_collector is running via erlang:process_info(erlang:whereis(queue_metrics_metrics_collector)) when this issue happens, as well as double-checked that rabbit_queue Mnesia table is tracking the correct pids for queue processes.

from prometheus_rabbitmq_exporter.

gerhard avatar gerhard commented on August 12, 2024

One interesting fact worth mentioning is that the problem goes away if the node gets restarted once or twice. This makes me believe that there is some sort of a race condition, maybe prometheus_rabbitmq_exporter is preventing a rabbitmq process registering correctly?

from prometheus_rabbitmq_exporter.

deadtrickster avatar deadtrickster commented on August 12, 2024

If it's a race then my first guess would be that prometheus scrapes before backend initialized properly by rabbit itself but you say everything is alive.

So how I can reproduce this exactly? I'm sure I've restarted node with this plugin enabled but I never noticed what you describing here. Maybe I wasn't looking at the right place...

from prometheus_rabbitmq_exporter.

michaelklishin avatar michaelklishin commented on August 12, 2024

@gerhard maybe we can arrange access for @deadtrickster to a one-off BOSH-managed deployment that reproduces the issue?

from prometheus_rabbitmq_exporter.

gerhard avatar gerhard commented on August 12, 2024

I've tried to reproduce this but couldn't yet, still trying.

I'm running 5 instances of perf-test 2.1.0 using the following flags: --uris amqp://USER:PASS@IP:5672/%2F --size 1000 --interval 60 --consumers 100 --producers 100 --auto-delete false --flag persistent --confirm 10 --confirm-timeout 30 --qos 1 --queue-pattern %d --queue-pattern-from 1 --queue-pattern-to 20 --queue-args x-max-length=1000 --rate 2 --consumer-rate 1

Attaching rabbitmqctl report: rabbitmqctl_report.log. In this case, I'm using 10 instances of perf-test, but I could reproduce the issue with just 5 instances of perf-test initially.

from prometheus_rabbitmq_exporter.

deadtrickster avatar deadtrickster commented on August 12, 2024

What should I see in rabbtmqctl_report.log? What I've spotted:

  • app envs,
  • conns,
  • channels,
  • exchanges,
  • queues.

from prometheus_rabbitmq_exporter.

dcorbacho avatar dcorbacho commented on August 12, 2024

This is not a prometheus issue, but a race condition on RMQ boot steps. When collect_statistics is set to none and the management plugin is enabled, we force the collection at runtime by setting collect_statistics to fine in the management plugin boot steps. It seems that in some situations, this happens after the queues are started. We'll work on this issue.

from prometheus_rabbitmq_exporter.

gerhard avatar gerhard commented on August 12, 2024

Closing this since it's not related to prometheus_rabbitmq_exporter. Thank you!

from prometheus_rabbitmq_exporter.

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.