From 4f1731ba86b747df25c380a66a17796c50a3bdd1 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Tue, 10 Oct 2017 18:11:42 -0700 Subject: [PATCH] Emit some nodepool stats Change-Id: I7bc3914e8b8d64afee061c002dcc9cca5dd1ef4d --- doc/source/admin/monitoring.rst | 78 +++++++++++++++++++++++++++++++++ tests/unit/test_nodepool.py | 1 + tests/unit/test_scheduler.py | 8 ++++ zuul/model.py | 1 + zuul/nodepool.py | 33 ++++++++++++++ 5 files changed, 121 insertions(+) diff --git a/doc/source/admin/monitoring.rst b/doc/source/admin/monitoring.rst index dc6be0de3b..55f1908978 100644 --- a/doc/source/admin/monitoring.rst +++ b/doc/source/admin/monitoring.rst @@ -146,6 +146,84 @@ These metrics are emitted by the Zuul :ref:`scheduler`: The one-minute load average of this executor, multiplied by 100. +.. stat:: zuul.nodepool + + Holds metrics related to Zuul requests from Nodepool. + + .. stat:: requested + :type: counter + + Incremented each time a node request is submitted to Nodepool. + + .. stat:: label.