declare(strict_types = 1);
namespace Saschahemleb\LaravelPrometheusExporter;
use Prometheus\Gauge;use Saschahemleb\LaravelPrometheusExporter\Contracts\CollectorInterface;
class ExampleCollector implements CollectorInterface
{
/**
* @var Gauge
*/
protected $usersRegisteredGauge;
/**
* Return the name of the collector.
*
* @return string
*/
public function getName() : string
{
return 'users';
}
/**
* Register all metrics associated with the collector.
*
* The metrics needs to be registered on the exporter object.
* eg:
*