PHP Class Beberlei\Metrics\Collector\Prometheus

Inheritance: implements Beberlei\Metrics\Collector\Collector, implements Beberlei\Metrics\Collector\TaggableCollector
Afficher le fichier Open project: beberlei/metrics Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Prometheus\CollectorRegistry $collectorRegistry, string $namespace = '' )
decrement ( $variable )
flush ( )
increment ( $variable )
measure ( $variable, $value )
setTags ( $tags )
timing ( $variable, $time )

Private Methods

Méthode Description
getOrRegisterGaugeForVariable ( string $variable ) : Prometheus\Gauge

Method Details

__construct() public méthode

public __construct ( Prometheus\CollectorRegistry $collectorRegistry, string $namespace = '' )
$collectorRegistry Prometheus\CollectorRegistry
$namespace string

decrement() public méthode

public decrement ( $variable )

flush() public méthode

public flush ( )

increment() public méthode

public increment ( $variable )

measure() public méthode

public measure ( $variable, $value )

setTags() public méthode

public setTags ( $tags )

timing() public méthode

public timing ( $variable, $time )