PHP code example of reytarovskiy / prometheus-swoole-table
1. Go to this page and download the library: Download reytarovskiy/prometheus-swoole-table library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
reytarovskiy / prometheus-swoole-table example snippets
$storage = new \Reytarovskiy\PrometheusSwooleTable\SwooleTable();
$registry = new \Prometheus\CollectorRegistry\CollectorRegistry($storage, false);
// use registry for register metrics