🌐
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.
🌐
GitHub
github.com › PromPHP
Prometheus PHP · GitHub
July 20, 2026 - Unofficial client libraries for Prometheus written in PHP - Prometheus PHP
🌐
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%
Find elsewhere
🌐
GitHub
github.com › jlis › php-prometheus
GitHub - jlis/php-prometheus: PHP Client for Prometheus · GitHub
September 11, 2018 - PHP Client for Prometheus. Contribute to jlis/php-prometheus development by creating an account on GitHub.
Author: jlis
🌐
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)
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, ] ); } }
🌐
GitHub
github.com › Jimdo › prometheus_client_php
GitHub - Jimdo/prometheus_client_php: Prometheus instrumentation library for PHP applications
October 22, 2019 - Prometheus instrumentation library for PHP applications - Jimdo/prometheus_client_php
Starred by 283 users
Forked by 213 users
Languages: PHP 99.7% | Dockerfile 0.3% | PHP 99.7% | Dockerfile 0.3%
🌐
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::
🌐
GitHub
github.com › erickskrauch › prometheus-php
GitHub - erickskrauch/prometheus-php: Prometheus metrics collector and exporter for PHP · GitHub
Prometheus metrics collector and exporter for PHP. Contribute to erickskrauch/prometheus-php development by creating an account on GitHub.
Author: erickskrauch
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.
🌐
Medium
medium.com › @cgtysylr › creating-prometheus-metrics-in-laravel-433f704cbf4
Efficient Laravel Prometheus Metrics Guide DevOps | Medium
July 16, 2023 - To use Prometheus metrics in Laravel, we first installed the prometheus-php package and added a service provider called PrometheusServiceProvider.