PHP Class Beberlei\Metrics\Collector\Prometheus

Inheritance: implements Beberlei\Metrics\Collector\Collector, implements Beberlei\Metrics\Collector\TaggableCollector
Datei anzeigen Open project: beberlei/metrics Class Usage Examples

Public Methods

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

Private Methods

Method Description
getOrRegisterGaugeForVariable ( string $variable ) : Prometheus\Gauge

Method Details

__construct() public method

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

decrement() public method

public decrement ( $variable )

flush() public method

public flush ( )

increment() public method

public increment ( $variable )

measure() public method

public measure ( $variable, $value )

setTags() public method

public setTags ( $tags )

timing() public method

public timing ( $variable, $time )