PHP code example of ujamii / prometheus-sentry-exporter
1. Go to this page and download the library: Download ujamii/prometheus-sentry-exporter 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/ */
ujamii / prometheus-sentry-exporter example snippets
$sentryBase = 'https://<YOUR-SENTRY-HOST>/api/0/';
$token = '<AUTH-TOKEN>'; // get from https://<YOUR-SENTRY-HOST>/api/
$exporter = new \Ujamii\OpenMetrics\Sentry\SentryExporter($token, $sentryBase);
$exporter->run();