PHP code example of vntrungld / prometheus-exporter-opcache-collector

1. Go to this page and download the library: Download vntrungld/prometheus-exporter-opcache-collector 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/ */

    

vntrungld / prometheus-exporter-opcache-collector example snippets


return [
    // ... other config options

    'collector_sets' => [
        \Vntrungld\PrometheusExporterOpcacheCollector\OpcacheCollectorSet::class,
        // ... other collector sets
    ],
];
ini
opcache.enable=1