{"repo":"erickskrauch/prometheus-php","free":true,"listed":false,"github":"https://github.com/erickskrauch/prometheus-php","clone":"git clone https://github.com/erickskrauch/prometheus-php.git","description":"Prometheus metrics collector and exporter for PHP","language":"PHP","stars":17,"topics":["metrics","observability","prometheus","prometheus-php"],"license":"MIT","category":"analytics","readme_excerpt":"Prometheus metrics for PHP Prometheus metrics collector and exporter for PHP. Storage is abstracted to allow better integration with your infrastructure. [![Latest Version on Packagist][ico-version]][link-packagist] [![Total Downloads][ico-downloads]][link-downloads] [![Software License][ico-license]](LICENSE) [![Build Status][ico-build-status]][link-build-status] Installation Install it as Composer dependency: Usage In addition to the PHPRedis extension, it also offers an implementation for the Predis library. You can easily write your own adapter for any Redis client by implementing the \\ErickSkrauch\\Prometheus\\Storage\\Redis\\RedisClient interface. An in-memory storage driver is also available via \\ErickSkrauch\\Prometheus\\Storage\\InMemory . To expose metrics, register a route in your framework, such as this example for Symfony: [ico-version]: https://img.shields.io/packagist/v/erickskrauch/prometheus.svg?style=flat-square [ico-license]: https://img.shields.io/badge/license-MIT-green.svg?style=flat-square [ico-downloads]: https://img.shields.io/packagist/dt/erickskrauch/prometheus.svg?style=flat-square [ico-build-status]: https://img.shields.io/github/actions/workflow/status/erickskrauch/prometheus-php/ci.yml?branch=master&style=flat-square [link-packagist]: https://packagist.org/packages/erickskrauch/prometheus [link-downloads]: https://packagist.org/packages/erickskrauch/prometheus/stats [link-build-status]: https://github.com/erickskrauch/prometheus-php/actions","default_branch":null,"files":null,"tree":[],"storefront":"/r/erickskrauch","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/erickskrauch/prometheus-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}