PHP code example of vmorozov / laravel-prometheus

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

    

vmorozov / laravel-prometheus example snippets

bash
php artisan vendor:publish --provider="VMorozov\\Prometheus\\PrometheusServiceProvider"
bash
php artisan vendor:publish --provider="VMorozov\\Prometheus\\PrometheusServiceProvider" --force
bash
php artisan prometheus:clear_stored_metrics
bash
php artisan prometheus:clear_stored_metrics