Skip to content

Commit 1ad67b0

Browse files
dependabot[bot]tarrowoutdooracorn
authored
chore(deps): bump lkaemmerling/laravel-horizon-prometheus-exporter from 1.7.0 to 1.8.3 (#1104)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Thomas Arrow <thomas.arrow@wikimedia.de> Co-authored-by: Ollie <oliver.hyde@wikimedia.de>
1 parent f08a406 commit 1ad67b0

5 files changed

Lines changed: 41 additions & 38 deletions

File tree

app/Metrics/FailedQsBatches.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
class FailedQsBatches implements Exporter {
1010
protected $gauge;
1111

12-
public function metrics(CollectorRegistry $collectorRegistry) {
12+
public function metrics(CollectorRegistry $collectorRegistry): void {
1313
$this->gauge = $collectorRegistry->getOrRegisterGauge(
1414
config('horizon-exporter.namespace'),
1515
'qs_batches_failed_batches',
1616
'The number of QueryService batches marked as failed',
1717
);
1818
}
1919

20-
public function collect() {
20+
public function collect(): void {
2121
$numBatches = QsBatch::has('wiki')->where([
2222
'failed' => 1,
2323
])->count();

app/Metrics/PendingQsBatches.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
class PendingQsBatches implements Exporter {
1010
protected $gauge;
1111

12-
public function metrics(CollectorRegistry $collectorRegistry) {
12+
public function metrics(CollectorRegistry $collectorRegistry): void {
1313
$this->gauge = $collectorRegistry->getOrRegisterGauge(
1414
config('horizon-exporter.namespace'),
1515
'qs_batches_pending_batches',
1616
'The number of QueryService batches waiting to be processed',
1717
);
1818
}
1919

20-
public function collect() {
20+
public function collect(): void {
2121
$numBatches = QsBatch::has('wiki')->where([
2222
'done' => 0,
2323
'failed' => 0,

app/Metrics/WikiEntityImports.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
class WikiEntityImports implements Exporter {
1111
protected $pending;
1212

13-
public function metrics(CollectorRegistry $collectorRegistry) {
13+
public function metrics(CollectorRegistry $collectorRegistry): void {
1414
$this->pending = $collectorRegistry->getOrRegisterGauge(
1515
config('horizon-exporter.namespace'),
1616
'wiki_entity_imports_pending',
1717
'The number of pending Entity imports currently being processed.',
1818
);
1919
}
2020

21-
public function collect() {
21+
public function collect(): void {
2222
// counters for failed / success are incremented in the HTTP controller
2323
$this->pending->set(
2424
WikiEntityImport::where(['status' => WikiEntityImportStatus::Pending])->count()

composer.lock

Lines changed: 33 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/horizon-exporter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use App\Metrics\PendingQsBatches;
55
use App\Metrics\WikiEntityImports;
66
use LKDevelopment\HorizonPrometheusExporter\Exporter\CurrentMasterSupervisors;
7-
use LKDevelopment\HorizonPrometheusExporter\Exporter\CurrentProccesesPerQueue;
7+
use LKDevelopment\HorizonPrometheusExporter\Exporter\CurrentProcessesPerQueue;
88
use LKDevelopment\HorizonPrometheusExporter\Exporter\CurrentWorkload;
99
use LKDevelopment\HorizonPrometheusExporter\Exporter\FailedJobsPerHour;
1010
use LKDevelopment\HorizonPrometheusExporter\Exporter\HorizonStatus;
@@ -30,7 +30,7 @@
3030
CurrentMasterSupervisors::class,
3131
JobsPerMinute::class,
3232
CurrentWorkload::class,
33-
CurrentProccesesPerQueue::class,
33+
CurrentProcessesPerQueue::class,
3434
FailedJobsPerHour::class,
3535
HorizonStatus::class,
3636
RecentJobs::class,

0 commit comments

Comments
 (0)