PHP code example of meklis / prom-client

1. Go to this page and download the library: Download meklis/prom-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/ */

    

meklis / prom-client example snippets

 

ent = new \Meklis\PromClient\Client('http://10.0.30.2:9090');

// Return results of queries
$client->queriesRange(
    ['optical_temperature{iface_name="pon0/0/2:14", ip="10.15.1.2"}'],
);