better-prometheus

danog\BetterPrometheus\BetterCollectorRegistry

Back to index

Author: Daniil Gentili [email protected]

A better collector registry.

Properties

Method list:

Methods:

__construct(\Prometheus\Storage\Adapter $storageAdapter, bool $registerDefaultMetrics = true)

CollectorRegistry constructor.

Parameters:

See also:

wipeStorage(): void

Removes all previously stored metrics from underlying storage adapter.

getMetricFamilySamples(bool $sortMetrics = true): list<\Prometheus\MetricFamilySamples>

Parameters:

See also:

registerGauge(string $namespace, string $name, string $help, array<string, string> $labels = []): \danog\BetterPrometheus\BetterGauge

Parameters:

See also:

getGauge(string $namespace, string $name): \danog\BetterPrometheus\BetterGauge

Parameters:

See also:

getOrRegisterGauge(string $namespace, string $name, string $help, array<string, string> $labels = []): \danog\BetterPrometheus\BetterGauge

Parameters:

See also:

registerCounter(string $namespace, string $name, string $help, array<string, string> $labels = []): \danog\BetterPrometheus\BetterCounter

Parameters:

See also:

getCounter(string $namespace, string $name): \danog\BetterPrometheus\BetterCounter

Parameters:

See also:

getOrRegisterCounter(string $namespace, string $name, string $help, array<string, string> $labels = []): \danog\BetterPrometheus\BetterCounter

Parameters:

See also:

registerHistogram(string $namespace, string $name, string $help, array<string, string> $labels = [], (non-empty-list<float>|null) $buckets = NULL): \danog\BetterPrometheus\BetterHistogram

Parameters:

See also:

getHistogram(string $namespace, string $name): \danog\BetterPrometheus\BetterHistogram

Parameters:

See also:

getOrRegisterHistogram(string $namespace, string $name, string $help, array<string, string> $labels = [], (non-empty-list<float>|null) $buckets = NULL): \danog\BetterPrometheus\BetterHistogram

Parameters:

See also:

registerSummary(string $namespace, string $name, string $help, array<string, string> $labels = [], int $maxAgeSeconds = 600, (non-empty-list<float>|null) $quantiles = NULL): \danog\BetterPrometheus\BetterSummary

Parameters:

See also:

getSummary(string $namespace, string $name): \danog\BetterPrometheus\BetterSummary

Parameters:

See also:

getOrRegisterSummary(string $namespace, string $name, string $help, array<string, string> $labels = [], int $maxAgeSeconds = 600, (non-empty-list<float>|null) $quantiles = NULL): \danog\BetterPrometheus\BetterSummary

Parameters:

See also:


Generated by danog/phpdoc