GitHub
github.com › PromPHP › prometheus_client_php
GitHub - PromPHP/prometheus_client_php: Prometheus instrumentation library for PHP applications · GitHub
Prometheus instrumentation library for PHP applications - PromPHP/prometheus_client_php
Author: PromPHP
prometheus_php
bexiocom.github.io › prometheus_php
A Prometheus client library for PHP | prometheus_php
A PHP instrumentation library for Prometheus compatible with PHP 5.5 5.6, 7.0 and 7.1.
04:34
Lightning Talk: PHP and Prometheus For better Metrics - Syed Usman ...
02:09:56
PHP-линч #19 • Анонс моего курса • ...
25:33
[Laravel Tutorial] Click Tracking with Prometheus in Short URL ...
51:06
Rafael Dohms - Application Metrics (with Prometheus examples) - ...
50:29
DPC2018: Application metrics with Prometheus - Rafael Dohms - YouTube
Packagist
packagist.org › packages › promphp › prometheus_push_gateway_php
promphp/prometheus_push_gateway_php - Packagist.org
Prometheus Push Gateway client for PHP applications.
Better Stack
betterstack.com › community › guides › monitoring › php-laravel-prometheus
PHP and Laravel Monitoring with Prometheus | Better Stack Community
This provider creates a singleton instance of CollectorRegistry, which is the central registry for all Prometheus metrics in your application. For simplicity, we're using in-memory storage (InMemory), but in production, you might want to use Redis or another persistent storage adapter. ... <?php use Prometheus\CollectorRegistry; use Prometheus\RenderTextFormat; Route::get('/metrics', function (CollectorRegistry $registry) { $renderer = new RenderTextFormat(); return response($renderer->render($registry->getMetricFamilySamples())) ->header('Content-Type', RenderTextFormat::MIME_TYPE); });
Starred by 10 users
Forked by 2 users
Languages: PHP
Prometheus
prometheus.io › docs › instrumenting › clientlibs
Client libraries | Prometheus
Haskell: prometheus · Julia · Lua for Nginx · Lua for Tarantool · .NET / C# OCaml · Perl · PHP · R · Swift · When Prometheus scrapes your instance's HTTP endpoint, the client library sends the current state of all tracked metrics to the server. If no client library is available for your language, or you want to avoid dependencies, you may also implement one of the supported exposition formats yourself to expose metrics.
GitHub
github.com › Lazyshot › prometheus-php
GitHub - Lazyshot/prometheus-php: A prometheus client implementation using memcached as a storage backend.
May 26, 2020 - An unofficial client for Prometheus (http://prometheus.io/) written in PHP. This fork is nearly identical to @TimeZynk fork except it includes a test script for both the counter and histogram. In addition a function for pushing the serialized client data to a prometheus push gateway with curl is provided.
Starred by 33 users
Forked by 13 users
Languages: PHP 100.0% | PHP 100.0%
Medium
medium.com › @vardhan.rishi › how-i-built-a-database-health-monitoring-system-with-php-prometheus-and-grafana-71573bad73f8
How I Built a Database Health Monitoring System with PHP, Prometheus, and Grafana | by Rishi Vardhan | Medium
February 24, 2025 - Instead of relying on traditional logging or third-party monitoring tools, I decided to build a lightweight monitoring solution using: ✅ PHP (to extract and expose database metrics) ✅ Prometheus (for efficient time-series data collection) ✅ Grafana (for visualization and alerting)
Packagist
packagist.org › packages › promphp › prometheus_client_php
promphp/prometheus_client_php - Packagist.org
Prometheus instrumentation library for PHP applications.
Starred by 9 users
Forked by 2 users
Languages: PHP
Fly
fly.io › laravel-bytes › instrument-laravel-for-prometheus
Prometheus Metrics in Laravel · Laravel Bytes
May 1, 2023 - <?php # generated via # php artisan make:controller -i MetricsController namespace App\Http\Controllers; use App\Prometheus\Prom; use Illuminate\Http\Request; use Prometheus\RenderTextFormat; class MetricsController extends Controller { public function __invoke(Request $request) { $formatter = new RenderTextFormat; return response( $formatter->render(Prom::getMetricFamilySamples()), 200, [ 'Content-Type' => RenderTextFormat::MIME_TYPE, ] ); } }
Starred by 283 users
Forked by 213 users
Languages: PHP 99.7% | Dockerfile 0.3% | PHP 99.7% | Dockerfile 0.3%
Reddit
reddit.com › r/php › php and observability
r/PHP on Reddit: PHP and observability
July 23, 2024 -
Data brokers are selling your info right now. I used Redact to mass delete my posts which can also opt out of data broker sites. Instagram, Twitter/X, Discord and more.
decide ten market offbeat shocking dinosaurs knee crayon history bells
Top answer 1 of 5
15
You could get metrics and traces from OpenTelemetry. They are doing great work supporting both Laravel and Symfony. Besides that, you can get some metrics from caddy if you use caddy as your webserver with either php-fpm or frankenphp. At my work we rely mostly on caddy metrics and access logs and OTEL traces for our php applications observability.
2 of 5
11
You don't need php-fpm_exporter. PHP-FPM's status page directly supports openmetrics format. You can point Prometheus directly to the status page. Regardless, no modifications in 2 years is not surprising. The PHP-FPM status page has not changed much since it was introduced. What sorts of metrics (or metrics support) were you expecting that you're not finding? For application specific metrics I generally just write my own scripts the produce openmetrics in "pure PHP"
Sysdig
sysdig.com › blog › monitor-php
How to Monitor PHP-FPM with Prometheus | Sysdig
March 27, 2026 - You'll write Prometheus queries to monitor server status, children processes state, average requests processing, use of CPU and memory per request, etc. Also, troubleshoot all the situations you might have to face in the future. Here are the components you'll need for this PHP-FPM monitoring tool using Prometheus::
Starred by 31 users
Forked by 6 users
Languages: PHP 97.7% | Dockerfile 2.3%
DEV Community
dev.to › ronal_daniellupacamaman › -observability-with-prometheus-in-php-11le
# 🔍 Observability with Prometheus in PHP - DEV Community
July 5, 2025 - Description: This metric shows the time it took to process a file upload in PHP. In this example, it took about 3 seconds. ... Description: This metric is a counter of how many times the upload process ran. In this case, it only ran once. ... Prometheus allows you to instrument any modern app without much complexity.