Giter VIP home page Giter VIP logo

Comments (1)

bwmills avatar bwmills commented on September 16, 2024 1

Not sure if this project is still active.

For anyone interested, if you're using a monitoring setup such as Prometheus + Grafana, note that rabbitmq_queue_message_published_total is sufficient (or at least partially sufficient) to obtain some insight into queue performance per vhost.

Once you have the prometheus_rabbitmq_exporter setup and configured with RabbitMQ and your Prometheus config scraping (in our case) the Kubernetes pods running RabbitMQ, and Prometheus added as a data source in Grafana; you can try something along these lines in Grafana:

(1) Create a dashboard variable (what Grafana calls template variables)

Name: top_queues
Type: Query
Data source: prometheus
Refresh: On Time Range Change
Query:

query_result(topk(25, sum(rate(rabbitmq_queue_messages_published_total[${__range_s}s])) by(queue, vhost)))

Regex: .*queue="(.*?)".*
Multi-value: enabled
Include All Option: enabled

(2) Create a dashboard (or add a panel to an existing dashboard)

Use this query to power a graph or a table depending on your preference.

sum(rate(rabbitmq_queue_messages_published_total{queue=~"$top_queues"}[2m])) by (vhost, queue) * 7 / 8

Note that the * 7 / 8 helps refine the accuracy of your results (time series values) depending on your Prometheus scrape interval and other factors related to the number of samples you wish to include in your 2 minute ( [2m] ) query interval (i.e. this may need to be refined in your environment).

The visualization area in your Grafana graph/table will need some tuning as always. You might name this Grafana panel "Top 25 Queue Rates" or the like.

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.