Skip to content

Commit a485000

Browse files
DOMjudge teammeisterT
authored andcommitted
Ignore gauges we don't know
1 parent d81e039 commit a485000

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webapp/src/Controller/API/MetricsController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ public function prometheusAction(): Response
106106
new SubmissionRestriction(visible: true)
107107
);
108108
foreach ($submissionCounts as $kind => $count) {
109+
if (!array_key_exists('submissions_' . $kind, $m)) {
110+
continue;
111+
}
109112
$m['submissions_' . $kind]->set((int)$count, $labels);
110113
}
111114
// Get team submission stats for the contest.

0 commit comments

Comments
 (0)