Scheduler plugin has a set of queue for events (eventqueue) it receives from k8s API server. This PR adds the following set of metrics related to eventqueue:
autoscaling_plugin_eventqueue_depth: Current depth of eventqueue.
autoscaling_plugin_eventqueue_adds_total: Total number of events added to eventqueue.
autoscaling_plugin_eventqueue_duration_seconds: How long in seconds an item stays in eventqueue before being processed.
Scheduler plugin has a set of queue for events (eventqueue) it receives from k8s API server. This PR adds the following set of metrics related to eventqueue:
autoscaling_plugin_eventqueue_depth
: Current depth of eventqueue.autoscaling_plugin_eventqueue_adds_total
: Total number of events added to eventqueue.autoscaling_plugin_eventqueue_duration_seconds
: How long in seconds an item stays in eventqueue before being processed.Inspired by controller-runtime workqueue metrics.
This is a small PR but might be easier to review it commit by commit.
Fixes #862.