PHP code example of belka-tech / gauge-exporter-client

1. Go to this page and download the library: Download belka-tech/gauge-exporter-client 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/ */

    

belka-tech / gauge-exporter-client example snippets




use BelkaTech\GaugeExporterClient\GaugeExporterClient;
use BelkaTech\GaugeExporterClient\MetricBag;
use GuzzleHttp\Client;

 = new GaugeExporterClient(new Client(), 'https://127.0.0.1:8181', ['env' => 'prod']);
$client->send($bag, 150);