Browse Source

Merge "Add event queue sizes to stats reporting"

changes/40/751140/7
Zuul 1 day ago
committed by Gerrit Code Review
parent
commit
53562f7979
2 changed files with 31 additions and 0 deletions
  1. +24
    -0
      doc/source/reference/monitoring.rst
  2. +7
    -0
      zuul/scheduler.py

+ 24
- 0
doc/source/reference/monitoring.rst View File

@@ -361,6 +361,30 @@ These metrics are emitted by the Zuul :ref:`scheduler`:
executor to run on. This should ideally be at zero; persistent
higher values indicate more executor resources would be useful.


.. stat:: zuul.scheduler

Holds metrics related to the Zuul scheduler.

.. stat:: eventqueues

Holds metrics about the event queue lengths in the Zuul scheduler.

.. stat:: trigger
:type: gauge

The size of the current trigger event queue.

.. stat:: result
:type: gauge

The size of the current result event queue.

.. stat:: management
:type: gauge

The size of the current management event queue.

.. stat:: zuul.geard

Gearman job distribution statistics. Gearman jobs encompass the


+ 7
- 0
zuul/scheduler.py View File

@@ -461,6 +461,13 @@ class Scheduler(threading.Thread):
self.statsd.gauge('zuul.executors.jobs_running', execute_running)
self.statsd.gauge('zuul.executors.jobs_queued', execute_queue)

self.statsd.gauge('zuul.scheduler.eventqueues.trigger',
self.trigger_event_queue.qsize())
self.statsd.gauge('zuul.scheduler.eventqueues.result',
self.result_event_queue.qsize())
self.statsd.gauge('zuul.scheduler.eventqueues.management',
self.management_event_queue.qsize())

def addEvent(self, event):
# Check the event type and put it in the corresponding queue
if isinstance(event, TriggerEvent):


Loading…
Cancel
Save