Skip to content

Commit

Permalink
Merge branch 'main' of github.com:spatie/laravel-prometheus
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed May 31, 2023
2 parents 0985260 + 908feee commit 3de619d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/Collectors/Horizon/HorizonStatusCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Spatie\Prometheus\Collectors\Horizon;


use Spatie\Prometheus\Collectors\Collector;

class HorizonStatusCollector implements Collector
Expand Down
2 changes: 0 additions & 2 deletions src/MetricTypes/Gauge.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,4 @@ protected function handleValueAndLabels(PrometheusGauge $gauge, array $valueAndL

$gauge->set($value, $labels);
}


}
2 changes: 1 addition & 1 deletion src/Prometheus.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function registerCollector(MetricType $collector): self
public function renderCollectors(string $urlName = 'default'): string
{
$collectorsForUrlName = collect($this->collectors)
->filter(fn(MetricType $metricType) => $metricType->getUrlName() === $urlName)
->filter(fn (MetricType $metricType) => $metricType->getUrlName() === $urlName)
->toArray();

return app(RenderCollectorsAction::class)->execute($collectorsForUrlName);
Expand Down
2 changes: 1 addition & 1 deletion src/PrometheusServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function registerUrls(): self
return $this;
}

foreach(config('prometheus.urls') as $name => $url) {
foreach (config('prometheus.urls') as $name => $url) {
Route::get($url, PrometheusMetricsController::class)
->middleware(AllowIps::class)
->name("prometheus.{$name}");
Expand Down

0 comments on commit 3de619d

Please sign in to comment.