diff --git a/src/Exporter/CurrentWorkload.php b/src/Exporter/CurrentWorkload.php index d386f76..ff9d5ef 100644 --- a/src/Exporter/CurrentWorkload.php +++ b/src/Exporter/CurrentWorkload.php @@ -29,7 +29,7 @@ public function collect(): void $workloads = collect($workloadRepository->get())->sortBy('name')->values(); $workloads->each(function ($workload) { - if ($workload['split_queues']) { + if (isset($workload['split_queues']) && $workload['split_queues']) { $workload['split_queues']->each(function ($queue) { $this->gauge->set($queue['length'], [$queue['name']]); });