2017 © Pedro Peláez
 

library prom-client-php

Prometheus client library for PHP.

image

aptarus/prom-client-php

Prometheus client library for PHP.

  • Wednesday, September 21, 2016
  • by lyda
  • Repository
  • 4 Watchers
  • 2 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

promClientPhp

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*1)

This library allows users to record and export stats about a program in a way that Prometheus can make use of. Statistics are stored locally in the filesystem using sqlite; no additional service is required to record the statistics., (*2)

Note that this is likely only really useful for a PHP site with low usage. Once you get more than a 2 or 3 QPS you're likely looking at needing a different library for this., (*3)

Install

Via Composer, (*4)

``` bash $ composer require aptarus/promClientPhp, (*5)


## Usage Add this to `composer.json`: ```json { "repositories": [ { "type": "vcs", "url": "https://github.com/aptarus/promClientPhp.git" } ], "require": { "php" : "~5.5|~7.0", "aptarus/promClientPhp": "dev-master" } }

Client:, (*6)

``` php, (*7)

TODO


Endpoint: ``` php # TODO

Prometheus config:, (*8)

# TODO

Change log

Please see CHANGELOG for more information what has changed recently., (*9)

Testing

``` bash composer test, (*10)


### Test prerequisites Need to install the following on Ubuntu for testing to work: ```bash sudo apt-get install php-codesniffer phpunit php5-sqlite

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*11)

Contribution notes

This package is based on the PHP league's skeleton. From time to time it's not a bad idea to try merging in the skeleton project in case there are new bits of the php ecosystem this project might benefit from. To do this just run:, (*12)

git fetch git@github.com:thephpleague/skeleton.git

Security

If you discover any security related issues, please email kevin.lyda@aptarus.com instead of using the issue tracker., (*13)

Credits

License

The MIT License (MIT). Please see License File for more information., (*14)

The Versions

21/09 2016

dev-master

9999999-dev https://github.com/aptarus/promClientPhp

Prometheus client library for PHP.

  Sources   Download

MIT

The Requires

  • ext-pdo *
  • ext-pdo_sqlite *
  • php ~5.6|~7.0

 

The Development Requires

aptarus prometheus promclientphp