endclothing/prometheus_client_php
A PHP Prometheus client for instrumenting applications and exposing metrics for scraping. Provides counters, gauges, histograms, and summaries with in-memory, APC, and Redis storage adapters, plus framework-friendly integration for monitoring Laravel/PHP services.
endclothing/prometheus_client_php is a PHP instrumentation library, not a Laravel-native package. It fits Laravel as a Composer dependency wrapped by a service provider, middleware, and a /metrics route. It can instrument HTTP requests, queue jobs, database/cache calls, and external dependencies without tightly coupling business code to Prometheus./metrics be secured? What cardinality and PII limits apply? Does it coexist with existing APM/OpenTelemetry tooling?/metrics route, and configure Redis or APCu as the shared metrics store. Prometheus scrapes the endpoint; Grafana and alerting sit downstream. Queue workers and scheduled jobs need explicit instrumentation because pull-based scraping does not naturally observe short-lived CLI processes./metrics route → instrument HTTP middleware → instrument queue/jobs and dependencies → configure Prometheus scrape → build dashboards and alerts → load-test overhead and cardinality → canary to production → document conventions and runbooks./metrics must be access-controlled and excluded from public traffic.How can I help you explore Laravel packages today?